What is Android testing framework?

Answer

One of the standard testing frameworks for Android application is Android testing framework. It is a powerful and easy-to-use testing framework that is well integrated with the Android SDK tools.

 

  1. Application package is your target application which needs to be tested
  2. InstrumentationTestRunner is the test case runner that executes test case on target application. It includes:

         2a)  Test tools: A SDK tools for building test. They are integrated in Eclipse IDE or run as command line.

         2b)  MonkeyRunner: A tool that provides APIs for writing program which control an Android device or emulator outside of Android code.

  1. Test package are organized into test projects. This package follows naming convention. If the application under test has a package name of "com.mydomain.myapp"  than Test package should be "com.mydomain.myapp.test" .Test package includes 2 objects as below:

         3a)  Test case classes:include test methods to executed on target application.

         3b)  Mock objects : includes mock data that will be used as sample input  for test cases.

All mobile testing Questions

Ask your interview questions on mobile-testing

Write Your comment or Questions if you want the answers on mobile-testing from mobile-testing Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---