Nullius
13 years agoOccasional Contributor
Clone a step with Groovy script
Hi there.
Ive been Groovy-scripting a lot these days and learning a lot.
However, when I try to clone a JDBC TestStep, it always asks me (via the rename dialog) to provide a new name, even when I specify a unique name in the method.
Is this a bug or am I doing something wrong?
Both testCase.cloneStep(step, name) as testStep.clone(case, name) show the same behavior.
Ive been Groovy-scripting a lot these days and learning a lot.
However, when I try to clone a JDBC TestStep, it always asks me (via the rename dialog) to provide a new name, even when I specify a unique name in the method.
Is this a bug or am I doing something wrong?
Both testCase.cloneStep(step, name) as testStep.clone(case, name) show the same behavior.
def newStep = ResultSetTemplateStep.clone(testRunner.testCase, "uniquenewname")
def newStep = testRunner.testCase.cloneStep(ResultSetTemplateStep, "uniquenewname")