Forum Discussion

jaswany's avatar
jaswany
Occasional Contributor
15 years ago

.mht file hangs browser

I have read all the posts I could find on this subject, but I can't find a solution for the problem.  A software engineer wrote a test script for me that does a web service call to external entity and compares results with what is expected (that is the short version of what it does).  The script processes large numbers of XML files (150).  The report in TC displays as it should and I can see the results.  The problem is when I export the file to an .mht format no one can open it.  If I try to open it in IE, Firefox or Opera the browsers hang forever.  The file I am trying to open is 10 MB.  


I can export to PDF, and it seems to open fine.  In the PDF format I don't can't view all the information like I can in .mht.


The test is not taking any snapshots, as it's doing a web service call, not simulating a user in an app.  Disabling events also did not solve the problem.  Do I need to run the files in smaller batches?


Thanks!


Josh

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    You might need to take it in smaller batches.  I'm assuming you're using XML Checkpoints for your validation?  If so, that means there's 150 XML check point log items in your test log, each one documenting a validation result for each tag within each XML file.  If each XML file has a minimum of 40 tags, that means you're looking at a LOT of data to be parsed and displayed.



    Something that might help is for you to use the Compare method with "ReportDifferences" set to false.  This will record that there WAS a difference but won't report the details of the difference, thus reducing the size of your log file.