Forum Discussion

sumanhyd's avatar
sumanhyd
New Contributor
16 years ago

Outputtting results to HTML file

Hi All,

        I got the below code to store results into html file.

so i have this bit of code (thanks to this nice forum!) that grabs the results from each teststep and outputs a nice table to results.html:

for( r in testRunner.results ){ 
  i++;
  if (r.status.toString() == "OK") step_a = step_a + "" + i + " - '" + r.testStep.name + "' finished with status " + "" + r.status + "\n" ;
  else if (r.status.toString() == "FAILED") step_a = step_a + "" + i + " - '" + r.testStep.name + "' finished with status " + "" + r.status + "\n" ;     
  }

--------------------- My doubt is where this result file stored...

Regards,
SUman
No RepliesBe the first to reply