Forum Discussion

Ondar's avatar
Ondar
New Contributor
10 years ago

Log.SaveResultsAs() fails to export correctly

Hello everyone,

 

I have serveral test running, which all export its results at the end. But there are some that suddenly stopped exporting the results. No matter what I tried I cannot get it to work again.

 

This call always returns false:

Log.SaveResultsAs('D:\temp\Neuer Ordner',lsHTML,false);

 

There is some data exportet, but it is incomplete. E.g. there is no index.htm and an empty TestLog.xml.

 

 

I am using TestComplete 8.60 with DelphiScript.

 

I have enough free space on the harddisk and the manual export works fine.

 

Kind regards,

Ondar

8 Replies

  • You need a full filename with "yourpath\filename.HTM" for it to write properly.

     

    • Ondar's avatar
      Ondar
      New Contributor

      No, this is not the issue.

       

      According to documentation I need to specify a directory for the HTML export. If I specifiy it like this "yourpath\filename.HTM" TestComplete creates a directory with the name "filename.HTM"...

      • rrivest's avatar
        rrivest
        Contributor

        You are right, my mistake... I always use the isMHT format because it keeps everything in a single file.

         

         

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    Hi Ondar,

     

    Don't you think that your TC version is not a little bit out-to-date ?

     

    Mehdi

    • rrivest's avatar
      rrivest
      Contributor

      Only reason left is that you code or test breaks out before reaching your line...

      or you're trying to right in a directory you do not have rights to write...

      • Ondar's avatar
        Ondar
        New Contributor

        Debug mode prooves that it reaches the line. And log entries are written after that call, which are accessible through TestComplete. And I have write access for the destination directory. TestComplete writes files there, but the export is incomplete (e.g. missing the index.htm).