jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "glinius@live.com" <glin...@live.com>
Subject Re: Regular Expression
Date Thu, 20 Sep 2018 14:45:56 GMT
Mind that  using Regular Expressions for HTML response types might be not the
best idea <https://stackoverflow.com/a/1732454/2897748>   as regular
expressions are hard to develop/maintain/understand, they are fragile, they
are sensitive to markup changes (i.e. if order of attributes changes or
there will be a line break - it will run your regex). 

So consider going for  CSS/JQuery Extractor
<http://jmeter.apache.org/usermanual/component_reference.html#CSS/JQuery_Extractor>
 
instead, the configuration would be as simple as:

CSS Selection Expression:* input[id=sg:cf:b:0]*
Attribute: *value*

Demo:

<http://www.jmeter-archive.org/file/t340375/Screen_Shot_2018-09-20_at_16.png> 

More information:  How to Use the CSS/JQuery Extractor in JMeter
<https://www.blazemeter.com/blog/how-use-cssjquery-extractor-jmeter>  



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message