WAPT Forum: First number of characters of variable - WAPT Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

First number of characters of variable

#1 User is offline   Youri 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 28-March 11
  • Gender:Male
  • Location:Netherlands

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.
0

#2 User is offline   Sergei Leonov 

  • Advanced Member
  • PipPipPip
  • Group: Administrators
  • Posts: 484
  • Joined: 12-February 08

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
<a href="http://www.loadtestingtool.com" target="_blank">http://www.loadtestingtool.com</a>
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users