Clone Test Step into Multiple Test Cases Using Groovy
I have a Test Step that I need to clone into all the Test Cases I have within all the Test Suites. Would the following script work when ran against each Test Suite individually: def slaveTestStep = testRunner.testCase.testSuite.project.getTestSuiteByName("Test Suite").getTestCaseByName("Name") testRunner.testCase.testSuite.project.getTestSuiteByName("Test Suite").get TestCaseByName("Name").cloneTestStepByName(slaveTestStep,"NewName") Tags (0) Add tags2.7KViews0likes8CommentsCopy assertion
Dear community members, I would like to know how can I copy assertions from 1 test case to another, such that the referred expected values are also updated accordingly. Here is my scenario: Test Case 1: contains DataSet1, RestRequest1, Assertion1 Test Case 2: contains DataSet2, RestRequest2 .... and so on... upto Test Case 60: contains DataSet60, RestRequest60 The Assertion1 (of test case 1) is a Message content assertion and its expected value is referred as ${DataSet1#out_value}. My intention is to copy assertion1 to the other 59 test cases. But when I copy assertion 1 to TestCase n, the copied assertion is still referring to ${DataSet1#out_value}. And then I have to manually modify each copied assertion to DataSet n. Is there a mechanism where when I copy assertion to testCase n, it automatically refers to ${DataSet n#out_value}. Thanks in advance.1.3KViews0likes3CommentsClone existing test seems to crash and not do anything
Hello I am having issues trying to clone existing tests in cucumber studio. Normally when i clone and a test, it would take a few seconds to clone, but over the last week, it seems to be taking hours. Today i tried and its been 5 hours and it still has not cloned. All i get is the spinner on the clone field.1.2KViews0likes0Comments