Automation is need of this era. Fast delivery with quality cannot be achieved without a robust automation framework.
In this blog I will attempt to put all information related to automation and groovy that I've learned in my career.
Sunday, 6 November 2016
SoapUI : Get/Set property Value from groovy
Get/Set property Value of a Project from script
To be able to get a property value of a Project from the mock Service within the same project, you can use the below command under the Script of your mockService
To get/set values from the assertion script, you can use the below code in your assertion script. This kind of approach may help you with property transfer.
You can repace the hard values with another variable to be able to optimize your code.
SoapUI : Fetching path of the project file
In order to fetch the current path of the project you can use the "projectPath" function of GroovyUtils. This example can be useful when you have to refer files which will be located within project however you do not want to perform modification every time you move them to another location on the same server or another server.
No comments:
Post a Comment