Forum Discussion
Hi,
If I'm understanding you right, you have an Assertion with a fixed value (id) in a GET request in a REST Request TestStep and you want this to vary when automating (running SoapUI from a script)? If so, then it sounds like all you need to do is to use a property (variable) as a "parameter" in the Assertion, then you can pass in different values for the Assertion to check at runtime - then yes, this is possible in all versions of SoapUI.
Is this the sort of thing you meant? If not, please provide an example of the response and Assertion that you want to do and hopefully I or someone else can help.
Regards,
Rup
Is it something that the user wanted to test with variying Ids? In that case, trying TEMPLATE parameter.
- Sandyapitester10 years agoFrequent Contributor
In my API user ID need to change in soapui resource, that is the big pro in my automation how to make it dynamically
- rupert_anderson10 years agoValued Contributor
Hi,
Where you say it needs to change, do you mean be passed in at runtime e.g. as a parameter?
For starters, take a look at:
https://www.soapui.org/scripting---properties/working-with-properties.html
Especially, section 2, which shows examples of passing -D paramaters on the command line and then referencing the property using the syntax ${test.a.property} - this could help you pass in the user id.
Is this the kind of thing you mean?
Regards,
Rup
- Sandyapitester10 years agoFrequent Contributor
Thanks for your help Bro,
Same suiter need to change the different userid(Dynamic) in the Rest API get method URL, if am using dynamic user id do need to create new suite or it's possible to reuse the existig suite.
if yes let me know process to work