2008/5/7 Michael Giroux <[EMAIL PROTECTED]>:
> > Start with fixed strings, and replace them with variables defined in
>  > the CSV Dataset.
>
>  I have tried to do something similar, but cannot figure out how to use
>  a variable in a response assertion.  The documentation is not overly
>  clear on this point.
>
>  1. I have an HTTP request that generates a well defined output message
>  2. I have successfully used a regular expression extractor to define a
>  variable that extracts
>  an expected value from the output message
>  3. I have used HTTP Request to invoke a simple ECHO ${VAR} to prove
>  that VAR was correctly defined in the regex extractor.
>
>  I have not been successful in using this var in a pattern for a
>  response assertion.
>
>  What is the correct way to do this?
>
>  For example, the following pattern does not work
>  some known text followed by ${VAR}

Are you sure?

It works fine for me.

Try defining VAR as fixed text, and check that the RA works.

If the VAR appears to be set, but is not being picked up by the RA,
then perhaps the variable is being defined after the RA is processed.

>  Nor does
>  some known text followed by ${__V(${VAR})}
>
>  or
>  ${__V(some known text followed by ${VAR})}
>
>  Surely there must be a way to drop a variable into a pattern for a
>  response assertion.
>
>
>
>  ---------------------------------------------------------------------
>  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