testing in android. methods unit testing integration testing system testing regression testing...

15
Testing in Android

Upload: corey-rodgers

Post on 29-Jan-2016

278 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

Testing in Android

Page 2: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

Methods• Unit Testing

• Integration Testing

• System Testing

• Regression Testing

• Compatibility Testing

• Black Box (Functional)

• White Box (Structural)

• UI testing

Page 3: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

System

Integration

Unit Unit

Integration

Unit

Page 4: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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.

Page 5: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

Compatibility ensures compatibility of an application with different native device features

Page 6: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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

Page 7: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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

Page 8: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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

Includes techniques such as branch and path testing

Page 9: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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

Page 10: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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.

Page 11: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

Instrumentation Framework

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

Page 12: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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

Page 13: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

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

Page 14: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box

BlackBox : MobileTest Framework

Page 15: Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box