On 12/21/2010 02:58 PM, sbhosale wrote:
>
> Hi
>
> I have used the regex as* membershipNumber=(\d+)* which is correct as i have
> checked with the tool "Regex Coach". I have also added the default value as
> 111 in the Regular Expression extractor. Now what I am seeing is the
> variable is taking the defulat value and it is using it in the subsequent
> requests.
>
> So it means that it is not capturing the membership number from the
> response. Now I will explain you what are the settings I have used in the
> Regular Expression Extract
>
> 1. In the *Apply To* section I have selected as Main Sample Only
>
> 2. In the *Response Field to check* sectionI have selected as Response
> message
>
> 3. In the Reference Name = NextMN (this is variable name and i am using this
> as ${NextMN} in the subsequent requests)
>
> 4. Regular Expression = membershipNumber=(\d+)
>
> 5. Templete = $1$
>
> 6. Match No = 0
>
> 7. Default value = 111
>
> So please tell me what is going wrong here. Why my RE Extractor is not
> taking the value in the variable. :( Any ideas.
Next up, in the ViewResultsTree Listener, carefully check the response
tab of "HTTPSampler1" (as per the diagram below) and make sure this
response contains the string you are hoping to match.
>>> + HTTPSampler1
>>> ++ RegularExpressionExtractor
>>> + DebugSampler
>>> + HTTPSampler2
>>> + ViewResultsTreeListener
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]