framirez
14 years agoOccasional Contributor
how to use a common XML entry in different requests steps
I am creating a test plan of a REST using soapUIPro where I need to create different test cases within request steps which will use the same entry XML. I mean, I have several test cases, within a POST request step. These request steps are the same in all test cases and they will use the same entry XML. The only difference are in assertions, because they are depending on previous steps which are different in each test case.
As I always use the same XML entry, I would like to centralize it. So, If xml has to change, I will only have to rewrite the xml in one place and all requests will use the new one automatically. I wanted to do that in Resource level (in method definition) in similar way as I define method pararmeters, but it is not possible.
The only ways that I know are:
- loading the XML in a shared property.
- Insert the XML in an shared external file and program a script to load the XML from the file.
But do you know if soapUI tool provides any other ways to do that?
As I always use the same XML entry, I would like to centralize it. So, If xml has to change, I will only have to rewrite the xml in one place and all requests will use the new one automatically. I wanted to do that in Resource level (in method definition) in similar way as I define method pararmeters, but it is not possible.
The only ways that I know are:
- loading the XML in a shared property.
- Insert the XML in an shared external file and program a script to load the XML from the file.
But do you know if soapUI tool provides any other ways to do that?