HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

CSV Dataset and End of File Messages in this topic - RSS

ruchi
ruchi
Posts: 4


4/26/2018
ruchi
ruchi
Posts: 4
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
George @StresStimulus
Administrator
Posts: 137


4/27/2018
George @StresStimulus
George @StresStimulus
Administrator
Posts: 137
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
ruchi
ruchi
Posts: 4


4/30/2018
ruchi
ruchi
Posts: 4
Thanks for the information.

But isn't validator for validating response? Here, I need to check 'End-Of-File' String in my CSV dataset that will be sent as parameters in requests.
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 137


4/30/2018
George @StresStimulus
George @StresStimulus
Administrator
Posts: 137
The workaround with the validators can be used if the value from the dataset included in a request, is then sent back in one of the subsequent responses. For example, the request contains a person’s name to create a new record, and then the response includes this name to confirm that the record is created. If your application does not work this way, then you may need to write custom code.

StresStimulus does not have direct support for the requirement to stop the test when the end of a particular dataset is reached because it does not seem to be a typical requirement for load testing.


Can you explain why you need this requirement, is it for performance testing?
0 link






Copyright © 2018 Stimulus Technology