Forum Discussion
Vallalarasu_P
7 years agoFrequent Contributor
Adding New TestSuite
def suite = context.testCase.testSuite.project.addNewTestSuite("AutomatedTestSuite")
Adding New TestCase
def tc = suite.addNewTestCase("automatedTestCase")
// get a Test Step
def project = context.testCase.testSuite.project
Defining the Test Step for the Suite,Testcase and TestStep
def testStep = project.testSuites['TestSuiteName'].testCases['TestCaseName'].testSteps['testStepName']
// add it to your new generated testCase
tc.cloneStep(testStep,testStep.name + "_Copy")
Hope this helps
Related Content
- 6 years ago
Recent Discussions
- 21 days ago