Contributions
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.739Views0likes1Commentscript assertion
i need to validate many assertions in same script assertion. But when any one of assert fails, runner stops there itself and control passed to next step. Below is my case assert (1 ==1) log.info "1" assert (1 == 2) log.info "2" assert (1 ==3) log.info "3" When i execute the above, 2nd assertion fails and third assertion did not executed at all. Is there is any way to validate all assertions.1.4KViews0likes2Comments