1.

Explain the general responsibilities of a mobile application testing framework. Also explain the general structure of a mobile application testing framework.

Answer»

Following are the general responsibilities of a mobile APPLICATION testing framework:

  • Choosing a format for expressing expectations
  • Developing a means to connect to or control the test application
  • Performing the tests and reporting the results

The general STRUCTURE of a mobile application testing framework consists of the following segments :

  • Application Package: This refers to the TARGET application which needs to be run and tested.
  • INSTRUMENTATION TestRunner: A test case runner that executes test cases against the target application. It includes an SDK tool for creating tests as well as an API tool, such as MonkeyRunner, that gives APIs for designing a program that controls an Android device.
  • Test Package: Two classes, Test case classes, and Mock objects are included in the Test Package. The mock object contains mock data that will be USED as sample input for test cases, while the test case classes contain test methods to run on the target application.

In the above figure, we can see that a mobile application testing framework consists of three segments: Application package, InstrumentationTestRunner, and Test package. The test package consists of mock objects, test case classes, and Instrumentation and  JUnit classes.



Discussion

No Comment Found