Forum Discussion
socaltester
Contributor
Added def testCase - messageExchange.modeItem.testCase
def testCase = messageExchange.modelItem.testCase def slaveTestStep = testRunner.testCase.testSuite.project.getTestSuiteByName("AdminTestSuite").getTestCaseByName("Authenticate") testRunner.testCase.testSuite.project.getTestSuiteByName("AdminTestSuite").getTestCaseByName("AppBundles(addBundle)").cloneTestStepByName(slaveTestStep,"Authenticate")Tags (0) authentication
Now this is the Exception:
Exception thrown groovy.lang.MissingPropertyException: No such property: messageExchange for class: cloneAuthenticateStep at cloneAuthenticateStep.run(cloneAuthenticateStep.groovy:1)
richie
5 years agoCommunity Hero
Hey socaltester,
Is this a groovyscript or script assertion?
I know testrunner isnt available in script assertions so you need to use messageExchange instead.
It looks like youve mixed and matched...when you define the testcase variable try using testrunner instead (assuming this is groovy step) of messageExchange.
Nice one,
Rich
Is this a groovyscript or script assertion?
I know testrunner isnt available in script assertions so you need to use messageExchange instead.
It looks like youve mixed and matched...when you define the testcase variable try using testrunner instead (assuming this is groovy step) of messageExchange.
Nice one,
Rich
- socaltester5 years agoContributor
Thank you, Rich. This is to be a Groovy Script. I'll give your recommendation a shot.
- sonya_m5 years agoSmartBear Alumni (Retired)
Thank you richie.
socaltester , please keep us informed of your progress with solving this one. Thanks.
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
Related Content
- 6 months ago
- 13 years ago
- 8 years ago