Forum Discussion

kchoudhury's avatar
kchoudhury
Contributor
13 years ago

Can TestComplete Generate a summary log out of the box

Hi ,



I am looking into how i can generate a summary of the logs , like how many tests passed , how many failed etc for every run . I am aware that i can save the logs of testcomplete in XML , HTML and mht format but these are detailed logs . I need the summary of each run containings name of the run and its status and counts of total tests that ran and their status. I do not want to write result to a file at the end of each test .



Is there any other way i can do this .



Thanks,

Kaushik Choudhury
    • himanth's avatar
      himanth
      Occasional Visitor

      HI,

       

      I am not able to generate the summary report which will have the graph showing the how many tests where passed and how many tests where failed.

       

       

      Can you please help me on that.

       

      Thanks,

      Himanth Raju L

      • baxatob's avatar
        baxatob
        Community Hero

        Hi,

         

        To have a graph showing your test statistics you need to organize your tests for running through the Test Items Page of your Project Editor:

         

         

        And after your tests run you will receive the log with the graph:

         

  • My question is how can i extract this information automatically at the end of the test Run using a script. I want to use this information to send an email automatically at the end of the test run . The test run summary panel is available only when you view it in testcomplete UI .



    I dont want to send the entire .mht as an attachment in the email but just a summary of the run . Since scripting access to Project Suite logs is not available is there any other way of generating this information.
  • Hi ,



    TestComplete does not provide a scripting interface to the test log of
    the current run. TestComplete is compiling the log during the test
    execution and this process is only finished when the test is complete.
    Scripts can access the log only after it has been added to the list of
    project logs that is displayed in the Project Explorer panel.



    Is there a workaround for this , i need to collect this information at runtime ?
  • Hi,


    As far as I know, there is no workaround for this. The only way to collect the current test run results at run time is to export the entire test log to the file by using the SaveResultsAs method.