Jump to content


using variables inside a search parameter


  • Please log in to reply
4 replies to this topic

#1 Guest_George_*

Guest_George_*
  • Guests

Posted 18 March 2011 - 03:40 PM

Hi Guys, Well done on WAPT! biggrin.gif

I would like to know if there is a way to use a variable inside left or right boundaries in the search parameter function?

eg. I am taking a value from a drop down list and the only thing I know in advance is the text that will be in the list because I had set that string in a previous step. So in a static scenario the left boundary would look like this: Left Boundary= <str>WAPTUser5</str>

What I want to do is make part of the Left Boundary sting dynamic based on a value I set earlier: Left boundary= <str>$Var(Username)</str>

Is there a way to do this?

-George

#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 663 posts

Posted 22 March 2011 - 11:52 AM

Unfortunately it is not possible now.
Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com

#3 Guest_George_*

Guest_George_*
  • Guests

Posted 22 March 2011 - 05:12 PM

QUOTE (Sergei Leonov @ Mar 22 2011, 06:52 AM) <{POST_SNAPBACK}>
Unfortunately it is not possible now.

Do you think this could be a good feature for a future release?
I use this type of inline substitution often in SoapUI but I was hoping to do this with a web testing tool like WAPT as well.

Thank you,
-GK



#4 Guest_George_*

Guest_George_*
  • Guests

Posted 22 March 2011 - 05:26 PM

QUOTE (Sergei Leonov @ Mar 22 2011, 06:52 AM) <{POST_SNAPBACK}>
Unfortunately it is not possible now.

In the mean time is there a way (maybe) to get the last item from the list using the Index parameter?

#5 Ivan Lisitsyn

Ivan Lisitsyn

    Newbie

  • Administrators
  • Pip
  • 4 posts

Posted 24 March 2011 - 02:04 PM

Unfortunately both things are not available directly in the current version of WAPT, however in WAPT Pro you can use JavaScript code to process server responses. So, if you have the Pro version, you can do this with help of regexps.

Ivan Lisitsyn
Visit our On Load Testing blog




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users