Jump to content


Variable URL's without querystring parameters


  • Please log in to reply
4 replies to this topic

#1 Guest_krisg_*

Guest_krisg_*
  • Guests

Posted 07 February 2011 - 07:08 AM

Is it possible to create scenarios where the URLs visited are randomly selected from a file.
I know it's possible to do this for URL's that have the form:

http://www.domain.co.../view?id=123456

Where the id in the URL is retrieved from a file.

But is is possible, and if so how, to generate random URLs from a file that have the form:

http://www.domain.co...cts/view/123456

#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 663 posts

Posted 08 February 2011 - 09:38 AM

Yes, it's possible. You can use $Var function in URI path. For example, you can use following URI path:

/products/view/$Var(SomeVariable)
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_krisg_*

Guest_krisg_*
  • Guests

Posted 16 February 2011 - 06:34 AM

Hi Sergei,

I actually figured it out just after i posted the question, but thank you anyway for your assistance.

#4 Guest_rene_*

Guest_rene_*
  • Guests

Posted 14 November 2012 - 08:51 AM

Yes, it's possible. You can use $Var function in URI path. For example, you can use following URI path:

/products/view/$Var(SomeVariable)


Hi Sergei,

Where would it get the value from?
Would it be possible to retrieve the value from a file?
If so how would I do that?

#5 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 663 posts

Posted 14 November 2012 - 10:12 AM

It will get value from the variable with name "SomeVariable".
Yes, you can use $LOrder and $LRand functions or JavaScript operator to initialize the variable by a value from file.
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