Jmeter is not extracting correctly the value with the reg ex. When I play with this reg ex (NAME="token" \s value="([^"]+?)") in reg ex coach with the following html everything work fine but when adding the reg with a reg ex extrator to the request he doesn't found the value even if it's the same html in output.
<HTML>< script type="text/javascript" >
function dostuff(no, applicationID)
{
submitAction('APPS_NAME' , 'noSelected=' + no + '&applicationID=' + applicationID);
}< /script>
<FORM NAME="baseForm" ACTION="" METHOD="POST">
<input type="hidden" NAME="token" value="fc95985af8aa5143a7b1d4fda6759a74" >
<div id="loader" align="center">
<div>
<strong style="color: #003366;">Loading...</strong>
</div>
<img src="images/initial-loader.gif" align="top"/>
</div>
<BODY ONLOAD="dostuff('69489','test');">
From the reg ex extractor
reference name: token
Regex: (NAME="token" \s value="([^"]+?)")
template : $2$
match no.:1
Default value: wrong-token
The request following my the POST of the previous code is returning : POST data: token=wrong-token
in the next request in the tree viewer.
But when I check a the real request in a proxy the token is there.
Note : I tried the reg ex without the bracket and doesn't worked either.
Do anybody have a idea whats wrong here ? Why jmeter can't find my token with the reg ex extrator ?