agupta1
16 years agoContributor
Simulate "Run TestCase" in groovy script
I want to perform some operations in my startup script and one of it is to execute a test case (that has input and output parameters) just like "Run TestCase" step.
I tried the following
def caseDef = testRunner.testCase.testSuite.project.testSuites['Suite1'].testCases['case1']
def tr = new WsdlTestCaseRunner(caseDef, new StringToObjectMap());
tr.run()
This does execute the testcase, but input and output parametes are not exchanged. If I perform testRunner.runTestStepByName() for a test step, the parameters are exchanged.
Any help....
I tried the following
def caseDef = testRunner.testCase.testSuite.project.testSuites['Suite1'].testCases['case1']
def tr = new WsdlTestCaseRunner(caseDef, new StringToObjectMap());
tr.run()
This does execute the testcase, but input and output parametes are not exchanged. If I perform testRunner.runTestStepByName() for a test step, the parameters are exchanged.
Any help....