Thank you for great answer it works very good without any default value!!!!


sebb-2 wrote:
> 
> On 04/10/2007, Sova <[EMAIL PROTECTED]> wrote:
>>
>> Thank you for answer but we missunderstood each other, mine RE was
>> allready a
>> child of the request.
>> Btw problem solved:
>>
>> I replaced Default value with: ${request_id} and its working :)
> 
> That should not be necessary: - if the RE is in the correct place, it
> will only be processed when there is a request id to extract, and so
> the request_id variable will not be changed.
> 
> Alternatively, omit the default value entirely, and the variable will
> not be changed if the RE does not match.
> 
>> Thank you anyway.
>>
>>
>> sebb-2 wrote:
>> >
>> > On 04/10/2007, Sova <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi there!
>> >>
>> >> Iam using regular expression extractor for extracting string (in this
>> >> case
>> >> mine string is 1660 ) to variable like this:
>> >>
>> >> Reference name:      request_id
>> >> Regular expression:   name="requestID" value='([0-9]+)'
>> >> Template:               $1$
>> >> match No:               1
>> >> Default Value:          REG_FAILED
>> >>
>> >>
>> >> from response:
>> >> <input readonly class="input_text readonly width_short_input"
>> type="text"
>> >> name="requestID" value='1660' />
>> >>
>> >> thats ok, then i use it in the next HTTP request and everythings looks
>> >> fine,
>> >> ${request_id} will be changed for my number from response.
>> >>
>> >> But in the next HTTP request i still want to use the same variable,
>> but
>> >> the
>> >> response comes with Default value instead of mine string...
>> >>
>> >> scope looks like this:
>> >>
>> >> request
>> >> regular expression extractor
>> >> request    -  here is everything ok
>> >> request    -  Default value :(
>> >> request    -  Default value :(
>> >
>> > Add the RE as a child of the request to which it applies.
>> >
>> >>
>> >> Where is the problem? Am i missing something?
>> >> Sorry for bad english .
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13037967
>> >> Sent from the JMeter - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13040112
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13041687
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to