Import a Test Package into Tricentis Tosca

Test Package combines selected Test Configurations that you have created in SAP Solution Manager. Test Package is an equivalent of an ExecutionList in Tricentis Tosca.

Once you have created your Test Configurations in SAP Solution Manager and synchronized them with Tricentis Tosca, you can assign them to a Test Package and import to Tricentis Tosca as an ExecutionList.

To do so, follow the steps below:

  1. Create a Test Plan or use an existing one.

  2. Create a Test Package.

  3. Synchronize a Test Package.

Create a Test Plan

A Test Plan in SAP Solution Manager allows you to set up, schedule, and organize your tests.

To create a Test Plan, follow the steps below:

  1. In SAP Solution Manager, go to Test Plan Management.

  2. In Test Plans - My Test Plans, click on Test Plan->Create to create a new Test Plan.

  3. In General Data, enter the details of your Test Plan.

  4. In Settings, set up your Test Plan.

  5. Click on Test Case Hierarchy->Generate From Solution Documentation to refresh the list of all Test Configurations. The list is displayed in the Test Case Selection tab.

  6. In Test Case Selection, in the Selection column, select the Test Configurations that you want to execute.

  7. Click Save.

Alternatively, you can use an existing Test Plan. To do so, select a checkbox next to the Test Plan that contains the Test Package you want to import into Tricentis Tosca and synchronize it.

Create a Test Package

When you edit a Test Plan, you can create a new Test Package within this Test Plan. Test Package contains the Test Configurations that you want to import from SAP Solution Manager into Tricentis Tosca.

To create a new Test Package, follow the steps below:

  1. In Test Packages, click on Test Package->Create to create a new Test Package.

    Test Package contains all Test Configurations that you want to run. It's an equivalent of an ExecutionList in Tricentis Tosca.

  2. In General Data, enter the details of your Test Package.

  3. In Settings, set up your Test Package.

  4. In Test Case Selection, in the Selection select the Test Configurations you want to execute. Only the Test Configurations that you selected for your Test Plan are available.

  5. In Testers, select the tester who is responsible for this Test Package.

  6. In External Test Tool, select Tricentis Tosca from the dropdown menu in the External Tool field.

External Tool in SAP Solution Manager

  1. Click Save.

Synchronize a Test Package

To synchronize a Test Package, follow the steps below:

  1. Click Synchronize.

  2. Open the script file that pops up in your browser.

    SAP Solution Manager performs the following actions:

    • Opens Tricentis Tosca.

    • Checks out the ExecutionLists folder.

    • Imports your Test Package as an ExecutionList. The name of a new ExecutionLists contains the date and time of its synchronization.

  3. The Tosca Remote Control dialog informs you that Tricentis Tosca is ready for test automation. Click OK to proceed.

  4. Optionally, if you want to close Tricentis Tosca, right-click the project root element and select Resume Remote Control.

You can only synchronize a Test Package from SAP Solution Manager.

If you want to add new Test Configurations to a Test Package, you have to do it in SAP Solution Manager and import the Test Package once again to Tricentis Tosca.

The ExecutionList that you imported from SAP Solution Manager has the following parameters in the Properties tab:

  • TestPackageId - the name you assigned to your Test Package in SAP Solution Manager.

  • TestPlanId - the name you assigned to your Test Plan in SAP Solution Manager.

Moreover, the ActualLog of your ExecutionList contains an additional property, the ProcessId. This is a unique identifier that SAP Solution Manager uses to identify a Test Package.

What's next?

You can now run your Test Package in Tricentis Tosca.