Testing Android App apps with IBM Rational Test Workbench

Source: Internet
Author: User
Tags new features versions

IBM Rational Test Workbench (RTW) is a unified set of test tools for IBM rational, including functional testing, performance testing, interface SOA testing, and other modules to meet the customer's multiple types of automated testing requirements. With IBM's release of the new version of RTW 8.5, RTW has added app automation testing for mobile apps, which currently supports Android and Apple IOS's two versions of app apps. This article describes how to quickly use RTW 8.5 to automate the testing of Android applications.

Summarized

IBM Rational Test Workbench (RTW) is a unified set of test tools for IBM rational, including functional testing, performance testing, interface SOA testing and other modules to meet the various types of automated testing needs of customers. In June, IBM released a new version of RTW 8.5, in which RTW added app automation testing for mobile apps, currently supports Android, Apple IOS Two versions of App apps, and this article describes how to quickly use RTW 8.5 pair Android applications for automated testing.

What problems will be solved by the automated tests that RTW introduces for Android? As we all know, mobile apps have been widely used in our work life, movie tickets, air tickets, taxis, bank transfers, shopping can be solved by App, while everyone uses a variety of mobile terminals, and the Android OS version is numerous (Android 2.2 to the latest 4.2, and even many mobile and mobile service vendors have customized various types of mobile phone systems based on Android (mobile G3 customization, millet customization), which will make mobile app developers face the question of whether the app we're developing can support these myriad mobile phones/systems. Version? How to test, for no mobile phone terminal or analog terminal for manual installation, run function test? It's not necessary, it's 21st century now, technology changes life, we can use the "automated" test, for a device to record the test process, and then automatically for more devices to test, check the results. Unlike the traditional IBM rft,hp QTP and other automation tools, we are here to automate not the traditional computer program, but the application on the phone, to use the "Object recognition" program is also targeted at "mobile app application."

RTW's support for Android apps requires modules to be installed on PCs and Android phones, with RTW Eclipse clients installed on PC computers (desktop) (corresponding to the mobile device in the figure below) The RTW Mobile Client is installed. RTW Mobile Client and RTW Eclipse can be connected through a communication connection such as a WIFI,USB data line. The tested mobile app can be configured in RTW Eclipse, synchronized to the RTW mobile client on the phone, and then start recording actions for the app, automatically passing back to the RTW Eclipse client, after it edits and maintains the script, selecting Run the test, the test is automatically run on the phone, and the final result is returned and displayed in the RTW Eclipse client.

Figure 1. To test the Android app using RTW

As shown above, the test for the Android app will follow the steps above, and we'll start with a quick discussion, followed by a detailed introduction to the following chapters:

(computer) to install RTW Eclipse.

Configure the Android SDK (PC) to configure RTW Eclipse to use the Android SDK

Install RTW Mobile Client on (mobile).

Set the RTW Mobile Client connection (computer) RTW Eclipse on the (mobile).

(mobile) Select the app that you want to test and upload it to the (computer) RTW Eclipse in sync

Alternatively, select the installation file (apk suffix name) of the app application that you want to test in the (computer) RTW Eclipse, and then sync to the phone to install it.

(mobile) Select recording, App to test

(computer) Generate test scripts, edit and maintain test scripts

(computer) RTW Eclipse runs the test, RTW Mobile Client automates the operation of the APP and delivers execution results to the (computer) RTW Eclipse.

Step 5 and Step 6 are two different implementations, and you can choose any one of these.

Since step 2 installs and configures the Android SDK with more steps and is prone to errors, this article splits the step into "Installing the Android SDK" and "Configuring RTW Eclipse to use the Android SDK" in two parts.

This article uses the mobile phone simulator, so it adds a step to "use AVD Manager to configure the phone simulator".

Install RTW Eclipse.

Mobile testing, instead of adding new features to previous RFT and other products, RTW's mobile testing feature is placed in a new Eclipse interface product, the RTW eclipse client. To use this feature, we first install the IBM installation Manager 1.6.3 version and use it to install the RTW Eclipse client.

Open IBM Installation Manager 1.6.3, menu Select File-Preferences-repository, and click Add Repository to point to RTW installation media location.

Figure 2. Configure RTW installation media location in installation Manager

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.