MatthewBeste
11 years agoOccasional Contributor
Is there a way to set the Run mode of a test case from Groov
Hi,
I have been digging around all day. I created a testcase that sends an email. I cam caling the test case druing the teardown script to send an email if the test passes or fails. I am doing this for every test. It appears that the testcase is not executing in the create isolated copy for each run mode. Does anyone know how to set this from groovy?
The script I am using is as follows
def testCase = testRunner.testCase.testSuite.project.testSuites['Modules'].testCases['SendEmail']
testCase.setPropertyValue("Subject", subject)
testCase.setPropertyValue("Body",body)
testCase.run(null, false)
I have been digging around all day. I created a testcase that sends an email. I cam caling the test case druing the teardown script to send an email if the test passes or fails. I am doing this for every test. It appears that the testcase is not executing in the create isolated copy for each run mode. Does anyone know how to set this from groovy?
The script I am using is as follows
def testCase = testRunner.testCase.testSuite.project.testSuites['Modules'].testCases['SendEmail']
testCase.setPropertyValue("Subject", subject)
testCase.setPropertyValue("Body",body)
testCase.run(null, false)