Merge modules

You can merge two modules into one module. After you merge two modules, you'll have one module that replaces both original modules in all of their test cases. For example, one module is in 10 test cases and the other is in 15. After you merge, the final module replaces the first two in all 25 test cases. This makes modules more reusable, simplifies test case maintenance, and improves consistency across test cases.

The module merge process follows these general steps:

  1. Find a module - the module you choose from your inventory becomes the base for your final module
  2. Start the merge - the module you choose next provides added attributes and properties

  3. Map and edit - tell Tosca Cloud which attributes to merge together and which to keep separate

  4. Review and merge - check the details and merge to create your final module

Start the merge

Select Build from the left menu and then select Modules. The module you choose from the Inventory page becomes the source module. By default, all of its attributes and properties are included in the final module.

To start the merge, find the module you want to be your source module and select Merge. Then, use the merge window to select the second module you want to merge with your first module. The second module you choose becomes the added module.

By default, the merge process prefers the source module and includes all of its attributes and properties. You need to manually link or add the attributes of the added module.

Map and edit

After you select a second module, you can map its attributes and properties to edit the final module. By default, Tosca Cloud links any attributes with identical properties.

If an attribute is not included in the final module, it's marked by . You need to do one of the following:

Once you've added or linked all attributes, select Next to continue.

Add attributes

If you add an attribute, you include it and its properties in the final module as a separate attribute.

To add an attribute, find the attribute you want to add and select +.

Link and unlink attributes

By default, all attributes from the source module are included in the final module. You can link any added module attributes to any attributes with the same type in the final module. This tells Tosca Cloud to merge the linked attributes into one attribute in the final module.

To link an attribute, go to the middle column and select the final module attribute you want to link. Then, go to the right column, find the added module's attribute you want to link and select .

If you need to unlink an attribute, simply select and then select Unlink.

Review and merge

After you link and add attributes, you can review the details and create your final module. Just look over your final module and select Merge to complete the process.

Once you merge and create your final module, it replaces the first and second modules in all of their test cases. You can't revert these changes.

What's next

After you merge your modules, you can find which test cases your final module is in by selecting View references. You can also use your final merged module to design new test cases.