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 and as default values ​​like Pro_Response Nothing

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.

  string testString = "TestString" testRunner.testCase.setPropertyValue ( "Pro_Response", testString) def getLocalPropValue = testRunner.testCase.getPropertyValue ( "Pro_Response") log.info (getLocalPropValue)   

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:
here image Enter details

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 .

  testRunner.testCase.testSteps [ "Properties"] setPropertyValue ( "Pro_Response", testString)    

Comments

Popular posts from this blog

c# - Textbox not clickable but editable -

Matlab transpose a table vector -

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -