Sunday 6 November 2016

SoapUI : Externalizing target URL and TestSuite custom parameters

SoapUI's best strength is "groovy" which is almost always there to save you from specific project requirements. We had this requirement to externalize target URL of a test step and test suit, and agin groovy was there to save our day.
  • You must accept that you cannot externalize everything, there will always be something that you will have to hardcode. So, we started with hardcoding the path of an external file using TestSuite's custom properties.
  • Add a groovy test step under the test case you want to achieve this functionality.

In case you prefer to update the target URL/end point of the test steps withing TestSuit's setup script then you'll have to modify the script a little bit to be able to fetch the test step name.

No comments:

Post a Comment