Edit, delete, or rescan modules

Modules are the main building blocks of automated test cases. You create modules by scanning your application.

As your application changes during development, so do your modules. For example, if you have new screen elements that you want to test. Or if your code has changed, and some of your identifiers no longer work. This topic guides you through modifying or deleting modules.

Open a module's details page

You can edit a module or trigger a rescan from the details page of a module. To open the page, go to Inventory > Modules and select the module.

On the details page, you can see the general properties or special parameters that help Tosca Cloud identify or steer a control.

Edit modules

You can edit the following module information:

Delete modules

If you don't need a module at all anymore, go to Inventory > Modules and select Delete module from a module'soptions.

As a general rule, don't just delete a module that you use in test cases and create a new one, as this will break references and require significant effort to rebuild the test cases with the new module.

Here's what you can do instead of just deleting a module and starting from scratch:

  • Try to rescan the module to add controls or update identifiers after code changes while keeping test case links intact.

  • Edit identification parameters on the module's details page to make small adjustments. This keeps all links intact, and there's no need to rework your test cases.

Select the View usages option to see which test cases use the module, before you delete it.

Delete module attributes

Select the module from the modules detail's page and select delete from a module attribute'soptions.

As a general rule, don't just delete a module attribute that you use in test cases and create a new one, as this will break references and require significant effort to rebuild the test cases with the new module attribute.

Select the View usages option to see which test cases use the module attribute, before you delete it.

Rescan modules

Tosca Cloud offers rescan functionality for modules you created with Tosca XScan or the PDF scan.

A rescan is a quick and easy way to update your modules, so they match the latest state of your application. It's especially helpful if a control has moved to a different location, or if property values have changed. The rescan keeps all references between the module and its connected test cases intact. This saves you time since you don't need to create a new module and test cases whenever the application changes.

Please choose your use case:

Create module attributes manually

Once you've created a module by scanning, you can manually add module attributes to it. This can be an option for power users and is helpful when scanning or rescanning doesn't work as expected.

To do so, follow these steps:

  1. Go to Inventory > Modules.

  2. Select the module to which you want to add a module attribute.

  3. Select Create attribute from the table header.

  4. Give the new module attribute a meaningful name.

  5. Optionally , you can edit the default properties for the module attribute.

You can duplicate a module attribute. Simply select and then Duplicate. Tosca Cloud creates new attribute with the same name, default value, action mode, data type, and value range.

Add attachments to modules

Use attachments to provide test data, validate file uploads, and store reference materials. They help improve debugging with logs, screenshots, or reports.

You add attachments as follows: 

  1. Go to the module's details page.

  2. In the properties pane, go to the General tab.

  3. In the Attachments section, select Upload.

  4. Select a file on your machine and save it to Tosca Cloud. The maximum file size is 5 MB.

Edit, delete, or rescan modules in the old test case editor