Forum Discussion
nmrao
Champion Level 3
Have you tried any?
sachin-chanchal
8 years agoOccasional Contributor
I have tried
def workspace = testRunner.testCase.testSuite.project.workspace
project = workspace.getProjectByName('ProjectName');
apiTestSuite = project.getTestSuiteByName(TestSuite1);
apiTestCase = apiTestSuite.getTestCaseByName('TestCase1');
apiTestStep = apiTestCase.getTestStepByName('TestStep1');
testRunner.testCase.testSuite.project.getTestSuiteByName("TestSuite2").getTestCaseByName("TestCase2").cloneTesStep(TestStep1,TestStep1)
But, this code is not working
Related Content
- 12 months ago
- 4 years ago
Recent Discussions
- 18 days ago