cancel
Showing results for 
Search instead for 
Did you mean: 

Cloning of Test Step

rah
Occasional Contributor

Cloning of Test Step

I tried to clone a mock response test step and then jumping with the testRunner to this new step. Unfortunately I always end up with a NullPointerException. What am I doing wrong?

Here the code of my groovy script:

def testCase = testRunner.getTestCase()
def wait_step = testCase.getTestStepByName("waiting")
def clone_step = testCase.cloneStep(wait_step,"wait_clone")
Integer index = testCase.getIndexOfTestStep(clone_step)
testCase.moveTestStep(index, -1)
testRunner.gotoStepByName("wait_clone")
1 REPLY 1

Re: Cloning of Test Step

Hi rah,

this is known bug and it will be fixed soon.
Check out http://www.eviware.com/nightly-builds/ in a couple of days.

Best regards ,

Nebojsa
eviware.com


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Top Kudoed Authors