Forum Discussion
richie
Community Hero
I remember you saying before that testRunner isn't available in a script assertion - the Groovy Step snippet you provided is as follows:
def project = testRunner.testCase.testSuite.project project.getTestSuiteByName("Test Suite Name").setPropertyValue("propertyName", "Property Value")
if I wanted this in a script assertion - would the following work?
def project = messageExchange.modelItem.testStep.testCase.testSuite.project project.getTestSuiteByName("Test Suite Name").setPropertyValue("propertyName", "Property Value")
UPDATE TO TICKET: - I confirmed the above does work in a script assertion, so I was going to delete this post - but there's no facility to delete my message - so nmrao - no need to answer the question fella - cheers.
Thanks man,
rich
Related Content
- 12 years ago
Recent Discussions
- 5 hours ago
- 17 days ago