groovy - How to add data to the properties created locally under test case in Soapui Pro? -
I have a TestCase under TestSuite phase project will see, inside I test case Properties Test step and Groove script test steps Properties step, I assets This As such, I used the following Groove script to assign a string value to the property, and then it shows the string in the log. Q: Why not update the string value of the property steps I added under the test case is the same property name (ie Pro_Response ) Is used to specify in the script? Please see the screenshot for your reference: Th anks, Karunagara Pandi a" Attribute "is included in the test step << br> / strong>, but updating your script to update an asset in your script test case .
string testString = "TestString" testRunner.testCase.setPropertyValue ( "Pro_Response", testString) def getLocalPropValue = testRunner.testCase.getPropertyValue ( "Pro_Response") log.info (getLocalPropValue)
testRunner.testCase.testSteps [ "Properties"] setPropertyValue ( "Pro_Response", testString)
Comments
Post a Comment