Forum Discussion

nandini92's avatar
nandini92
New Contributor
6 years ago
Solved

Saving logs takes too much time

Hi Community,

I've executed 12 testcases from Test Items and at the end I've called SaveResultAs method to save the logs for the complete project in a seperate folder..

So after executing all the testcases, it is calling SaveResultAs method to save the logs. Its taking too much time to save them and hence I'm facing performance issue. Is there any way to resolve this?

 

Regards,

Nandini

  • cunderw's avatar
    cunderw
    6 years ago

    My guess is you're not doing anything to limit the number of images being saved. Take a look at Log.LockEvents. It will prevent the log from saving every single even image, and save just a specified amount leading up to an error. 

3 Replies

  • JennyH11's avatar
    JennyH11
    Frequent Contributor

    I would also really love to know an answer to this... The length of time it takes to export logs is too long and most often crashes the application or causes it to be out of action for a long period of time (something like 10 - 30 minutes if not longer).

     

    Is there something we're doing wrong? Or something we could do to fix this.

     

    Currently, I'm collating results manually after each major test run and I'd really prefer not to have to do this but exporting results is just unworkable.

    • cunderw's avatar
      cunderw
      Community Hero

      My guess is you're not doing anything to limit the number of images being saved. Take a look at Log.LockEvents. It will prevent the log from saving every single even image, and save just a specified amount leading up to an error. 

      • JennyH11's avatar
        JennyH11
        Frequent Contributor

        Thanks cunderw!

         

        I'll take a look and give it a try.