Jump to content


Photo

Restful API Parameterization


  • Please log in to reply
1 reply to this topic

#1 mewongster1

mewongster1

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male

Posted 29 March 2013 - 07:31 PM

Hi,
Using WAPT for testing a page that uses Restful API urls.
The page I need to parameterize follows this format on a submit requests:
www.site.com/restpath1/restpath2/value
The “value” is the part I am trying to parameterize.

I’ve tried created/assigning a “word” parameter, but keep ending up with something like:
www.site.com/restpath1/restpath2/?word=blahblah.com

Is it possible to not pass the "?word'" and accomplish something like:
www.site.com/restpath1/restpath2/blahblah.com

Does WAPT support this Rest API parameterization?
If it does, could anyone possible send me an example on how to do this?

Thanks!

#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 660 posts

Posted 02 April 2013 - 07:50 AM

You can create a variable in previous request and use it in the URL Path.
Your URL Path will look like /restpath1/restpath2/$Var(some_var_name).
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users