Reputation: 237
I am new to SoapUI. I am trying to do the following in SoapUI but don't know where to start: 1. Create a XML file with the content of a SOAP request 2. Reuse the file created in step 1 as template in other testcases
Thanks,
Upvotes: 2
Views: 2696
Reputation: 1
xml
file. groovy script
and the content in the file can be assigned to the Test variable of the test case.${#TestCase#templateData}
in the XML request
Please remember that templateData
should be the name of the custom variable of the test case.
Upvotes: 0
Reputation: 237
I have found a way to achieve this:
Create the content of the template xml into a property file as Name/Value pairs
In the request, use the property(s) at appropriate place using the syntax "${#PROPERTY_NAME}"
In the setup script, load the property file
Upvotes: 1