- Getting Started with Test Suite
- Studio
- Orchestrator
- Testing robots
- Test Manager
Executing tests
You can execute tests manually or automated. Manual test executions are invoked through Test Manager, whereas automated executions are invoked through Test Manager and executed via Orchestrator. Additionally, within one test set execution, each individual test case can be executed either manually or automated. This changes the execution type to Mixed.
To execute your test cases, you must first create a test set, which will be later executed. If you want to execute test cases individually, instead of executing all of them at once, you can create a pending execution from a test set. From any execution, you can choose to execute individual test cases either automated or manually.
- You can use both Execute Manually and Execute Automated for test sets created in Test Manager as well as the linked test sets from Orchestrator.
- Only the test case versions included in the test set are executed. If you want to execute new test cases, you need to assign new versions to your test set. For Orchestrator test sets, you need to make sure that the latest packages are published.
- If Execution order is enabled, you cannot run individual test cases from a test set.
Automated execution refers to test sets that have been linked from Orchestrator or test sets created in Test Manager that have test cases linked from Studio.
You can distribute your work within a testing project by assigning manual test case executions to users, and setting due dates for them. You can assign manual executions to any user, keeping in mind that they should have permissions to execute tests.
Prerequisites
To assign or unassign manual test case logs, you must have the Change test case executions assignments task permission in one of your roles. By default, this task permission is integrated in the Test Manager pre-defined role.
Assigning manual executions
To assign one or multiple manual executions to a user, perform the following steps:
- Go to the Execution section of your project.
- Select the name of a test
execution and open it.
Note: Any test execution can be selected, regardless of its type. This is because the objective is to facilitate manual execution by the user, irrespective of the method used in its prior execution.
- Assign the manual test case executions in one of the following ways:
- To assign a single manual test case execution: select More Options for the desired test case, and then select Assignment.
- To assign multiple manual test case executions: select the check boxes next to the desired manual test case keys, and then select Assign.
The Assignment dialog box opens.
- In the Assignee field,
enter the username or email address of the user to which you want to assign the
test cases.
Ensure that the user to which you assign the test case has permissions to execute tests.
- In the Set the due date field, enter the date by which you want the user
to run the test case.
The format of the date is: Month/Day/Year.
You can also use the date picker for this step.
- Select Assign to complete
your action.
If subscribed to these events, the user will receive a notification that test cases were assigned to them.
Unassigning manual executions
To unassign one or multiple manual executions from a user, perform the following steps:
- Go to the Execution section of your project.
- Select the name of the target test execution and open it.
- Unassign the manual test case
executions in one of the following ways:
- To unassign a single manual test case execution: select the check box next to the desired test case, and then select Clear assignment.
- To unassign multiple manual test case executions: select the check boxes next to the desired manual test case keys, and then select Clear assignment.
If subscribed to these events, the user will receive a notification that test cases were unassigned from them.
You can set a due date for a manual test case execution. If that date passes without running the test case log, the due date will be highlighted.
To set a due date for a manual test case execution:
- Go to the Execution section of your project.
- Select a manual test execution and open it.
- Open a test case log.
- In the Due Date field, from the test case log header, enter the due date. The
format should be: Month/Day/Year.
You can also select the date using the date picker.
Note: You can also set the due date when assigning the manual test case execution to a user.
Both Test Manager test sets and test sets that have been linked from Orchestrator can be executed manually. if manual steps have been defined for the test cases. For more information, see Executing Tests.
For more information on test results, see Analyzing Test Results.
Alternatively, you can open your test set, select Execute and then select Manually from the dropdown list.
Manual execution assistant
The manual execution assistant allows you to perform a set of manual tests one after another. You need to set a result on each manual step to advance to the next test case in the test set. Through the Manual Execution Assistant, you need to treat and mark steps in each case either as passed or failed.
- To mark the progress of each step in the test case, select Set Failed or Set Passed.
- Include comments, especially when marking a step as failed, to supply specific information about the outcome.
- After marking a step, you can set several following steps as passed. Do this by selecting Set Passed Until Here.
- Once you conclude a test case by assigning a result to the last step, select
Next.
This action allows you to advance to the next test case within your test set.
- Repeat steps one to four until you reach the final test case in the test set.
- If a postcondition is specified for a manual test, verify it after assigning a
result to the last step of a test case.
- If the postcondition is satisfied, select Condition Met.
- If the postcondition is not met, leave Condition Met unselected.
- After finishing the last test case, select Done to complete the entire execution process.
You can execute manual test cases simultaneously with other users. This allows for the re-execution of test cases even while a manual test set run is in progress. The test case log status is constantly updated according to the most recent user activity encompassing both the start and end of a test. Status updates occur immediately when a user begins to re-execute a previously completed test case log, without preserving the previous result throughout the re-execution process. While a record of past executions is maintained, any new result overwrites the old one, meaning the test case log reflects the outcome of the most recent execution.
Identifying the last test case executor
Within the Results tab of a manual execution, the ExecutedBy column displays the username of the most recent user who executed the test case log. This information refreshes each time you or other users take any of the following actions on a test case:
- Execute a manual test set for the first time;
- Run a pending execution of a manual test execution;
- Re-execute a test case log from a manual execution.
Tracking test case logs
If you re-execute a test case log during a particular test execution, Test Manager will not preserve the test case log's history and will overwrite it. However, you can review the execution history for each test case, across different test executions and associated user details, in the Latest Results tab.
You can execute all test sets using Execute Automated. Orchestrator is invoked for test cases that have been linked to Test Manager. To execute test sets linked from Orchestrator, make sure you create your test sets in Orchestrator.
You can also execute automated test if the test set includes test cases linked from Studio. For more information, see Executing Tests.
- Automated test executions have a default timeout of four days. Any automated test execution that exceeds four days is marked as Cancelled.
- Test execution for test sets linked from Orchestrator includes only the test cases that have been published to the Orchestrator Tenant Process Feed in the latest package version. If you want to execute new test cases, you need to publish a new package version in Orchestrator, and then link the test set to Test Manager.
- If your Test Manager test set includes test cases
from multiple Studio projects, then the project that has the highest number of
test cases is considered for execution. Therefore, only the test cases from this
project will be executed. In this case, you will receive the following message
within Test Manager: "Test cases from multiple packages have been selected. Some
of the test cases will not execute while running this test set."
You can execute test sets including test cases from multiple Studio projects, only if you have a test set linked from Orchestrator.
- If your test set includes test cases that are duplicate in multiple Studio projects, the sorting is done by the project name in descending order. Only the test cases from the project that is placed first in the list will be executed.
You can execute mixed tests by running both manual and automated tests again from a past test result. When you re-execute mixed tests, it always uses the latest version of a test case.
A pending test execution is similar to a regular test execution made during a test set run, the only difference being that no tests are run immediately. A pending execution assigns the None result for each test case from the test set, allowing you to start tests later or to execute them in chunks or individually.
- When you want to execute tests at a later time or not all at once, but still reflect the current state of the test set.
- When some tests are run manually while others are supposed to run automated.
- When you want the executed tests to reflect the current state of a test set including the selected test cases.
A test execution is independent of its originating test set, with all assigned test cases becoming static members of the execution. To ensure a specific set of tests from a test set is used in an execution, even when the test set is updated, create a pending execution.
The pre-defined user roles that can perform re-executions are: Test Manager, Test Executor and Manual Tester.
Automated execution could not start since the package was not found on Orchestrator. Only test cases from packages which have been published to Orchestrator can be executed.
Solution
You need to publish the Studio package to Orchestrator. This issue occurs when a test case is linked from Studio to Test Manager but the package is not yet published to Orchestrator.
Test cases could not be executed since no executable versions could be found. Only test cases published with the latest package version to Orchestrator can be executed.
Solution
This issue occurs when test cases in a test set are not published in the latest Studio package to Orchestrator. You might get the same error when there is no process/release found on Orchestrator for the Studio package.
Solution
You need to have at least one automated test case to use Execute Automated. For more information, see Conditions.
Solution
If execution of the test set fails for any reason other than the ones specified above, get help from UiPath Support Services.
- Conditions
- Automated execution
- Manual execution
- Executing manual tests
- Assigning manual executions to users
- Scheduling a due date for manual executions
- Execute Test Sets Manually
- Executing test cases simultaneously
- Executing automated tests
- Conditions
- Execute Automated Test Sets
- Executing mixed tests
- Execute mixed test sets
- Creating pending executions
- When you can use pending executions
- Steps to create a pending execution
- Re-executing test executions
- Re-executing test set executions
- Re-executing test case executions
- Troubleshooting automated executions
- Automated execution could not start since the package was not found on Orchestrator. Only test cases from packages which have been published to Orchestrator can be executed.
- Test cases could not be executed since no executable versions could be found. Only test cases published with the latest package version to Orchestrator can be executed.
- Automated execution could not start since no automated test cases could be found in this test set.
- There was an error executing the test set. Please try again.