130 likes | 239 Views
REU Program at ECU “Software Testing – Foundations, Tools, and Applications”. Mobile Testing Demonstration Using MonkeyRunner. Ernest Holston and Brandi Amstutz. Demonstration Case Study.
E N D
REU Program at ECU “Software Testing – Foundations, Tools, and Applications” Mobile Testing Demonstration Using MonkeyRunner Ernest Holston and Brandi Amstutz
Demonstration Case Study Our goal was to write a simple test script to perform the following objectives on two different Android devices for GUI comparison: • Install APK • Launch application • Simulate simple user interaction • Capture screenshots and write to file • Uninstall application from device
Case Study Specifications • Application: Foursquare • Functions to simulate: • Search for “Joyner Library” • Check in with a status message • Return to our personal profile page • Delete “Joyner Library” check-in • Return to device home screen
What is foursquare? • A social networking site that allows you to “check – in” to the places you visit • Integrates with Facebook and Twitter which helps you share your location with all your friends • In some special cases, checking – in to certain locations can even give you the opportunity to receive special offers from that specific location
Writing the test script • This is the Android Debug Monitor. • It’s the program that is used to get the coordinates of specific locations on the phone
Screenshot results From The Application Test Script
NOTICE: Even though the check – in has been deleted (as shown by the boxes near the bottom of the screens), it still shows up on the profile
In an attempt to use a generic test script, upon clicking Joyner Library (After searching for it on the profile page) it brought us to this page. **Fault in the application** GENERIC TEST SCRIPT RESULTS
Conclusion • Mobile testing is an important form of software testing • It helps to produce better quality applications on the market • MonkeyRunner is an Android Development Kit tool that allows people to test out applications using the screenshot features it provides • It is very beneficial for Android application developers, who may use it to locate some bugs within an application and fix them, and even for students who want to learn how to test Android applications for their personal benefits
References • http://developer.android.com/tools/help/monkeyrunner_concepts.html#APIClasses