Forum Discussion
I just noticed that , that specific eventHandler I'm using is only trigger when I RUN tests at test case level.
When doing it I'm getting this warning message:
WARN: Unable to find the test step [GetSchemaDefinition] in the test case [/api/aaa/bbb]
I now need to figure out how access to look for TestStep "GetSchemaDefinition" on a different TestCase.
Any help is appreciated,
Thanks
Yes, EventHandler will run before each and every Test Step and if your described Test Step isn't there then your script will get failed
In order to achieve this you can write this login into Setup Script of that Test Case where Test Step is placed.
- nicolaspwc4 years agoNew Contributor
Hi, thank you for your answer. At the moment I actually need this script to be run literally before every testStep.
I'm near to solve it with below code, but I'm facing two new issues:def tCase = testRunner.testCase.testSuite.testCases["getSchema"]
def porp = new com.eviware.soapui.support.types.StringToObjectMap()
runner = tCase.run(null, false);1. The script run in a loop and it never ends. How can I run it only once?
2. I actually need to run a testStep from a different suite, not current one. I tried with below code and it didn't work, any suggestion?
testRunner.testCase.testSuite.testSuite.testCases["getSchema"]
Related Content
Recent Discussions
- 20 days ago