Showing results for 
Search instead for 
Did you mean: 

To write test Results into a column in excel

New Contributor

To write test Results into a column in excel

i have to print some content in notepad for each step, below is my code


//OutputPath = 'c:/work/test-results/abc.txt'
x = "4"
strOutputPath = context.testCase.testSuite.getPropertyValue("OutputPath")
// Creating output files.
objFOS = new FileOutputStream(strOutputPath, true)
// Filling output files.
objPW = new PrintWriter(objFOS)
x.print(objPW)// for printing in new line
// Closing the output.


while i am adding above code in groovy step & rest API step - script assertion, i could able to see the output printed once in notepad as "4".


but when i used the same code in JDBC assertion script, my output is printed twice as "44".


i am using version 5.4.0


if any alternate way to print custom message to notepad, please suggest the same.

Tags (2)
New Contributor

Re: To write test Results into a column in excel

i think, there could be some error with SOAPUI. Same code when i am executing at later part of day. i am not getting the error. It is printing only once.


If someone faces smae kind of problem. Please post your solution here

New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors
Top Kudoed Posts