Jump to content


Photo

validating random street addresses


  • Please log in to reply
3 replies to this topic

#1 david.calhoun

david.calhoun

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 09 April 2013 - 04:43 PM

I have a file with address, city, state, zip. I need to randomly select the address, but the city, state, and zip have to match. I can separate each into their own file, and use $LRand(), but that chooses any random address, and combines that with any random zip, etc. I can use $LOrder(), but that starts at the beginning of the file each time. Same with comma separated values. I basically need each session to randomly choose a line of a csv file, and not just start at the beginning row each time we start a test.

#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 11 April 2013 - 11:00 AM

I can suggest JavaScript only.
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 david.calhoun

david.calhoun

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 11 April 2013 - 03:14 PM

Can i declare a variable at the beginning, instead of it pulling a new value each time? For instance, and i pull a random zip code at the beginning and keep using that same code? If i use $Lrand() each time, it comes up with a different number.

#4 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 12 April 2013 - 04:09 AM

Yes, you can.
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