• SPEForums need your contributions to build up a strong repository of performance engineering resources.

please giveme regular expression...

S

Sojia Safal

Guest
please giveme regular expression extrator,xpath extractor,css/jquery extractor for extracting OTP from this code and post in the same request sampler
 
use regular expression extractor : exp: "OTPHidden" value="(.+?)">
 
1.name="CCus" value="(.+?)"> 2.name="OTPHidden" value="(.+?)">
 
Ravi Varanasi,Ravi Chander I have tried both expressions. But i dint get the correct otp pased in the request, i see that the default value in regular expression extractor is passed. I have added regular expression extractor in the get request just before the post request in which i need to pass the otp as parameter. Do I need to add regex user parameters in that sampler???
 
U may have to use bean shell script. As it is hidden put the value in bean shell script
 
have u checked debug sampler?, whether ur expression retrieving proper value or not.
 
I tested using regex tester, its not showing any matches
 
what is the code to be written for this in the scripting area
 
Back
Top