Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing...

Post on 29-Jan-2016

259 views 0 download

Tags:

Transcript of Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing...

Testing in Android

Methods• Unit Testing

• Integration Testing

• System Testing

• Regression Testing

• Compatibility Testing

• Black Box (Functional)

• White Box (Structural)

• UI testing

System

Integration

Unit Unit

Integration

Unit

Regression (Feedback testing)Allows a consistent, repeatable validation of each new release of a mobile application.

Regression testing ensures that reported product defects have been corrected for each new release and that no new quality problems were introduced in the maintenance process.

Compatibility ensures compatibility of an application with different native device features

Performance & Stress• useful to identify performance bottlenecks in high use applications

• generally involves an automated test suite as this allows easy simulation of a variety of normal, peak, and exceptional load conditions

Black Box• Core functionality testing as per specification and correct performance.

•Testing without knowledge of the internal workings of the item being tested

•Can involve:• UI• Networking• Security• DB management

White Box Based on analysis of internal workings and structure of a piece of software

Includes techniques such as branch and path testing

UI• Testing application with a GUI to ensure correct behaviour and state of the UI.

• Verification of• Data handling• Control flows• States• Dialog and window displays

Testing Framework• Tools get information from the project of the

application under test • Use this information to automatically create the build

files, manifest file, and directory structure for the test package

• monkeyRunner, an API testing devices with Python programs

• UI/Application Exerciser Monkey, a command-line tool for stress-testing UIs by sending pseudo-random events to a device.

Instrumentation Framework

It monitors and diagnoses the application by Tracking code Debugging Performance counters Event logs

White Box: JaBUTi/ME• Java Bytecode Understanding and Testing Tool is a complete tool suite understanding and testing Java programs and Java-based components

• Performs the given tasks:• Static analysis• Requirement computation• Code instrumentation• Coverage Analysis

• Its extension in mobile env. Is ME

White Box: JaBUTi/ME parameters• The address of the test server

• The identification name of the programming being tested

• The name of the file used for temporary storage of trace data is optional.

• The minimum amount of available memory

•Keep or not the connection

BlackBox : MobileTest Framework