Test an Application

You can test an application before you include it in an automation.

Prerequisites

  • You've captured an application as described in Capture an Application, and you've declared all the screens and UI elements you want to use in an automation.

  • You've created an environment in Cloud Factory. For more information, see Create an Environment.

Context

By testing an application before using it in an automation, you ensure that you have declared all of the elements correctly. At runtime, the elements are correctly identified and can be controlled as intended.

Procedure

  1. In Cloud Studio, open the application and choose Test Application.
  2. Choose an environment.
  3. Choose Test.

    The system generates and deploys a test package. Then it launches the Application Tester.

    The applications declared in your project are displayed in the Declared Applications section.

  4. Choose a declared application to expand the screens to test.

    If you have entered different values for more than one instance, the tester differentiates the instance you choose by displaying the corresponding values as input in the Declared Element section.

  5. Choose a screen or an instance to go to the declared elements and activities.

    Choose a declared element to display its collection. For more information, see Declare an Element as a Collection.

    If you have created a parent-child hierarchy and added a collection as direct parent to another collection, the elements of the child collection are displayed in sublists on deeper levels.

    On the right side of each declared element is an activity matching its type, for example a Click activity for a button, or an input field.

  6. Test each screen element.
    1. Choose an element from the list.

      A list of activities you can execute on the element is displayed at the bottom of the application tester.

    2. Choose an appropriate activity.
    3. Optionally, switch to the corresponding application to check whether your action was successful.

    You've defined an element named searchBar in the application's screen. It's an input field:

    Make sure that the right screen is open on your desktop. On the application tester, choose searchBar. In the activities section, choose Set Element. Enter a value for the inputs and click Execute. The value appears in the text bar of the declared element. Switch to the application to check whether your value appears in the search bar.

    On the application screen, there is also a button named searchButton. Choose the Click activity on the right side of the search button. If your action is successful, both the application and the application tester change to a new screen.

  7. Optionally, choose the next screen and test every screen.
  8. Optionally, you can stop testing by closing the application tester window or by returning to the Cloud Studio and chooseing Stop in the Test Application window.

Results

Your application is ready to be used in an automation.

Next Steps

While you are testing your application, you can navigate through the different artifacts in your Cloud Studio project and choose an element in read-only mode.

The Design Console indicates which tester is currently running in your project.