- Adding user actions in a test
You can add user actions in a test script from the test editor for Android, iOS, or Web UI applications. User actions are actions such as click, swipe, tap, and touch on mobile devices. These actions help you navigate around the application. After you record a script, you might decide to add new user actions in the script such as swiping right with one touch on a view.
- Inserting browser navigation actions in a Web UI test
You can add or insert browser navigation actions, such as Back, Forward, Close, Maximize, Refresh, Restore, GoToUrl, and several others when you edit a Web UI test.
- Verification points
During the playback of tests, verification points verify that certain action has occurred or they verify the state of a control or an object. When you create a verification point for an action, a control, or an object in a recorded test, you capture information about the action, control, or object to build a baseline for comparison when the test is played back.
- Assigning a test variable to an object property
You can use the value of a UI object property and assign the value to a test variable in all the UI tests created for Android, iOS, hybrid, or native mobile applications, desktop applications, and web applications in HCL DevOps Test UI (Test UI). The process of assigning a variable to an object property is called a variable assignment.
- Adding a loop
To run a test or part of a test repeatedly for a specified number of times or duration, add a loop to the test. You can add a loop to the Launch Application node or In Application node.
- Adding conditional logic to tests
You can insert the If-Else logic for a section of test to make those steps run only if a specific condition is met.
- Splitting UI actions
After you record a test, you can split the test actions into multiple test segments with different nodes. With the test-splitting capability, you can record a relatively long scenario with many functional steps against an application and then, in the editor, modify the target apps. Then you can generate multiple tests from a single recording that you can replay in a different order with a schedule.
- Optimizing the playback time of a test
When you play back a Web UI test, by default, the test collects a lot of data. This data includes screen shots, response time breakdown data, and highlighted UI controls. The size of a test depends upon the data it contains; playback time increases as the size of a test increases. To optimize the playback time, you can choose to collect only the data which you need.
- Optimizing Web UI load testing for scalability
Scalability denotes the number of virtual users that can be emulated on an agent machine to generate load. In a Web UI load test, each virtual user requires one instance of a web browser to be run. Because each instance of a browser consumes key computer resources such as memory, CPU and Network data, you must tune a few of the parameters to comfortably run appropriate number of browser (virtual users) on an agent machine.
- Actions from the SmartShot View
The SmartShot View displays the screen captures that were captured during the recording of the application under test. Use this view to display and select user interface (UI) elements and optionally add verification points to the test script.
- Enhancement of test script robustness
Web UI tests in HCL DevOps Test UI (Test UI) might encounter issues with object recognition during playback, that can lead to test failures or errors. To address the issues and to improve test robustness, you can use various methods.
- Substituting the URL of an application by using Datasets
If you have the same Web UI application deployed on different servers corresponding to different phases of a project (development, production, etc.), or different versions of the application for example, you might want to execute the same Web UI test on all these servers at once. To switch from one server to another, you can edit the URL of the application and run the test on a different server. To execute tests on different environments at once, you can substitute the URL from a dataset so that you can run the same test in a loop on different servers.
- Extension of application URL in Web UI tests
- Overview of guided healing and self-healing
- Validating images and user interface elements by using the image property
When you play back the Web UI test, you can validate the images and user interface elements by the using the image property. After you define a test step to use image property, during playback, HCL DevOps Test UI (Test UI) locates and compares the selected image with the target objects in the web pages and finds the best matching image.
- Defining the Image property as object identifier for Web UI tests
Before you start recording Web UI tests, you can define the image property as the object identifier. When image property is set as the object identifier, then the objects in the web application are recognized and captured as images while recording a Web UI test.
- Applying guided healing feature for tests identified by the image property
When you play back Web UI tests that use the image property to match target with actual images, the tests fail if there is a mismatch. You can use the guided healing feature that provides the capability of finding the next best matching image so that the tests can pass.
- Extending Web UI tests with custom JavaScript code
You can perform certain tasks to extend the Web UI tests that include advanced capabilities such as adding JavaScript code to tests, renaming a JavaScript in a test script, and creating a custom Java code.
- Providing tests with variable data (datasets)
You can produce more realistic tests by changing them to use datasets. During execution, a test that uses a dataset replaces a value in the recorded test with variable test data that is stored in the dataset. This substitution allows each virtual user to generate a different request to the server.
- Test variables
A test variable is a user-defined, name-value pair that stores and refers to information throughout a test and between tests.
- Correlating response and request data
For a test to run correctly, a request that is sent to a server might need to use a value that was returned by a previous request. By ensuring that this data is correlated accurately, you can produce better performance tests.
- Specifying error-handling behavior
You can specify how error conditions are handled when running a test or schedule. Error conditions include verification point failures, connection failures, server timeouts, custom code alerts, and problems with data correlation.
- Inserting a custom log message into a UI test script
You can insert a custom log message into the test script of Web UI, Windows, or mobile tests to differentiate a set of steps related to a task in the unified report. For example, you can add custom messages to demarcate the test steps related to order generation, user creation, or report generation in an application.
- Exporting Web UI test projects to DevOps Test Hub
You can migrate Web UI test projects to a compatible format and export them to HCL DevOps Test Hub (Test Hub) so that you can edit and run the exported tests in Test Hub.