Forum Discussion

dief123's avatar
dief123
Occasional Contributor
7 years ago

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()

No RepliesBe the first to reply