dief123
8 years agoOccasional Contributor
Teardown script to write to database?
Can anyone provide us with a sample Teardown script that writes results to a database?
I know how to write to a file using this script. I'm looking for a sample script that writes
results to a database.
Here is my teardown file write script:
fos = new FileOutputStream('C:/temp/test-log.txt', true )
pw = new PrintWriter( fos )
pw.write(testSuite.name + runner.status.toString())
pw.close()
fos.close()