Parsing HTML via JMeter regexp

前端 未结 3 408
予麋鹿
予麋鹿 2021-01-25 04:46

I have some trouble with a regex in JMeter. I have this form in HTML

3条回答
  •  清歌不尽
    2021-01-25 04:56

    Jmeter uses PERL regular expressions to extract and store values into variables.

    Here is a great resource for learning how to write them: http://www.regular-expressions.info/

    Here's the link for the Jmeter user manual: http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor

    In Jmeter, make sure you put parentheses () around the items you want to store to the variable. Given you're new to JMeter, I would recommend having TWO regular expressions - one for each item. This will make it easier for you to track and debug. You'll end up with expressions like: componentId=(.+?);

提交回复
热议问题