Need help with StresStimulus? Start here.
VUs to pick different items from a list
Unregistered User Posts: 514
2/14/2015
|
In the application I’m testing, I have a listview of about 400 items. I have created a test of 100 users with step iteration and 5 seconds in between. Is there any way to configure each user to pick a different item on the list?
|
|
0
link
|
George @StresStimulus Administrator Posts: 567
2/14/2015
|
Sure. Let me use an example. Let's say a listview contains 400 cities and when you recorded a test case you selected "New York". Check how this was reflected in the request. Most likely the value "New York" was submitted in the query string, in the web form or in another type of post body, such as Json or XML. You need to parameterize this request using datasets. Step 1: create a .csv file with 400 values and use it to create a dataset Cities with a field SelectedCity as described here http://support.stresstimulus.com/display/doc40/_Datasets Step 2: parameterize the request using one of the following methods: - If the request is not in a name value pair format ( Json or XML or Restful query string) use Free Format Request Editor, as described here http://support.stresstimulus.com/display/doc40/Free+Format+Request+Editor Select the recorded value "New York", right-click and in the variable picker, select data set Cities, field SelectedCity and the databinding method VU_Bound
After that, the first 100 items in the listview will be used by the 100 users.
|
|
0
link
|
Copyright © 2025 Stimulus Technology