How to Automatically Attach Generated Reports to Emails for Python TestComplete

Modified on Thu, 12 Feb at 5:13 PM

TABLE OF CONTENTS

1. Overview 

1.1. Configuring Application Settings file

1. Overview 

After script execution leveraging algoQA for a Python TestComplete framework, the report generated will be attached to the recipient's email automatically.


1.1. Configuring Application Settings file

To address this, perform the following:

  1. Scripts generated follow an organized folder structure. Search and locate the ApplicationsSettings.XML file. Copy and paste the ApplicationsSettings.XML file to the location where POM and Report.exe files are located.
  2. In the ApplicationSettings file, update the 'To email',  'From Email' and 'From Password' parameters with the appropriate details. Note that the preceding details must be added manually.

  3. To open the command prompt from the same location where the POM, Report.exe, and Applications.XML files are located in the folder, type 'cmd' in the same address bar to open the command prompt. Then, run the following command for Python TestComplete:
    algoReport.exe "TestComplete" "EmailAlerts" "L:\Jenkins\workspace\Priority_Batch1\TestComplete"


    Make sure to update the script path with the actual script path. The full path must be specified within the quotes.
    Note: There won't be any failure summary if there is no execution failure.

    The following screenshot represents an example execution summary report:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article