Transaction Logging - Tip & Tricks 8.1 Script records all teststeps EXCEPT one!!??!?!????
Hey!
There's been several posts relating to recording the results of all the steps within your test case/suite/project. Tips&Tricks section 8.1 lists a small groovy script to output the results of each step in your test case
filePath = 'c:/users/henrik/soapUI-results/' fos = new FileOutputStream( filePath + testStepResult.testStep.label + '.txt', true ) pw = new PrintWriter( fos ) testStepResult.writeTo( pw ) pw.close() fos.close()
This was augmented when someone wanted to organise the results via a directory structure representing Project/Suite/TestCase etc.
HOWEVER - the script works great -both versions - but it doesn't appear to record anything for one of my steps.
Datasource POST REST request PropertyTransfer GET REST request DataLoop
The script doesn't record anything for my POST REST request step. It records everything for the other steps - but it doesnt record ANYTHING for my POST step.
This is totally boggling me - would anyone have any ideas?
My Test case works fine - the POST step is executed just as the other steps are......there's just nothing being recorded for that particular step!
????
richie!
yet again - I'm an idiot.
The script wasn't creating a file for the one test step because the test step name was:
'create/update user request'
spot the issue? yeah - I didn't!
The script won't create a file for any step that has an oblique (/) character in there!
so obvious when you think about it...... so yet again I've answered my own question - sorry for wasting anyone's time!
richie