Forum Discussion

hutabarat2014's avatar
hutabarat2014
Contributor
11 years ago

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:

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