Jump to content


Creat a dynamic string


  • Please log in to reply
3 replies to this topic

#1 Guest_George_*

Guest_George_*
  • Guests

Posted 26 October 2009 - 06:08 PM

Hi,

I am testing a site that allows a search using a comma separated list as the criteria in the usl. This list could be 1 item or could go up to 100 items separated by commas.

For example:
http://localhost.her...show/moneywatch

or it could be:http://localhost.here.com/p-ws-public/ws/categories/videos/fetch?categoryKey=/ng/tv/show/viva-laughlin,/ng/tv/show/conviction

I want to be able to take items randomly from an external file and build a comma separated list dynamically. Is there some way to do this in WAPT? Can I script this?

Any ideas?

#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 660 posts

Posted 30 October 2009 - 09:48 AM

Hi, George

In the current version of WAPT you can initialize a variable by random value from an external file and use it as URL path. But the file should contain already formed URLs. In the next version of WAPT Pro you will be able to use java script and build URL path dynamically during a test.

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_mshrestha_*

Guest_mshrestha_*
  • Guests

Posted 19 November 2009 - 07:04 PM

QUOTE (Sergei Leonov @ Oct 30 2009, 09:48 AM) <{POST_SNAPBACK}>
Hi, George

In the current version of WAPT you can initialize a variable by random value from an external file and use it as URL path. But the file should contain already formed URLs. In the next version of WAPT Pro you will be able to use java script and build URL path dynamically during a test.



Hi Which version are you talking here?
I've WAPT Pro 1.0 Built on May 7 2009. Does it have support for the java script?

Manish

#4 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 660 posts

Posted 23 November 2009 - 11:13 AM

QUOTE (mshrestha @ Nov 20 2009, 01:04 AM) <{POST_SNAPBACK}>
Hi Which version are you talking here?
I've WAPT Pro 1.0 Built on May 7 2009. Does it have support for the java script?

Manish


WAPT Pro 2.0 will support java script execution.
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