Trying to set test case property for a different project. No errors but it isn't set.
I run the following script:
import com.eviware.soapui.impl.wsdl.WsdlProjectPro
def projPath = testRunner.testCase.testSuite.project.path.split('\\\\')
def path2Auth = (projPath - projPath.getAt(projPath.size()-1) + "KeyVault-readyapi-project").join('\\\\')
def prj = new WsdlProjectPro(path2Auth)
def testSuite = prj.getTestSuiteByName("KeyVault")
def testCase = testSuite.getTestCaseByName("AccessToken")
def creationTime = testCase.getPropertyValue("creationTime")
log.info("creationTime:" + creationTime )
testCase.setPropertyValue("creationTime", "")
log.info("creationTimeAfterChange:" + testCase.getPropertyValue("creationTime") )
It works without errors and returns the result that the property is empty. But in fact, it isn't. It still has a value as before changes.
How to resolve it? Why it happens?
Regards,
Elena