Dear Dain,
Thank you very much for the code - I enter my project details and it correctly attempts to launch the selected script but all I get is a Script Result Information message. The groovy script I am wishing to call in itself calls other test steps within that test case - the called script does work standalone when you run it by selecting it individually, but nothing happens when it is called with your provided code - just the information message. Maybe I have to include other parameters to make it run? Like references to property values?
I made a test groovy script with a log.info message and that worked when it is called, so the script call code works, but I don't understand why it doesnt run all the steps in the actual script I want to call.
Here is another script I try to call - it has an assertion which should fail as the data is not matched correctly but when you call it I get a "Information Message" that the script ran - but no assertion failure message. The called script is:
// Display the number of <transmission> tags shown in the XML file
log.info "NUMBER OF XML DOCUMENT TAGS ARE " + testRunner.testCase.testSteps["PropertiesXML"].getPropertyValue("<transmission> XML tag count")
// Display the number of <transmission> tags shown in the XML file
log.info "NUMBER OF DB DOCUMENT TAGS ARE " + testRunner.testCase.testSteps["PropertiesDB"].getPropertyValue("<transmission> DB Tag Count")
// <transmission> tag count between DB and XML
if (testRunner.testCase.testSteps["PropertiesXML"].getPropertyValue("<transmission> XML tag count") == testRunner.testCase.testSteps["PropertiesDB"].getPropertyValue("<transmission> DB Tag Count"))
{log.info "MATCH"}else{log.info("MISMATCH - <transmission> count FAILED" )}
// Check and log <transmission> tag count between DB and XML
assert testRunner.testCase.testSteps["PropertiesXML"].getPropertyValue("<transmission> XML tag count") == testRunner.testCase.testSteps["PropertiesDB"].getPropertyValue("<transmission> DB Tag Count")
Best regards,
Armen