SoapUser2012
13 years agoOccasional Contributor
How do I use a variable in getTestCaseByName()
Hi ,
1.I'm running the test cases in a test suite in a loop and logging the results.
All the test case names are in array. I want to fetch the testcase names in a loop for each iteration and use it in the below call:
varname=testcasenames
//def tc = testRunner.testCase.testSuite.project.testSuites[var name ].getTestCaseByName(varname)
Thanks
1.I'm running the test cases in a test suite in a loop and logging the results.
All the test case names are in array. I want to fetch the testcase names in a loop for each iteration and use it in the below call:
varname=testcasenames
//def tc = testRunner.testCase.testSuite.project.testSuites[var name ].getTestCaseByName(varname)
Thanks