Overview
Application testing in Studio Pro works in either VB or C#. You can create individual automation projects for scenarios such data verification or integration with your CI/CD pipeline. Design your workflow in Studio Pro
You can perform automated application testing in VB or C#
Conditions
- Perform application testing through test cases and data-driven test cases.
- Test automation projects can have multiple entry points if they contain several test cases with linear execution, as the activities are organized sequentially.
- Workflow execution is performed per test case unless other
XAML
files are invoked. - You can convert workflows to test cases, imports from other projects or create new ones.
Dependencies
Create test case
You can create a test case by invoking a workflow from an existing project.
- Open your workflow in Studio.
- In the Projects panel, right-click the workflow and choose Create Test Case.
- (Optional) Select Mock workflow under test when you create your test case if you want to make a copy of your workflow where you can mock specific activities. If you have an existing mock file that you want to use, you can select it from the Mock dropdown. For more information, see Mock Testing.
- (Optional) Select a Template from the dropdown list if you have created one previously. For more information, see File Templates.
- Click Next if you want to add test data.
- Click Create to confirm changes.
A test caseXAML
file is created invoking the workflow with the following containers: Given, When, and Then. The file is invoked inside the Invoke Workflow File activity, part of the When container.
Arguments from the workflow are automatically imported. To view or add more arguments, click the Import Arguments button part of the Invoke Workflow File activity.
Additional actions
Publish test cases
Both test cases and data-driven test cases are created as drafts by default. You need to set the test cases as publishable before publishing to Orchestrator. You can set individual or multiple test cases as publishable by right-clicking the workflows and then selecting Set as Publishable.
The XAML
icon will turn blue as an indication that the test case is ready to be published and packaged in a NUPKG
file. To revert back to your workflow draft, right-click the workflow and select Ignore from Publishing.
You can publish the test cases to Orchestrator, to Robot defaults or a custom path. If you want to publish to Orchestrator, make sure your Robot or UiPath Assistant is connected to Orchestrator.
Convert workflow to test case
To convert workflows into test cases right-click the workflow in the Project panel and select Convert to Test Case:
Import Test Cases
If you already created workflows or test cases, you can import them into your current project by right-clicking the project node, and selecting Import Test Cases. The imported XAML
files are added to your project as draft test cases.
Import Services
Similarly to importing data collections into API Test Automation libraries, you can import such collections into your Application Testing processes using the New Service wizard.
This is available only for libraries and Test Automation projects created in the Studio Pro profile.
Updated about a year ago