Checkout the latest Squish Tip of the Week on writing data to files

Complete with script examples!

Test results have value beyond basic reports; Why not share the data?
Write test-related information (or pretty much anything) to an external file:

- Use Squish’s File Object to read, write and work with files.
- Write any Pass or Failures using Squish’s Verification Functions (test.*), or any other values from your script to a file.

Write to a file in 3 simple steps:
function main(){
var file ="C:\\path\\to\\file.txt", "a");
file.write("Pass:" + String(test.resultCount("passes"))
+ "Fail:" + String(test.resultCount("fails")));

*Click to view the complete blog entry with properly formatted code segments and further examples