Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ11524
Printer Friendly
Email Article Link
Avalanche: Can I the action list to pick a random value from a forms db for each GET request?
Answer
Yes, this can be done with a cursor.
Example of using a global cursor to randomly access a formsDB file:
CREATE <global.mycursor1 Form_0001 random_uniform_autoinc>
#Assigns values of Form_0001 to a global cursor named mycursor1
ASSIGN VARIABLE <myvar1 global.mycursor1 1>
#Assigns value from cursor to ‘myvar1’ from Form_0001 column 1
1 GET
http://<APPLY
myvar1>
#Applies current random myvar1 value to the request
For additional information and examples search the help with keyword 'cursor'
Version
3.0
Publish Date
2016-02-16
Categories
Product : L4-7,App Testing,Avalanche,HTTP
Related Articles