Ask a Question

Saving logs takes too much time

SOLVED
nandini92
New Contributor

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

3 REPLIES 3
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.

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. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
JennyH11
Frequent Contributor

Thanks cunderw!

 

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

cancel
Showing results for 
Search instead for 
Did you mean: