Run UFT Developer tests
Run your tests locally or remotely, in parallel or in sequence, manually or using a CI server.
UFT Developer tests can be run using any of the supported licenses, including the UFT Runtime license.
Run your UFT Developer test
To run your tests locally, you compile your project, and then use either your testing framework's runner, such as NUnit or JUnit, to run your compiled .dll or .jar, or any other relevant runner.
If you are working with the UFT Developer MSTest template, you can run your tests from within Visual Studio.
If you are working with the UFT Developer NUnit/NUnit 3 template:
To run the test using Maven, run mvn test –P leanft-tests.
For Selenium projects, see the Selenium documentation.
During test design, you can run your tests in Android Studio.
To run your test using gradle, open a command line and run the following command from the project folder:
- When you run a UFT Developer test based on a UFT Developer template, the inherited UnitTestClassBase launches the UFT Developer engine so that UFT Developer can interact with your application during the run.
Save testing time by running multiple tests, or a single test with multiple data sets, in parallel on the same host machine.
When using a seat license, UFT Developer can run up to four test operations in parallel.
When using concurrent licenses, UFT Developer dynamically consumes additional licenses, each enabling four parallel test operations. The maximum number of licenses to consume is defined in the UFT Developer runtime engine settings.
Run parallel testing on:
Native and hybrid mobile applications
Web applications in the following browsers:
Browser Window Linux Mac Mobile Google Chrome Google Chrome (on Android)
N/A N/A Headless Chrome Mozilla Firefox PhantomJS Safari (on iOS) N/A N/A
Create and run your tests in a unit testing framework that supports running tests in parallel. UFT Developer supports TestNG and NUnit 3, but you can also use any custom framework that launches tests in parallel.
Tip: To minimize performance issues when testing mobile applications, lock each device once for all tests. To do this, lock the device at the beginning of the class running your tests and not before each test.
For details, see Run parallel tests in UFT Developer
Run tests remotely
You can run UFT Developer tests from your local computer, even if the application you want to test is located on a remote computer. This requires adjusting settings for your test, configuring the runtime engine settings on the remote computer, and in most cases, setting up secure communications between the two computers.
For details, see Run tests remotely.
Run multiple tests using a UFT Developer grid
Use the UFT Developer grid to run the same test operations on different environments by changing the parameters that describe the required environment. You can achieve distributed parallel test execution, by running all of your tests on the grid, locally or remotely, and letting the grid allocate nodes for each test run, as needed.
For details, see UFT Developer Grid.
Run UFT Developer tests in ALM
You can use ALM tracking and traceability features to manage automated UFT Developer tests and business components.
For details, see Integrate UFT Developer and ALM.
Add tests into the continuous integration system
When your tests are ready for integration into your organization's automation testing suite, you can add them to Jenkins or another continuous integration build system. For details, see Run tests using a CI system.