- Erste Schritte mit der Test Suite
- Studio
- Test Suite – Studio
- Überblick
- Testaktivitäten und APIs
- Orchestrator
- Test Manager
SAP Cloud ALM
Integrate your SAP Cloud ALM projects to Test Manager to create test projects, test cases, execute tests, and view detailed execution information. The integration helps you manage and execute automated tests in your SAP Cloud ALM instance through Test Manager.
You can integrate SAP Cloud ALM with UiPath Test Suite, and leverage the test automation and test management capabilities offered by UiPath Studio and Test Manager.
When you integrate SAP Cloud ALM with Test Manager you can perform the following testing activities:
- Test case creation:
- Create automated test cases in SAP Cloud ALM, for which you can later assign Studio automations inside Test Manager.
- Create automated test cases in Test Manager that synchronize with your target SAP Cloud ALM project.
- Test case execution:
- Execute automated test cases within Test Manager through the SAP Cloud ALM interface.
Note: When you trigger an execution from SAP Cloud ALM, you must assign a default Orchestrator folder to the project created through SAP Cloud ALM.
- Execute automated test cases within Test Manager independently from the SAP Cloud ALM interface.
- Execute automated test cases within Test Manager through the SAP Cloud ALM interface.
- Test case reporting
- Navigate from SAP Cloud ALM directly to the test execution view in Test Manager for detailed information.
Perform the following steps to integrate SAP Cloud ALM with Test Manager:
For more information about manually creating a service, visit Creating Services Manually, from the SAP Cloud ALM documentation.
- In SAP Cloud ALM, go to Administration, and then Landscape Management.
- Open the Services & Systems page.
- Select Add, and choose New Cloud Service.
- Configure the new UiPath service with the required parameters as follows:
- Name: Input
UiPath
. - Description: Input
UiPath Test Suite
. - System Number: Input the system number available in your SAP environment.
- Service Type: Select Unspecified Cloud Service (HTTP).
- Role: Select Test.
- Name: Input
- Select Save to confirm the new service.
Endpoints allow you to create an authenticated connection to the previously created service. For more information, visit Adding Endpoints from the SAP Cloud ALM documentation.
- Create an external application in the UiPath organization that you want to connect SAP Cloud ALM to.
Note: The App ID and Secret ID (under App Secrets) are used when configuring the authentication type of the endpoint.
For more information about creating and managing external applications, visit Managing external OAuth applications.
- Assign the following Test Manager user and application scopes to the previously created external application.
- TM.Projects
- TM.TestCases
- TM.CustomFieldDefinitions
- TM.CustomFieldValues
For more information about Test Manager scopes, visit API Scopes.
- Inside the Services & Systems page, select the previously created service.
- Under Endpoints, select Add.
- In the Add Endpoint pop-up, configure the following parameters:
- Endpoint Name: This parameter is automatically generated.
- Use Case: The supported use case for the UiPath service is Test Automation.
- Root URL: Input the Test Manager URL of the tenant where you want to create the test cases, followed by the
api
suffix.Beispiel:https://govcloud.uipath.us/{organizationName}/{tenantName}/testmanager_/api
. - Authentication Type: Select OAuth2ClientCredentials.
- Client ID: Input the value of App ID from the previously created external application.
- Client Secret: Input the value of Secret ID from the previously created external application.
- Token Service URL: Input the UiPath® Identity Server endpoint of type Token:
https://cloud.uipath.com/identity_/connect/token
.For a list of Identity server endpoints, visit UiPath Identity Server Endpoints.
- Select Save to confirm the new endpoint.
These configurations ensure that the SAP Cloud ALM and Test Manager systems can communicate and synchronize.
After you integrate SAP Cloud ALM with Test Manager, you can perform testing operations, such as creating test cases, executing them, and viewing the execution reports. The following sections demonstrate the end-to-end process of the integration.
The SAP Cloud ALM and Test Manager integration applies only to automated test cases.
Überblick
When you create an automated test case, SAP Cloud ALM simultaneously creates a new project in your connected Test Manager instance. The name of the project is the same as the one in SAP Cloud ALM, as well as a unique ID at the end. The project also includes the new test case that you created. When you decide to create further test cases using identical configurations to your initial test case, SAP Cloud ALM creates a new test case within your previously generated project.
Test cases created in both SAP Cloud ALM and Test Manager, are created within a specific context. The SAP Cloud ALM context is stored in the following custom fields from the Test Manager project: SAP Country/Region, SAP Scope, and SAP Solution Process. These parameters establish the proper mapping and context between test cases in SAP Cloud ALM and Test Manager.
Creating an automated test case in SAP Cloud ALM
- Go to SAP Cloud ALM and from the Project dropdown list, select an existent project or create a dedicated one, used to integrate with Test Manager.
- Go to the Test Preparation app.
- In the Test Cases section, select Create a Test Case. Configure the test case as follows:
- Type: Select Automated.
The integration helps with creating, managing, and executing automated test cases for your business solutions in SAP Cloud ALM.
- Automation Provider: Select the
UiPath Test Suite
endpoint from the dropdown list. - Title: Enter a title that is unique for the desired scope.
- Scope: Select a scope.
This value is present in Test Manager as the SAP Scope custom field.
- Solution Process: Optionally, select a solution process.
This value is present in Test Manager as the SAP Solution Process custom field.
- Country/Region: If you selected a solution process, then you have to select a desired country or region.
This value is present in Test Manager as the SAP Country/Region custom field.
- Type: Select Automated.
- Select Save to confirm the test case creation.
For more information about creating automated test cases in SAP Cloud ALM, visit Creating Automated Test Cases.
Nächste Schritte
To execute a test case from a project synchronized from SAP Cloud ALM, you must first define an execution folder in Test Manager. This ensures a dedicated Orchestrator folder is available for the test's execution. You can define the default folder only at the project level.
For more information about the execution contexts, and execution folders, visit Automation project configuration.
Use UiPath® Studio to create a test automation or assign an automation to an existent test case in Test Manager.
Schritte
- In Studio, open an existing project or create a new one.
- Connect this project to a Test Manager instance.
- From the Design ribbon, select Test Manager.
- Select Test Manager Settings.
- Enter the base URL of your synchronized Test Manager instance with SAP Cloud ALM.
- Wählen Sie Verbinden aus.
- After the connection is successful, in the Default Project field, enter the name or prefix of the target Test Manager project.
- Create and design test cases for your solution process.
Visit the Introduction page of Test Suite Studio to explore the available test design capabilities.
- Go to the Project panel of your project, and right-click a test case.
- Wählen Sie Mit Test Manager verknüpfen aus.
- In the Link to Test Manager pop-up, provide the following test information:
- Project: Select the project containing the existent test case or where a new one will be created.
If you selected a default project when you connected Studio to Test Manager, this project will appear in the Project field.
- Test: Enter the name of an existent test case from the selected project. To create a new test case, leave the default
<new test case>
value selected. - Name: To create a new test case, leave
<new test case>
in the Test field, and provide a name for the new test case in Test Manager. - Requirement: Optionally, enter the name of an existent requirement and assign it to the test case. If you do not want to assign a requirement, leave the
<none>
value selected.
- Project: Select the project containing the existent test case or where a new one will be created.
- Wählen Sie OK aus, um die Änderungen zu speichern.
For more information on assigning automations to test cases in Test Manager, visit Assigning automations to test cases.
You can execute the automated test cases created in Test Manager directly from SAP Cloud ALM. For detailed steps on how to execute automated test cases in SAP Cloud ALM, visit Executing Automated Test Cases.
You can check the execution status and data, in real time, from both SAP Cloud ALM, and Test Manager. While Test Manager offers detailed information about the execution, you can see and synchronize the execution status in SAP Cloud ALM, as well.
Synchronizing execution status from Test Manager to SAP
After you trigger the execution of a test case in SAP Cloud ALM, you can track the status and the progress of the test run from the test case list. You can refresh the status and the progress of the test run by selecting Refresh Test Progress.
Nächste Schritte
After you execute a test case, you can see the status of the execution both in SAP Cloud ALM and Test Manager. While you are still in the Executed Test Runs section of a test case in SAP Cloud ALM, select Open Execution Log to navigate directly to the execution log of that test case within Test Manager.