Forum Discussion
Lucian
7 years agoCommunity Hero
I think you might be better of using properties. I just wrote an article on that at:
https://community.smartbear.com/t5/SoapUI-Pro/Properties-in-SoapUI-case-study/m-p/168195#M38070
So for instance you can have 3 project properties like:
- endpointRestA (with the value 'http://rest-a.com')
- endpointRestB (with the value 'http://rest-b.com')
- dynamicEndpoint
Both the RestServiceA and RestServiceB can have the endpoint set to ${#Project#dynamicEndpoint}. Now let's say you would want to run RestServiceB with the endpoint from RestServiceA and then run RestServiceB with the endpoint from RestServiceB... the following would be the flow:
1. set dynamicEndpoint = endpointRestA
2. run RestServiceB
3. set dynamicEndpoint = endpointRestB
4. runRestServiceB one more time
Hope this helps!
Related Content
Recent Discussions
- 20 days ago