Configuring Android applications for mobile testing
You can configure and add an Android application to a Web UI test project. You can then record a mobile test to perform actions on the Android application and automate the mobile testing.
Before you begin
Procedure
- Go to the Web UI Test perspective in HCL OneTest™ UI.
-
Click Display available mobile and Web UI applications
in the toolbar.
The Mobile and Web UI Applications view is displayed.
-
Click Add android application to list
.
The Add android application dialog box is displayed.
-
Complete the action for each option described in the following table:
Option Action Open the list of predefined application configurations - Click .
- Select the application from the Choose Android Application dialog box.
- Click OK.
Note: If you select the application, then the other fields are autopopulated with the name of the selected application.Package Name Perform the following action if you have not autopopulated the fields by using the Open the list of predefined application configurations button.
Enter the name of the Android application package. For more information on the package name, refer to related links.For example, the package name for YouTube is com.google.Android.youtube.
Application name Perform the following action if you have not autopopulated the fields by using the Open the list of predefined application configurations button.
Enter a name for the application that enables you to identify the mobile application.For example, the application name can be add_video.
Activity name Perform the following action if you have not autopopulated the fields by using the Open the list of predefined application configurations button.
Edit the name of the Android application package that is prefixed to .MainActivity when you want to change the name of the application package. The name of the application package is prefixed to .MainActivity when you enter the name in the Package Name field.For example, com.google.Android.youtube.MainActivity
Version Perform the following action if you have not autopopulated the fields by using the Open the list of predefined application configurations button.
Enter a number that you want to identify the version of the mobile application used for the test.For example, the version number can be dev_bld_V123.
Application description Enter a description for the application. For example, the application description can be Test add video in bld V123.
-
Click Next.
The Application Package Location page is displayed.
- Select a project and enter a file name in the File name field.
-
Click Finish.
The Android application is configured and added to the Mobile and Web UI Applications folder of the selected project and is displayed in the Mobile and Web UI Applications view.