On 07/02/2010, glc <[email protected]> wrote:
>
>  Hi all !
>
>  I'm mew to Jmeter and really would appriciate help,
>  In my test I am extracting a value from the HTTP Web Service response and
>  needs to use this exctracted results back into another Web Service request
>  which accept only integer.
>
>  I am am using the following extraction method:
>
>  Return Result: STRING_#### (the # stands for the numric part of the string)
>  Regular Expression extractor: (RESPONSE_STRING(.+))
>
>  Now I am having the #### as string and I need to pass it as Integer to the
>  next request.

The JMeter GUI elements only accept text as input.
Some of them require the text to be restricted to decimal digits, but
none require Integers.

So just make sure that you only extract the digits into the variable.

>  i already used _javascript function by fuction helper dialog in jmeter but
>  it didnt work
>
>   ${__javaScript(${__javaScript(parseInt('${STRING}'))} ,INT_VARIABLE_NAME)}
>
>  what test element should i use and how excatly?

Nowhere, see above.

>  thanks in advance
>
>
>
>
>  --
>  View this message in context: 
> http://old.nabble.com/How-do-I-convert-extract-value-from-Regular-Expresion-to-integer-tp27487616p27487616.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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to