hutabarat2014
11 years agoContributor
Transfer Property from a Test Case to another
Hi All,
I am trying to transfer a property from one Test Case to another using Groovy Script as follows:
But, I get an error like this below. Please advise.
Thank you,
Leo
I am trying to transfer a property from one Test Case to another using Groovy Script as follows:
def Testing1 = testCase.testSuite.poject.testSuites["ABC"].testCases["DEF"]
def Testing2 = testCase.testSuite.poject.testSuites["ABC"].testCases["GHI"]
def Testing3 = testRunner.Testing1.setPropertyValue("w_SessionID", testRunner.Testing2.getPropertyValue("w_SessionID"))
But, I get an error like this below. Please advise.
Thank you,
Leo