Hi,
I have entered this below code in the test case teardown script.
def testcase = testRunner.getTestCase()
def steplist = testcase.getTestStepList()
def a = steplist[0]
def b = new com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepResult(a)
def c = b.getMessages()
def tclog = new File ("c:\\groovy\\testcaselog.txt")
tclog << c
In my variable c (and my .txt file) i get {} (two flowery brackets). but no messages. According to me, i have to get the test case log , something like -
Test started at 2008-03-11 15:23:40.488
Step 1 [Request 1] OK: took 11578 ms
TestCase finished with status [FINISHED], time taken = 11578
in my variable c.
Is my code correct? If not what should i enter in the teardown script to get the above information. I do not want to use the button to export to file, but i want the same action in groovy.
Please help.
Kusuma.