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. objPW.close() objFOS.close() 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.742Views0likes1Comment