UiPath Documentation
delegate
latest
false
Delegate user guide

Automating smoke suites

Run smoke suites manually or on a schedule after a deployment with Delegate, and automate test environment setup and teardown.

Run a smoke suite manually or on a schedule after every deployment, and automate environment setup and teardown around a test run.

Prerequisites

Complete the one-time setup in Setting up and running your first test case for the Delegate-driven tasks below.

Running a smoke suite manually after a deployment

  1. Check that your deployment has finished.
  2. Enter a prompt to run the suite, for example: "Run the Smoke Suite test set in project MYAPP."

Result

Delegate executes every test case in the set and publishes results to Test Manager. You will see a pass/fail summary for the set, with a link to the execution in Test Manager. This is the recommended starting point: zero setup, and it builds the habit of checking after every deploy.

Preparing and cleaning up a test environment

  1. Ask Delegate to run the setup script and then the test suite in the same prompt, for example: "Run the environment setup script at seed-test-data.ps1, then run the Regression Suite in project MYAPP."
  2. After execution, ask Delegate to run cleanup conditionally, for example: "After execution, run cleanup-test-data.ps1 — but only if the suite completes."

Result

Delegate runs the setup script, confirms it succeeded, then proceeds to the test execution, showing confirmation of each stage. The cleanup step only runs under the condition you specified, so a failed mid-suite run does not wipe data you still need to debug.

Once validated, wrap the whole thing into named routines, such as "Prepare MYAPP test environment" and "Clean up MYAPP test environment", so a full run becomes one instruction: prepare, execute, clean up.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated