This document discusses Android mobile application testing, including:
1. It provides an overview of mobile technologies and the types of Android applications.
2. It discusses important aspects of the Android user interface guidelines including common app UI elements like the action bar and navigation drawer.
3. It presents various tools for Android testing like the Android SDK, ADB, Android Device Monitor, and emulators that allow debugging and inspecting apps.
Machine Learning Software Engineering Patterns and Their Engineering
Android Mobile App Testing Guide
1. Android Mobile Application Testing
(Human Interface Guideline, Tools)
Smirnova Iuliia
QC Eng. at SoftServe
2. Who am I
Smirnova Iuliia
QC Engineer,
Linkedin: https://ua.linkedin.com/in/iuliia-smirnova-60682757
email: smirnova.iuliia@gmail.com
- Android manual and automation
- iOS manual
5. Global mobile statistics 2014
• There are nearly 7 billion
mobile subscriptions
worldwide. This is
equivalent to 95.5 percent
of the world population
• Sales of smartphones
worldwide topped 1.2
billion in 2014, up 28%
from 2013
Source: The International Telecommunication Union (May 2014)
7. Why is it challenging?
•Device Fragmentation
•Data Consumption
•Processing Power and Battery Life
•GPS, Biometric Scanners, Gyroscopes, Accelerometers
•Touchscreen UX and GUI
11. Applications
•Applications are the top layer in the Android
architecture and this is where our application are going
to fit
•Several standard applications come pre-installed with
every device, such as:
1. SMS client app
2. Web browser
3. Contact manager
…
18. Common App UI
1. Action Bar
2. Navigation Drawer
3. Content Area
19. Action bar
1. App icon
2. View control
3. Action buttons
4. Action overflow
Contextual Action bar
20. Gestures
Users don’t click, they use gestures
•Tap/Double Tap
•Drag
•Flick/Swipe
•Zoom/Pinch
•Long Tap
Users expect all these gestures to work the same
regardless of the app they are currently running
22. Device. Enable developers mode
• Settings > General > About phone
• Software information > Build number
Rapidly tap on 'Build Number' five times and you will
see the message 'You are now a developer!'
27. Android Debug Bridge (ADB)
Is a command line tool that lets you communicate with
an emulator and device.
Includes three components:
▪ The Client
It is what runs on your development machine
▪ The Server
It is held responsible for communication between
the client and daemon running on a device/emulator
▪ The Daemon
It runs as a background process on each
device/emulator instance
<sdk>/platform-tools/
30. $ android avd
1. From the main screen, click Create Virtual Device
31. 2. In the Select Hardware window, select a device
configuration, such as Nexus 6, then click Next.
32. 3. Select the desired system version for the AVD and
click Next.
4. Verify the configuration settings, then click Finish.
To launch the AVD in the Android Emulator, click the
launch button in the list of AVDs.
33. Android Device Monitor
Tool with a graphical user interface for several Android
application debugging and analysis tools.
From the command line, in the SDK tools/ directory,
enter the following command:
$ monitor
38. Video record
1. Android 4.4 and higher:
adb shell screenrecord
•File under /sdcard/movie.mp4.
•Limit is 180 seconds (3 minutes)
2. Lower Android versions:
Using apps from GooglePlay (root required)