ilkoTest's avatar
ilkoTest
Occasional Visitor
10 days ago
Status:
New Idea

Need to print the TestComplete Test Log Summary saved in HTML format to PDF

If the entire test log of the TestComplete test execution was exported into an HTML file, it is currently impossible to print the Summary to a PDF file. This happens with the test logs where there are more than 100 test cases that have been executed. The resulting PDF will contain only part of the Summary, which in most cases is the visible part of the Summary.

My management wants the Summary to be printed into a PDF file, so it could be presented to other interested parties.

STEPS TO REPRODUCE:

  1. Have a Test Execution Plan containing a large number of test cases
  2. Run the Execution Plan
  3. Export the entire test log into an HTML file 
  4. Open the index.html file from the saved test log in a web browser
  5. Right-click on the web page and select the "Print" menu item
  6. In the Print dialog, select the "Print to PDF" option
  7. Save the file
  8. Check the file's appearance

EXPECTED RESULT:

The PDF should contain all the lines shown in the index.html

ACTUAL RESULT:

Only part of the information appears in the file, limited to 1 page

5 Comments

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    The first thing I notice is your PDF shows 1/1 pages not 1/6 or 1/12.  The obvious point you are making.  TestComplete might not be the problem given what I see.  There are two ways to send this web page to PDF, 'Microsoft Print To PDF' and Save as PDF.  It seems the Print to PDF only prints the current page.  I don't export this way and don't have any multi-page reports to export handy.

    • What happens if you use 'Save as PDF?
    • Can you pause test execution and examine and screen shot the export in progress to see what the PDF print dialog says?
    • Manually open the HTML report and print / save to PDF.

     

    Another thought is that the HTML produced by TestComplete is formatted in such way that the PDF print/save only sees one page.  In this case it might be a TestComplete issue.  The options mentioned above should tell us something.

    My suggestions to start.  Let see what we can figure out!  

    ... If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    Also, instead of clicking the page, which may only print the visible page, try going through the browser menus to access the print dialog.

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    Another fairly simple option is to create a simple web page landing page, host it on a server and export your reports there in in folders named with a date time or other format you find reasonable.

     

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    OK, I wasn't paying attention here. 🫤 This is a feature request.  Make sure you vote up the other similar requests.  Many have posted with regards to the .mht format. 

    Also, if you are only trying to do this manually then the post from Hassan_Ballan​  should work very well.  I am not sure why this has not be added as a log method option, 

    https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/saveresultsas.html


    This feature request seems to have a lot of votes....

    Implement a way of storing/exporting compact log file, as alternative to .mht file storage | SmartBear Community