Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Android Mobile Application Testing: Human Interface Guideline, Tools


Published on

A presentation by Iuliia Smirnova on 'Android Mobile Application Testing' which covers human interface guideline and tools.

Published in: Software
  • Be the first to comment

Android Mobile Application Testing: Human Interface Guideline, Tools

  1. 1. Android Mobile Application Testing (Human Interface Guideline, Tools) Smirnova Iuliia QC Eng. at SoftServe
  2. 2. Who am I Smirnova Iuliia QC Engineer, Linkedin: email: - Android manual and automation - iOS manual
  3. 3. Agenda 1. Mobile technologies 2. Application types 3. User Guides 4. Tools
  4. 4. Mobile Technologies
  5. 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)
  6. 6. The Future of Mobile Testing
  7. 7. Why is it challenging? •Device Fragmentation •Data Consumption •Processing Power and Battery Life •GPS, Biometric Scanners, Gyroscopes, Accelerometers •Touchscreen UX and GUI
  8. 8. Mobile platforms
  9. 9. Evolution of Android
  10. 10. Application types
  11. 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 …
  12. 12. Native apps •Downloadable •Native APIs. •Performance Examples: Facebook (from 2013) LinkedIn (from 2013) Evernote (from 2015)
  13. 13. Hybryd apps •Cross platform •Web view limitations •Downloadable Examples Basecamp
  14. 14. Web apps •Cross platform •No need to download
  15. 15. User guide
  16. 16. Design principles
  17. 17. Common App UI 1. Action Bar 2. Navigation Drawer 3. Content Area
  18. 18. Action bar 1. App icon 2. View control 3. Action buttons 4. Action overflow Contextual Action bar
  19. 19. 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
  20. 20. Tools
  21. 21. 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!'
  22. 22. Developers options •USB debugging •Stay awake •Show touches •Pointer location •Don't keep activities •Background process limit •Show all ANRs •Allow mock locations •Desktop backup password •Take bug report •Process stats •Revoke USB debugging authorizations •Show surface updates •Show layout bounds •Force RTL layout direction
  23. 23. USB debugging
  24. 24. Workstation. Android SDK
  25. 25. 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/
  26. 26. ADB Commands ADB Debugging adb devices adb kill-server Package manager adb install adb uninstall adb shell pm list packages File manager adb pull adb push adb shell [ls/cd..]
  27. 27. $ adb logcat
  28. 28. $ android avd 1. From the main screen, click Create Virtual Device
  29. 29. 2. In the Select Hardware window, select a device configuration, such as Nexus 6, then click Next.
  30. 30. 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.
  31. 31. 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
  32. 32. Hierarchy viewer
  33. 33. Inspecting layouts
  34. 34. Take screenshot
  35. 35. 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)
  36. 36. Network troubleshooting • Burp Suite • TCP Catcher
  37. 37. Location • Fake GPS location from PlayMarket • Android Device Monitor