Forum Discussion
Is it something that the user wanted to test with variying Ids? In that case, trying TEMPLATE parameter.
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
- rupert_anderson10 years agoValued Contributor
Ok, so do you want one (fixed) Test Suite that that gets run multiple times with different user ids? Perhaps where the value is taken from a list / file or something?
If so, it is certainly possible to reuse the same suite. Although it may be more like you have 1 TestSuite and want to repeat the same REST Request TestStep multiple times, one time for each user? This would be a very popular theme in SoapUI i.e. data driven testing. There are lots of posts on this here, this is a popular blog on the topic https://learnsoapui.wordpress.com/2012/05/19/groovy-datasource-teststep-dataloop-teststep-using-groovy-in-soapui/