Need help with StresStimulus? Start here.
CSV Dataset and End of File
ruchi Posts: 4
4/26/2018
|
I need to iterate over the dataset that is given as csv file. Now I know that i can create a loop and insert Number of Iterations to the total number of records in my dataset. But i do not want the user to update number of iterations everytime the csv file is changed. Is there any way of finding End of file of CSV ? If yes, then how can i insert that in my request so that my request gets parametrized with subsequent rows of the dataset?
|
|
0
link
|
George @StresStimulus Administrator Posts: 568
4/27/2018
|
There is no direct support for adjusting test duration based on the size of a dataset, but there are two possible workarounds that I can think of
1. In your datasets always have the last record that has a specific value in one of the fields, for example, "end-of-data set". Then create a custom validator that checks for that value and stops the test http://support.stresstimulus.com/display/doc48/Response+Validators
2. You can write your scriptable component that programmatically determines the size of a data set and based on that adjusts a test duration or loop duration http://support.stresstimulus.com/display/doc48/Creating+External+Components
Unfortunately, we did not provide support for developing scriptable components on the public forum.
|
|
+1
link
|
Copyright © 2025 Stimulus Technology