Forum Discussion
Hi Ashkht,
Thank you for your post. When the test item run finishes, the test engine runs its TearDown script: https://support.smartbear.com/readyapi/docs/soapui/scripts.html
To write to Excel file you can use the DataSink test step:
https://support.smartbear.com/readyapi/docs/soapui/steps/data-sink.html
BTW, why do you need the test step status, when you can get the status of the whole TestCase:
for ( testCaseResult in runner.results ) { testCaseName = testCaseResult.getTestCase().name
testCaseResult.getStatus().toString() }
Hello Anastasia,
Thanks for your response!
Can we write above mentioned script in "Groovy Script" step at the end of test case before "DataSource Loop" step, instead of being written as Tear Down Script.
I am interested to get status of TestStep , ex: Assertion step, because i am looping my SOAP UI test case using DataSource Loop test step which will loop in multiple rows of excel, wherein each row corresponds to unique test condition, so that before end of loop/ moving to next test condition, i can get "Assertion" test step status and make a decision whether i should write as "Pass/Fail" for corresponding test case in same excel which is already been used as DataSource instead of using separate DataSink Test Step.
Can you please assist with this updated info. PFA snippet of test steps for test case designed in SOAP UI.
Thanks,