Studio
2022.4
false
Banner background image
Studio User Guide
Last updated Apr 3, 2024

Working With Execution Templates

To run a test case inside an execution template at runtime, you need to follow these procedures:

  1. Create execution template
  2. Add test case to execution template

Create execution template

Create an execution template before setting it to a test cases.

  1. Open your workflow in Studio.
  2. In the Projects panel, right-click the File Templates folder to open the dropdown menu.
  3. Navigate to Add > Execution Template.
  4. Enter a Name for your execution template and choose the Location where it is going to be stored.



    A new tab opens in the Designer panel with your execution template. You can build the template to match your testing needs.



  5. Click Save when your execution template is done.

Add test case to execution template

To run or debug a test case with an execution template, you need to add it to an execution template (Set Execution Template). Alternatively, you can set an execution template for a newly created test case.

  1. Open your test case in Studio. If you do not have one yet, you can create a test case.
  2. In the Projects panel, right-click a test case to open the dropdown menu.
  3. Click Set Execution Template and select a template from the dropdown list.
  4. Click Ok to confirm. The execution template is added to the test case. Running or debugging this test case will proceed according to your associated execution template.



Now you can run or debug the test case as it will be executed with the execution template.

Important: The placeholder activity needs to be included in the execution template. It will not work if it is in a different workflow that is invoked by the execution template.
Tip:

Remove execution template from test case

  1. Open your workflow in Studio.
  2. In the Projects panel, right-click a test case to open the dropdown menu.

    Note: Hover the mouse over a test case to show whether it is added to an execution template or not.
  3. Click Set Execution Template and select <no execution template> from the dropdown list.
  4. Click Ok to confirm.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.