Contributions
Re: Set TestSuiteProperty via Event
Mmmmmmh.... is there really no one who could help us? :smileysad:6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews0likes0CommentsRe: Set TestSuiteProperty via Event
Hello Radford, Thank you very much. That helped me a lot. I managed to set the Testsuit variable via an event Script. Twopoints 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. Daniel6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.2KViews0likes3CommentsRe: Set TestSuiteProperty via Event
Hello HimanshuTayal You said "If you are adding event at TestSuite Leve then write." As far as I know the Events (menu at the upper right) are global and i can not specify, that i want to add an event for the TestSuite Level. We tried to add your line there with different triggers, but nothing happens. So my question still remains, how to i set this Variable though the Events :6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.2KViews0likes5CommentsSet TestSuiteProperty via Event
Hello Community, We just have a simple question regarding the changing of TestSuite properties with an event. We want to Change the property before every Teststep automattically. We tried the following lines: testRunner.testCase.testSuite.setProperty("Time", "Test123"); AND we also tried testRunner.testCase.testSuite["Time"].value = "Test123"; but none of them seem to work. We tried different events but we get no feedback. We do not know if our events even get executed, because we get no feedback. We also have no console to which we can make an output to, so we can see if our code gets executed. Could you please assisst? Thank you in advance. Daniel3.2KViews0likes7Comments