Automated Test Execution and Reporting using UiPath Test Manager

Requirement: Automated UiPath Test Manager Execution and Reporting

We are looking to automate the end-to-end test execution and reporting process using UiPath Test Manager.

Current Scenario

  • We have approximately 4-5 Test Sets in UiPath Test Manager.
  • These Test Sets collectively contain around 200 Test Cases.
  • Currently, test execution and report sharing require manual intervention.

Proposed Automation Flow

  1. Trigger Test Sets Automatically

    • Initiate the execution of specific Test Sets in UiPath Test Manager through automation.
  2. Monitor Execution Status

    • Continuously check the execution status until all Test Sets are completed.
  3. Generate and Download Test Results

    • Once execution is completed, automatically download the execution report in either:
      • Excel (.xlsx) format, or
      • PDF format.
  4. Prepare Email Summary

    • Extract key execution details such as:
      • Total Test Cases Executed
      • Passed Count
      • Failed Count
      • Execution Duration
      • Execution Timestamp
  5. Send Automated Email

    • Attach the downloaded report.
    • Send the email automatically to the designated stakeholders or distribution list.

Enhanced Trigger Mechanism (Teams → Git → Test Manager)

Additionally, we would like to explore an event-driven approach where the entire process can be initiated from Microsoft Teams. like trigger this from teams then via Git whole process perform on test manager

  1. Trigger from Microsoft Teams
    • User clicks a Teams button/command or submits a Teams form.
    • Teams sends request to a Git repository (Azure DevOps/GitHub) or directly triggers a UiPath process.
  2. Git-Based Trigger (Optional)
    • Creating a Git commit, tag, or Pull Request triggers a CI/CD pipeline.
    • Pipeline calls UiPath Orchestrator API to start the testing workflow.
  3. Execute Test Sets
    • UiPath workflow reads the required Test Set IDs.
    • Starts execution of 4-5 Test Sets in Test Manager automatically.
  4. Monitor Execution
    • Bot continuously polls Test Manager/Orchestrator APIs.
    • Waits until all executions reach Completed/Failed status.
  5. Generate Report
    • Retrieve execution results through Test Manager APIs.
    • Generate consolidated Excel (.xlsx) or PDF report containing:
      • Total Test Cases Executed
      • Passed Count
      • Failed Count
      • Pass Percentage
      • Start Time / End Time
      • Total Duration
  6. Send Automated Email
    • Use Outlook/SMTP activities.
    • Attach generated report.
    • Send summary to stakeholders automatically.

Hi @sauravx.giri,

You can try this approach:

  1. Teams trigger: A Teams message/command to trigger the execution (via a Teams bot or Power Automate “when keyword mentioned” trigger).
  2. Teams → Pipeline: The Teams action calls a webhook that triggers an Azure DevOps pipeline or GitHub Actions workflow (CI/CD).
  3. Pipeline → Test Manager: The pipeline runs a script/task (PowerShell, Python, or UiPath CLI) calling the Test Manager API to trigger execution, wait-for-webhook, download report.
  4. Pipeline → Email: Final pipeline step sends the summary email (or triggers a small UiPath process).

The actual steps here are Teams webhook → CI/CD pipeline → Test Manager API → Email. If you want to skip the CI/CD layer entirely, you can also have the Teams bot call a UiPath Orchestrator API trigger directly, which runs a bot that does all steps.

Cheers!