Thanks for the reply deepak. Tried your suggestion, but it didn't work -
returned the variable name "${variablename}" rather than a blank string.
The reason I need a blank string is that I want to send back whatever values
already on the page plus some comments. One of the existing values is a
dropdown box. If a value has already been selected in the dropdown box when
the page is opened, I will find a match. If a value has not been selected,
the RegEx extractor will not find a match (i.e. the particular text phrase
will not exist on the page). In case, I need to return a blank value - any
other value will cause the request to fail.
Is this a restriction of JMeter or is there a way to do this?
Wei
Deepak Shetty wrote:
>
> Truly fugly but
> ${__javaScript('')} seems to work.
>
> I'd question why you need blank (would spaces work?) . other options would
> be BSH listener to form the variable as you want.
> regards
> deepak
>
> On Thu, Oct 15, 2009 at 8:59 AM, Wei Z <[email protected]> wrote:
>
>>
>> Hi,
>> I want to return a value null (i.e. blank) if now matches are found. I've
>> tried few things, e.g. leave the default value field blank, put a
>> variable
>> name in the field and define the variable to have value "", etc.
>> But I just can't get a null value. Has anybody done this or does anybody
>> know how to do this? Your help would be much appreciated.
>>
>> Wei
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-set-default-value-to-null-for-Regular-Expression-Extractor-tp25911259p25911259.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/How-to-set-default-value-to-null-for-Regular-Expression-Extractor-tp25911259p25922069.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]