Forum Discussion
SoapUser2012
14 years agoOccasional Contributor
Hi ,
Thsi is working fine for me as well:
When I run this command in testCase setupScript I got whot you want:
def tc = testRunner.testCase.testSuite.project.testSuites["a"].getTestCaseByName("b") where a is name of my testSuite and b is name of my testCase.
I want to use the variable name in place of "a" /'b" . Say you have array of test case names and want to input arr there in place of test case name in the above . Hope its clear now.
thanks
Thsi is working fine for me as well:
When I run this command in testCase setupScript I got whot you want:
def tc = testRunner.testCase.testSuite.project.testSuites["a"].getTestCaseByName("b") where a is name of my testSuite and b is name of my testCase.
I want to use the variable name in place of "a" /'b" . Say you have array of test case names and want to input arr there in place of test case name in the above . Hope its clear now.
thanks