Jump to content

First number of characters of variable

  • Please log in to reply
1 reply to this topic

#1 Guest_Youri_*

  • Guests

Posted 30 March 2011 - 09:24 AM

I have a website with an auto complete function. So I've created a list of index words and want to use these as natural as possible. So choose a index word and put it into a variable, then hit the service with the first two chars of that variable, then the first three, the first four, first five.

Problem is I cannot find a function to perform some sort of substring function. Is this not available?

For now I will create 5 different lists (one for each length) and use the $LRand method.

#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 664 posts

Posted 01 April 2011 - 07:01 AM

In WAPT Pro you can use JavaScript to create substrings from index words. It's a better solution for your case.
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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users