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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×