Testing with UrbanCode Deploy

With the HCL OneTest UI plugin for UrbanCode Deploy, you can automate the execution of tests and compound tests.

Before you begin

You must have completed the following tasks:

  • Installed HCL OneTest UI and UrbanCode Deploy agent on the computer where the tests will be run.

  • Downloaded the HCL OneTest UI UCD plugin HOT-UI-UCD-UITest-10.1 from the HCL® License & Delivery portal.

  • Installed UrbanCode Deploy server and deploy the plugin on the server. For information, refer to the UrbanCode Deploy documentation.

  • Installed UrbanCode Deploy Agent and connect it to UrbanCode Deploy server. For more information refer to the UrbanCode Deploy documentation.

  • Ensured that HCL OneTest UI is not running.

  • Ensured that all the devices are set to the passive mode and the playback-ready apk files are installed to initiate the mobile test runs.

    Note:
    • To run tests on Mac OS, you must add an environment variable that points to the installation directory of the product, for example, export TEST_WORKBENCH_HOME=/opt/HCL/HCLOneTest. For Windows, this environment variable is already defined.
    • If you installed the product on Windows using the stand-alone installer (not using Installation Manager), you must specify the environment variable that points to the installation directory of the product. For example, export TEST_WORKBENCH_HOME=C:\Program Files\HCL\HCLOneTest

About this task

As a tester, you might have a large number of regression tests to run on the latest build of the product. Instead of manually running the tests on every new build, you can install the latest build on the UrbanCode Deploy Agent computer and let UrbanCode Deploy launch the tests for you.

After deploying the UrbanCode Deploy plugin on the server, create the component and its processes, applications and its processes, the environments, and the resources. For information about how to create these different pieces, see UrbanCode Deploy documentation.

Procedure

To create the workflow:
  1. To create a workflow for the newly created component process, click the component process. The Tools view displays the available plugin steps.
  2. From HCL OneTest UI - UI Test > Run an HCL OneTest UI - UI test to the design space.
  3. Specify the properties for the step. For information about the properties, see Properties of Steps.
  4. After you configure the step properties, save the step by clicking Save.

Example

You can run a process with multiple tests.

If you have installed multiple products on one target machine, either in the same or different package groups, you can use a single process that includes steps from different products. You must install the plugins of all of the products that you want to use.