I want to set property in Project level, with my groovy code I can set a property in TestCase level. How can do the same to set property in Project level
Here is my code:
import groovy.json.JsonSlurper
responseContent = testRunner.testCase.getTestStepByName("TestStepName").getPropertyValue("response")
slurperresponse = new JsonSlurper().parseText(responseContent)
slurperresponse.id.toString()
log.info (slurperresponse.id.toString())
property_name = 'a'
def idProperty = setupTestCase.getProperty(property_name).toString()
setupTestCase.setPropertyValue('a',slurperresponse.a.toString())
Here I'm setting the TestCase property "a" from the response of a TestStepName. I'm using Soapui.
Thank you