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?
Hi,
Re "Can I set a gloabal variables that can work everywhere?". Yes, kind of. The "highest" level you can set a global variable (Custom Properties in SoapUI speak) is at the Project. Create a custom property there. Something like "urlToTest" that contains the 'root' URL to want to call. E.g. "localhost:8080" or "https:\\myDevServer".
The in the test step, you can change the URL to include the customer property. E.g. ${#Project#urlToTest}\getCustomers.
When the step runs, SoapUI will substitute ${#Project#urlToTest} with the actual value.