Forum Discussion
Hi SanthoshShetty,
Yes, you can store your endpoint in global proberties and parameterise it, so if any change came , you only need to modify only at 1 place.
Global Properties situated at:
Preference -> Global Properties
Syntax to use Global Properties value:
${PropertyName}
- SanthoshShetty6 years agoOccasional Contributor
Hi Himanshu,
Thanks alot for your reply. It answers my question, but in our scenario we want to pass the host name details dynamically from the command line. Can we write/ overide the property value dynamically by passing the value in command line argument.
Global property created is : EndPoint and its value is - https://dwu-usystem11:9002
Actual End point: https://dwu-usystem11:9002/authorizationserver/auth?username=test&password=test
Rest Service created in the test case in the below format:
${EndPoint} /authorizationserver/auth?username=test&password=test
Now if I have to run on different end point say - https://dwu-usystem22:9002, then can I pass this value from the command line argument and override the existing property value so that it runs on the end point - https://dwu-usystem22:9002
Really appreciate and thank you.
Santhosh.G
- HimanshuTayal6 years agoCommunity Hero
Hi SanthoshShetty,
I found blow stack overflow post, but didn't have time to check it by myself, please refer it and let me know if it didn't help you.
how-to-pass-parameters-to-soapui-in-command-line
- Olga_T6 years agoSmartBear Alumni (Retired)
Hello everyone,
HimanshuTayal, thank you for the assistance provided, it is much appreciated!
SanthoshShetty, did the latest link Humanshu provided help you? If you are all set, do you mind accepting the reply that answers your question best as a Solution? This will make the search for the answer easier for other users in the future.
Thanks in advance.
Related Content
- 5 years ago
- 4 years ago
- 4 years ago
- 8 years ago
- 4 years ago