2446541820
2 years agoNew Contributor
set request url a params
I senf a request to the server with an IP , But When I send the request to my computer , I have to change the IP address. It is too much unconvience , It is a way better way?
You could add a Groovy script step prior to your Request step to recognize the user or computer,
or even obtain the IP of the machine being run on store that to a test case custom variable.
You can do a a lot in a Groovy script to look for and capture information to store for later use into variables,
In your Request step, replace you IP value with the variable from the test case level.
How Can I add a Groovy script step prior? Can I set a gloabal variables that can work everywhere?