Forum Discussion
Hello Radford,
Thank you very much. That helped me a lot. I managed to set the Testsuit variable via an event Script.
Two points are still missing for me:
1. For our testing, we use soap ui in a way, in which we run every Teststep manually. Since you already used the event "TestRunListener.beforeStep " i expected that the event would also be triggered, if i run a teststep (SendSyncData) manually, but it seems, that the Testsuitvariable tsProp gets only written, when i run the whole Testsuite. I tried different events i.e. LoadTestRunListen.beforeTestStep but i dont get the event triggered by running the TestStep only.
2. Where can i find the outputconsole from ´your logfile bellow? If i add a groovy script i can see a console but this console is only for the current teststep. If i rightclick on the Testsuit and select "Groovy Console" i dont get any output there.
Thank you very much in advance.
Daniel
1) I am not 100% sure of this but the way I understand it is, the "TestRunListener.beforeStep" event only triggers when you actually run a test case, like wise the "TestSuiteRunListener.beforeRun" only runs when you run a test suite. Thus it makes sense to me that they don't trigger when you run just a test step manually. Sorry if this does not really help, I've always written my tests so the "Test Case" is the independent unit I run, I've never created tests where I have to manually run test steps.
2) The log outputs I refered to are the main application logs, see the following documentaion link for full details:
https://support.smartbear.com/readyapi/docs/configure/logs.html
- Olga_T6 years agoSmartBear Alumni (Retired)
Hi all,
Great set of instructions, Radford! And thank you for getting back to this topic!
derbestebaer, if your question was answered, could you please click the Accept as Solution button below the reply that provides the solution? This will help other users find the answer faster in the future.Thank you in advance!