Jump to content
WAPT Forum
Sign in to follow this  
Guest George

using variables inside a search parameter

Recommended Posts

Guest George

Hi Guys, Well done on WAPT! :D

 

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

Share this post


Link to post
Share on other sites
Guest George
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

 

 

Share this post


Link to post
Share on other sites
Guest George
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?

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...