Forum Discussion
RJanecek
14 years agoRegular Contributor
Hi,
I want to help you but I am not sure If I understand your question. In varname you have name of your testCase right ?
where you are running your command ?
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.
Can you be more specific where you have NPE ?
I want to help you but I am not sure If I understand your question. In varname you have name of your testCase right ?
where you are running your command ?
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.
Can you be more specific where you have NPE ?