captainfranz
12 years agoOccasional Contributor
Visibility of variables in load test setup script
I currently have a simple load test which consists of two steps: a Groovy script and an HTTP request.
I need some setup code that generates some variables and then I need to read those variables (lists if that matters) in the Groovy test step.
I feel that the right place to put this initialization code is in the setup script of the load test. However, it seems that I can't directly access those variables from the Groovy script test step. Is there a special syntax that I need to use in order to make them visible there or is there a better way of doing this?
This page I found in the documentation might be relevant:
http://www.soapui.org/Load-Testing/load ... pting.html
However, even after reading that, it is still not quite clear how to do exactly what I'm asking, maybe an example in that page would be helpful.
I need some setup code that generates some variables and then I need to read those variables (lists if that matters) in the Groovy test step.
I feel that the right place to put this initialization code is in the setup script of the load test. However, it seems that I can't directly access those variables from the Groovy script test step. Is there a special syntax that I need to use in order to make them visible there or is there a better way of doing this?
This page I found in the documentation might be relevant:
http://www.soapui.org/Load-Testing/load ... pting.html
However, even after reading that, it is still not quite clear how to do exactly what I'm asking, maybe an example in that page would be helpful.