Forum Discussion

Litty_John_1's avatar
Litty_John_1
Occasional Contributor
12 years ago

Error In ExportingTestsResultsInHtmlFomat

Hi,



I have a script to export the test results In  HTML format .Whenever the tests pass the results are getting exported,but when any of the test fails the results are not getting exported in html format .Iam not getting the index.html file .Please help





Thanks,

Litty

1 Reply

  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    You can implement an event handler for the OnStopTest event that exports the test log:



    Sub GeneralEvents_OnStopTest(Sender)

      Call Log.SaveResultsAs("C:\Results.mht", 2)

    End Sub