I am using Gatling and am running into an issue implementing an integration test. The test I am running has two parts (scenarios
):
The first part is a simple GET
request to verify expected server responses. In this step, it returns a form's configuration ID
as well as other properties of the form.
In the next step, I am hitting PUT
route which updates various properties of this form's configuration for testing of this route and other functionality through the back ends of an application.
The issue with these steps is that after running the second step, if there are any forms saved under that configuration, it will clone a copy for security purposes and changes the ID
. Long story short, the same ID
does not persist from test to test.
My question is: Is there a way within Gatling to run SQL Queries to get values and store them and then pass them? OR is there a way to store a variable from the GET
method and pass it in in the second scenario's PUT
method. I know there is Gatling's .saveAs()
method, but I believe the scope of this function is only scenario
.
Please notify me for further clarification and details; thanks in advance.