Associate your script with a test or unit
This topic explains how to associate your codeless script to a codeless test or unit, so you can run it on the cloud as part of a test suite.
Note: Skip this section if your script is marked with an icon
that indicates that it is already associated.
Overview
To run a codeless script on the cloud, you need to associate it with a Codeless test or an MBT unit.
First, run your codeless script locally, as described in Run scripts, to make sure it runs correctly. Then, associate the script with a codeless test or unit.
Add the codeless test to a test suite or the unit to an MBT model or test.
Run your test suites or MBT tests on the OpenText cloud as part of your overall product testing. For details, see Add tests to test suites and Run MBT tests.
Associate a script
-
Click the Associate button on the top toolbar of the script Editor.
-
Select the entity you want to associate:
-
A New Codeless Test.
-
A New Unit
-
Existing Codeless Test or Unit
A list displays all of the codeless tests and MBT units defined in this workspace that are not yet associated.
You can filter the list by entity type or entity ID, and search by entity name.
Select the entity to associate.
-
-
Click Associate to complete the association.
If you selected to associate with a new codeless test or unit, the entity is created and associated with the script.
Note: Before completing the association, any unsaved changes in the script are automatically saved.
-
Click the displayed entity link to view the codeless test.
Alternatively, find the script on the FT Design Home page and click the ID of the associated entity to open it.
The associated entity opens in a new tab. The module in which the entity is opened depends on which submodule you used most recently. This might be the Backlog, Quality module, or Execution submodule.
Synchronizing parameters
When you associate a script with a test or unit, their parameters are synchronized:
-
Parameters defined in the script are created in the associated test or unit.
-
Parameters defined in an existing entity that you associate, are created in the script after you refresh the script and save it.
-
If a parameter with the same name is defined in the script and the associated entity, both parameters are kept.
The script's parameters are renamed by adding a script_ prefix to the name.
The parameters are renamed in the Parameters pane as well as in the script steps.
Review the list of parameters after association and decide which ones to keep.
Unassociate a script
To remove the association between a script and its codeless test or unit:
-
Open an associated script.
-
Click the down arrow next to the associated item's icon
.
-
Select Unassociate. The association between the script and the codeless test or unit is removed.
Note: When unassociating a script, any unsaved changes in the script are saved.
After unassociating a script, you can create a new test or unit for the script by clicking Associate. Alternatively, you can create a new script for the test or unit by clicking Open in Design or Create in Design in the test or unit.

