Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore Mobile Hand book

Mobile Hand book

Published by mil.85, 2015-02-18 14:14:49

Description: Mobile Hand book

Search

Read the Text Version

Mobile Testing and Services Mobile Handbook Ahasan Ullah Student Version 1.0 1Copyright © 2015 AHASAN ULLAH. All rights reserved

ObjectiveThe objective of this class is to provide information about the software testing industry. You will learn about Mobile Testing techniques,technologies, tools, terminologies and may other information to guide you to be comfortable with the QA industry.You will learn about Mobile Process, Mobile Approach, Mobile Tools, and Mobile Platforms & OS Versions.“The objective of testing is to uncover as many bug as possible. The testing has to be done without any emotional attachment to the software. Ifsomeone points out the bugs, it is only to improve the quality of the software rather than to find fault with you”, Table of Contents PG. 3 PG. 41. Mobile Overview PG. 42. Mobile Application Testing PG. 53. Types of Mobile Testing PG. 54. Mobile Testing Approach PG. 65. Mobile Testing Tools PG. 66. Types of Design PG. 67. Understanding of Mobile Network PG. 78. Types of Mobile App PG. 79. Types of Mobile OS PG. 710. Mobile Languages PG. 811. Mobile Extension PG. 812. Types of Browser PG. 813. Type of app Store PG. 914. Types of Simulations PG. 1015. Profile Configuration PG. 1016. List of OS Versions PG. 1117. Android SDK PG. 1118. ADB PG. 1219. Application Crash Logs PG. 1320. Clear Data/Cache PG. 1521. Different way to install app for Mobile Devices PG. 1522. Uninstall app from Mobile Devices PG. 1623. How to take screenshots from Mobile Devices PG. 1624. Difference between Mobile & Desktop Testing PG. 1725. Mobile App dev Process PG. 1726. Cloud Computing PG. 1727. Web Services PG. 1828. Memory Leaks PG. 1829. LBS Application PG. 1830. Battery Drain PG. 1931. Testing audio & Videos PG. 2032. Mobile Testing Process PG. 2033. Gesture Tour PG. 2034. Start Testing PG. 2035. Few Scenario36. Mobile app at a Glance 2Copyright © 2015 AHASAN ULLAH. All rights reserved

Mobile Testing Overview• Every good developer knows you should test your app. Testing is a crucial step in the development process that allows you to ensure the quality the app you’re releasing. No one wants to release buggy or regression-filled apps, and testing can help you catch problems before the critical app store submission.• But when it comes to the testing ecosystem, mobile testing is a relatively young field, still undergoing a lot of change and evolution. This places developers and companies building mobile applications in a tough spot. How can teams developing for mobile determine what strategies to use to inform their mobile testing, and what tools and solutions can they use in their mobile testing process?• In mobile application testing actually there are too many tools and techniques available to meet quality requirement and let’s discuss them…. 3Copyright © 2015 AHASAN ULLAH. All rights reserved

1. Mobile Testing: The process is to assure the quality of mobile devices like iPhone, iPad, Android, PDAs, and etc. Mobile testing involves a set of activities from monitoring and troubleshooting mobile application including testing with multiple operating system, hardware configurations, and network capabilities I. Why do we focus on mobile Testing?II. Mobile testing is a different which involves so many:III. Mobile Testing Process: (More information in page 19)2. Types of Mobile Testing1. Functional Testing- Functional testing ensures that the application is working as per the requirements. Most of the test conducted for this is driven by the user interface and call flows.2. Usability Testing - This includes text visibility in the selected language, navigation between screens, and verification of functionality online/ offline, feedback from interaction with system, i.e., downloaded application should be prompt with message.3. Compatibility Testing - This entails validating the application for different mobile devices, OS versions, screen sizes, and resolutions as per the requirements, checking if integration server changes, checking for the app isolation with other apps on the device.4. Interface Testing - This covers validation of each screen, buttons, text inputs, navigation flow such as Facebook, bookmarks, reviews, etc.5. Services Testing - This includes checking for mobile app not to act as a server, checking if a service takes too long or is used offline, and checking if a service goes down and returns malformed responses, API/Web services.6. Low Level Resource Testing -This covers checks for overuse of memory and not releasing it, app temporary files not cleaned, local database growing too big, and garbage generation by the app.7. Performance Testing - This includes checks on server connection changes to WIFI from 2G/3G/4G or vice versa, shared images size used for the Application is as per the requirement, application response time, code optimization for the CPU cycle, battery consumption, memory leaks, resources like GPS, CAMERA, etc., freed.8. Operational Testing - This entails checks for back-up of necessary information in the app, save and recovery plan if battery goes down, data lost in case of app up-gradation from app store market, app access if user gets any alarm, call, message, reminder, app install & uninstall etc., and battery power usage while app is being accessed.9. Security Testing - This includes encryption/decryption techniques used for sensitive data communication, checks for multi-user support without interfering with the data between them, checks for access to files saved in the app by any unintended users, detect areas in tested application so that they do not receive any malicious content. 4Copyright © 2015 AHASAN ULLAH. All rights reserved

10. Localization testing – internationalization and localization testing ensure that the mobile app is ready to go global3. Mobile Testing Approach: 1. Device Testing - Selecting Physical Device or Testing on Simulation Tool Ex. Pefecto Mobile/ Device Anywhere  OS versions for iOS & Android  Native, hybrid or Web App  Browsers (Safari, Chrome)  Network Testing 3g, 4g & LTE 2. Test Cases Preparation – Understand the requirement and the start writing test cases  Find the requirement  Any wireframe available or screenshot of the application  Prepare your test cases 3. Automated Testing – identify the mobile automaton tool and Modify the scripts as per the project requirement  In order to use automation you need to find out specific tool  You just want to record & replay or able to create and modify script  Find out the tool and the script language you might want to considered 4. Manual & Automation – Execute test cases Manual & Automation 5. Usability Testing – User experience is key for apps to be accepted by end user. Check usability issues, navigation and content 6. Performance Testing – Test the performance if the application requires checking for its responsiveness, scalability, resources usage and stability based on standard. 7. Security & Compliance Testing – if the application require to check if the app is secure by checking SQL injection, data dump & SSL Validation4. Types of Mobile Tools: Device Anywhere - is a tool for spot-checking mobile web content on real mobile devices. Interact remotely with live mobile devices in real time so you can see exactly how your website content looks and acts across a range of different mobile devices. Price: Spot-checking tool is free; interactive testing for developers starts at $100/month Calabash (iOS/Android) is an acceptance testing automation framework. It may be compared with the famous Selenium Web Driver. Yet every tester has to realize the difference between testing the app on a desktop machine and on a touchscreen devise. Especially when dealing with a native application. Calabash may provide the necessary API full of ‘touch screening’ experiences. Perfecto Mobile. Perfecto Mobile’s MobileCloud platform enables you to access a wide variety of real mobile handsets and tablets connected to live mobile networks spread in different geo-locations. It allows you to test and monitor processes on each handset and ensure the optimal compatibility of your site, application, or service. Price: Pay per project at $25/hour; monthly plans start at $15/hour. MonkeyTalk (iOS/Android) can automate all possible real and functional interactive tests. Everything from little “Smoke Tests” to the tough data-driven test suits. It does bot real device and simulation tests with native and hybrid as well as mobile apps. Robotium (Android) A great tool for both native and hybrid apps. Robotium makes black box testing fairly easier. With it test case developers are free to write function and system as well as user acceptance test scenarios. UI Automator (Android) This UI Automation framework allows you to test your UI via creation of automated functional test cases. They will be able of running against your app on a single or multiple devices. Selendroid (Android) is but one more test automation framework. It is driven of the UI of both native and hybrid apps as well as the mobile web. So the tests will be written via Selenium 2 client API. SeeTest – The test script is run automatically on both the attached mobile device as well as on the simulator. Results are recorded in the SeeTest environment for analysis. The automated script can be converted and integrated with multiple other existing target test environments like QTP, TestComplete, MSTest, Junit, PERL and Python. Since SeeTest runs on your actual device, you can be sure that the tests represent genuine user experience. 5Copyright © 2015 AHASAN ULLAH. All rights reserved

5. Types of Mobile Design:1. What is Wireframe?2. What is Prototypes?6. Understanding of Mobile Networks: 1. Mobile Network 2. Check Connectivity –Testing in various network strengths  No Network  Low Network  Medium Network  High Network  Wi-Fi7. Types of Mobile apps: 1. Native apps - are developed to run on one specific mobile operating system like iOS or Android and are typically distributed through app stores. Native apps have the best performance and have full access to the hardware features of a mobile device, but are limited to the running on the target operating system. 2. Web apps - are accessed over the Internet and developed by using the browser-supported programming language like HTML. Web applications work more or less with all browsers. Each browser interprets HTML differently resulting in some inconsistencies. Web apps have limited access to phone hardware features. 3. Hybrid Apps– are combination of both native and web app. Hybrid apps run inside a native container, and leverage the device’s browser engine (but not the browser) to render the HTML and process the JavaScript locally. A web-to-native abstraction layer enables access to device capabilities that are not accessible in Mobile Web applications, such as the accelerometer, camera and local storage. 6Copyright © 2015 AHASAN ULLAH. All rights reserved

8. Types of OS: 1. iOS - iOS owns a strong reputation for being quick, clean and secure. Ease of use is frequently mentioned when discussing the benefits of iOS, and it’s evident by the simplistic layout and vibrant colors of its user interface that Apple places a strong emphasis on uniformity and consistency.  The iOS kernel is not open source.  Device manufacturer - Apple Inc 2. Android- Android is software platform for mobile devices based on the Linux Operating System and developed by Google. Many different manufacturers make Android phones  Android is open source software  Customizability  Device manufacturer - Google, LG, Samsung, HTC, Sony, ASUS, Motorola, and many more 3. Blackberry - The BlackBerry is a handheld device made by RIM (Research In Motion) that is widely used in the enterprise for its wireless email handling capability  Device Manufacturer – Blackberry inc. 4. Windows - A mobile operating system for smartphones and mobile devices that serves as the successor to Microsoft's initial mobile OS platform system, Windows Mobile. Unlike Windows Mobile, Windows Phone 8 (also referred to as WinPho8) and later versions are targeted more to the consumer market than the enterprise market, and it replaces the more traditional Microsoft Windows OS look and feel with a new \"Metro\" design system user interface.  Device Manufacturer - HTC, Huawei, JSR, Karbonn, LG, Lenovo, Longcheer, Micromax, Nokia & more.9. Languages used on Mobile apps: 1. iOS – 2. Android – 3. Blackberry – 4. Windows – 5. Web – 6. Hybrid -10. Types of Mobile extension: 1. iOS – 2. Android – 3. Blackberry – 4. Windows – 7Copyright © 2015 AHASAN ULLAH. All rights reserved

11. Types of Mobile Browser 1. iOS – 2. Android- 3. Blackberry – 4. Windows –5. What should we focus when testing browser?  Is the site content meaningful?  Is this application easy to use?  How about browser compatibilities?  How reliable is our technology?  Do the servers have enough power?  How many visitors are we expecting?  How much activity can the site handle? 6. How to test a website?  I would start with black box testing to get a sense of the scale such as looking at the webpage, hyperlinks, text, graphics, looking for correctness of information, copyright, and layout issues when browser windows is resized.  If all the graphics load and display properly?  If the page loads fast enough?  Does the application accept correct data?  Does the application reject negative data?  Checking for all the HTML connections are valid? 7. Web vs. Native Web:  Accessed through browser  Static, navigational user interface  Requires connections  Somewhat limited features Native:  Accessed after being installed  Interactive user interface  Available offline  Can make use of phone features such as location service, camera, etc.12. Types of Mobile App Store: 1. Apple – App Store 2. Android – Play Store or Market 3. Blackberry – App world 4. Windows – App Store13. Types of Mobile Simulations: 1. Simulator 8Copyright © 2015 AHASAN ULLAH. All rights reserved

2. Emulator 9 3. Compare emulator and Simulator? 4. Difference between them? 5. Types of Emulator? 6. What are Limitation? 14. Profile configuration: 1. setting up email, calendar, and contact accounts (including Exchange) 2. creating VPN connections 3. defining Wi-Fi settings 4. enabling restrictions for how the device can (and cannot) be usedCopyright © 2015 AHASAN ULLAH. All rights reserved

15. List of OS Versions: 10 1. iOS 2. Android 3. Blackberry 4. Windows 16. Android SDK: 1. What is SDK? 2. Reason for SDK?Copyright © 2015 AHASAN ULLAH. All rights reserved

17. Android ADB:1. What is ADB?2. What is Does?3. Which language does it uses?4. How do you turn on ADB mode?18. Crash Logs:What is a crash log and how do you get one? When an application crashes on an iOS device, the operating system creates a crash report or a crash log. The report is stored on the device. 1. Android Log: I. Before getting the log you have to configure some settings: Step 1. Turn on ADB debugger mode on Android phone Step 2. You need to install the ADB interface driver on your computer Step 2. Once the driver is installed plug your phone to the computer Step 3. Open ADB command line and type ADB devices Step 4. Type adb devices and hit enter it will show you will see device serial numberII.How to get the Logs from Android Phones1st Way:• Turn on USB debugging• Type command adb devices• Then you will see the phone listed• Type command adb logcat > s3problem.txtYou are able to view the logs in in plain text or HTML which will be savedWindows:C:\Users\<USERNAME>\AppData\Roaming\Applecomputer\Logs\CrashReporter/MobileDevice2nd Way:1. Download Eclipse IDE, Run Eclipse2. Connect device (I assume you have USB driver installed, Developer option enabled along with USB debugging)3. Click on Logcat tab4. Run the intended app5. Get the crash6. Select Logs and save in your PC in text fileIII. How to troubleshoot steps in case if you are having issue with connection?1. Error. Device not found - Check the adb driver installed correctly, make sure enable developer’s mode & checkthe cable. 11Copyright © 2015 AHASAN ULLAH. All rights reserved

2. The connection to adb is down, and a severe error has occurred • Close the Eclipse if running • Go to the Android SDK platform-tools directory in Command Prompt • type adb kill-server (Eclipse should be closed before issuing these commands) • then type adb start-server • No error message is thrown while starting ADB server, then adb is started successfully. • Now you can start Eclipse again. • it worked for me this way. • Restart your phone as well! 3. Error: device unauthorized - Make sure to turn on adb debug on Android phone from setting2. iOS Logs:1. Sync with iTunesCrash logs are transferred to iTunes whenever you sync your device. Plug in your device, and launch iTunes to completethe sync.2. Retrieve the Crash LogMac Users 1. Open Finder (found in the Dock) 2. Click on the 'Go' menu at the top of your screen, and select 'Go to Folder' 3. Type (or paste): ~/Library/Logs/CrashReporter/MobileDevice/ 4. Open the folder with the same 'name' as your device. (Note: your device name appears in iTunes on the left side, under 'Devices'). 5. You will see at least one item starting with 'ReadItLaterPro'. Copy any that you find to your Desktop. 6. Attach the file(s) and send it to developersWindows Vista/7 Users 1. Open any Windows Explorer Window (My Computer, My Documents, etc.) 2. Enter %appdata%, and press enter 3. Navigate to Roaming > Apple computer > Logs > CrashReporter > Mobile Device > *Device Name*. (Note: your device name appears in iTunes on the left side, under 'Devices') 4. You will see at least one item starting with 'ReadItLaterPro'. Copy any that you find to your Desktop. 5. Attach the file(s) and send it to developers. 19. Clear Data or Cache: 1. iOS I. Clear data or Cache from an native app on iPhone – II. How do you delete the app? 1st Way – 2nd Way - III. How to Clear data/Cache form Safari? 12Copyright © 2015 AHASAN ULLAH. All rights reserved

2. Android I. How to clear data or Cache from an Android Phone?II. Same Steps for Native apps and Browser (Chrome)3. Blackberry: I. How to clear data from a Blackberry App?II. Clearing Browser Cache on BlackBerry4. Windows: I. How to clear data from a Windows Phone?II. Internet Explorer (Windows Phone) - Clearing Cache and Cookies20. Different ways to install on your Mobile Devices: 1. Android  App can be install from the App Store but while developers are developing the application that app won’t be in the app store.  Before installing a third party application on an Android Phone User has to go into setting, security, and then check Unknown SourcesFew ways to install: 1. While the developers prepare the build they will provide you a link where you can download that app which is call Domain or a server. 2. You can install that app using eclipse 3. You can upload that .apk build on a SD card and then import that build into an Android phone, download a third party application from the store APK Installer. Then use that apk installer tool to install that apk build. 13Copyright © 2015 AHASAN ULLAH. All rights reserved

2. iPhone 14 5. Different ways to install Android app? 1st Way: 2nd Way: 3rd Way: 3. Blackberry I. Different ways to Install Blackberry app? 1st Way 2nd Way: 4. Windows I. Different ways to install Windows App? 1st Way: 2nd Way:Copyright © 2015 AHASAN ULLAH. All rights reserved

21. Uninstall app: 1. Android I. How to Uninstall app from Android Phone? 2. iPhone I. How to uninstall app from iPhone? 1st Way: 2nd Way:3. BlackberryI. How to uninstall app from Blackberry Phone?4. WindowsI. How to uninstall app from Windows Phone?22. Take Screenshots:Every time you find a defect on any application you need to provide a screenshot to developers. So inorder to captures screenshot on Android PhoneWhat are the reasons for Screenshots?• To let the developer know how you actually got the defect• In mobile testing there are multiples devices and each device behaves differently so you always have to be specific which device you go the defect• Also screenshot will help you in cases anything happens on UAT or other issues might appear many ways so having the screenshot you are able to show some evidence. 15Copyright © 2015 AHASAN ULLAH. All rights reserved

1. Android I. How to take screenshots on Android phone? Depends on the phone:  Nexus 5 – Press & hold the Power and Volume down buttons at the same time. You may need to hold the buttons for 1-2 seconds.  Samsung S4 - Pressing the Power and Home buttons at the same time will grab an image of the screen. 2. iPhone I. How to take screenshots on Android Phone? Method One: Pressing the Home and Sleep/Wake button to Snap  Display anything you want to snap on your iPhone 6 screen.  “i ply press a d hold the Ho e butto a d the press the “leep/Wake butto . ...  Once a screenshot is captured, it will be automatically saved to your iPhone 6 Camera Roll. 3. Blackberry I. How to take a screenshot on the BlackBerry Q10?  Go to the screen you want to capture  Press both the Volume Up and Volume Down keys at the same time (the volume keys are on the right side of the Q10)  When you hear the shutter sound your screen is captured! Where are my screenshots!?  To find the images, open File Manager. The screenshots are stored in the Camera folder on your device (not on the SD card if you are using one). 4. Windows I. How to take screenshot on Windows Phones?  On Windows Phone 8.1, just press the Power and Volume Up buttons at the same time to take a picture of your screen. These are automatically saved in the Screenshots album in the Photos Hub23. Difference between iOS and Android? Android is open source software, released by Google under the Apache license, whereas iOS is proprietary software and owned by Apple. It is not available to anyone else, and this isn’t likely to change. Developers are free to create and distribute their own versions of Android, and many do. Apple is the only one who releases new versions of iOS.24. App development process: 16Copyright © 2015 AHASAN ULLAH. All rights reserved

25. Cloud computing: Cloud computing offers a web-based mobile environment on simulators where testers can deploy, automate and test the mobile application. This approach helps reduce the cost of the project under development. Following are the most common problems faced by testers in cloud environment.  Subscription model  High cost  Lock-in  Internet connectivity issue  Automation is image-based and time consuming  Automation cannot be used outside the framework II. Mobile Cloud Computing Solutions (Remote Real Devices) The QA team can use the mobile cloud computing environment to deploy and test an application. In the cloud approach, the task and data are kept on the Internet rather than on an individual device, providing on-demand access. By reducing the complexity of the implementation, companies that take advantage of cloud services can significantly reduce project costs and boost the return on investment of a mobile computing solution. III. There are several benefits of using a cloud solution:  Rent per hour, swap devices  Testing coming calls and text without needing a cell plan  Automated test execution is recorded to video to investigate failures  Device logs are recorded to help with troubleshooting  Large number of devices available for testing  Tests can be run on several devices in parallel  Web-based interface  Build integration IV. Real Time Devices with Real Networks The QA team cannot completely avoid this option but there should be an option to test real devices on real networks whenever required. This is important since the Mobile application will always be used on mobile devices by end users who may access the application from a remote area with fluctuating network signal strength. 26. Web Services? 1. API I. What is API? API stands for Application Programming Interface, which specifies how one component should interact with the other. It consists of a set of routines, protocols and tools for building the software applications II. What is an API Testing? - The API Testing is performed for the system, which has a collection of API that ought to be tested. During Testing, a test of following things is looked at.  Exploring boundary conditions and ensuring that the test harness varies parameters of the API calls in ways that verify functionality and expose failures.  Generating more value added parameter combinations to verify the calls with two or more parameters.  Verifying the behavior of the API which is considering the external environment conditions such as files, peripheral devices, and so forth.  Verifying the Sequence of API calls and check if the API's produce useful results from successive calls.III. Common Tests performed on API's  Return Value based on input condition - The return value from the API's are checked based on the input condition.  Verify if the API's does not return anything.  Verify if the API triggers some other event or calls another API. The Events output should be tracked and verified.  Verify if the API is updating any data structure. 17Copyright © 2015 AHASAN ULLAH. All rights reserved

2.SoapUI I. What is SoapUI? SoapUI is a free and open source cross-platform Functional Testing solution. With an easy-to-use graphical interface, and enterprise-class features, SoapUI allows you to easily and rapidly create and execute automated functional, regression, compliance, and load tests. In a single test environment, SoapUI provides complete test coverage and supports all the standard protocols and technologies. There are simply no limits to what you can do with your tests. Meet SoapUI, the world's most complete testing tool! Tool: SMART BEAR  Functional Testing  Automated Testing  API Discovery27. Memory Leaks I. What is Memory Leakage? A bug in a program that prevents it from freeing up memory so that it no longer needs. As a result, the program grabs more and more memory until it finally crashes because there is no more memory left. II. How memory Leaks appear? Memory leak occurs when programmers create a memory in heap and forget to delete it. Memory leaks are particularly serious issues for programs like daemons and servers which by definition never terminate. III. Who checks the Memory Leaks? Development team will check the leaks using X-code or Java depending on the Device.28. LBS Application I. What is LBS? Location Based Service (GPS) II. How do you test them? Based on latitude and longitude: Position and signal strength of satellites, accuracy, speed, acceleration, altitude, bearing, pitch, roll and battery state. They include compass with magnetic and true north, leveling tool, mark or share your location and navigate back later. III. Some ideas for testing the GPS: Use different device settings, and different devices. Do field tests, and choose you locations wisely: from totally open skies to crowded tall buildings with limited to no GPS reception, from standing still to driving slow and fast, change heights during the tests (GPS is less accurate in reporting heights), choose different times of day, weather conditions and locations on earth.29. Battery Drain I. What is Battery Drain? Battery always running out before the end of the day you constantly have to recharge your device. Research has now confirmed the biggest battery draining apps on Google’s Platform. AVG researched anonymous data from over 1 million AVG Android app users to find the worst apps for using battery. II. Test can be performing manually to check if the battery drains quickly? Below are given a few scenarios to test the mobile battery backup: 1. Charge the mobile up to maximum capacity. 2. Call to a number and continuously use it until the battery fully drained out. 3. Charge the batter 20%, 40%, 80% battery charge capacities and measure the battery backup time. III. Who needs to check the battery drain? Developers but sometimes if you see the app draining battery quickly perform manual test. 18Copyright © 2015 AHASAN ULLAH. All rights reserved

30. Testing Audio & VideoAnother area which needs to be tested is the apps ability to interact with various audio settings on different handsets.App details including audio/video and vibrate feedback (when a sound or buzz plays on a touch) also need to bethoroughly checked to eliminate any future glitches.1. Extensions:  Audio (.mp3, wma, .wav) and  video (.avi, .mp4, avs, .wmv)2. How to Test them:  Test support for various audio and video formats.  Test Volume.  For Video test brightness, contrast, subtitles track.  For Audio test mixer, creation of playlist.  Test play, pause, stop, next, previous, close.  For videos, it should play well in landscape or portrait mode of mobile device. Also should play well in full screen or normal mode.31. Mobile Testing Process1. Understand the requirement  BRD  FRD  TDD  DDD  User Stories  Wireframe 2. Create a Test Plan 3. Prepare Test Cases Methodologies used to develop Test Cases:  Boundary value analysis  Equivalence partitioning  Positive or Negative data / Error guessing  Cause effect graphing4. Manual & Automation Testing Tool 1. Manual Testing Tools:  Quality Center  Jira  Rally  Version One  Zephyr 2. Automation Testing Tools:  SeeTest  Perfecto Mobile  MonkeyTalk  Appium  Cucumber 4.1. Mobile Automation Automation is a process, which includes the development of scripts to run the test cases automatically with out manual intervention and to log results. I. Why automaton important?  Regression testing - automation.  Repetitive testing and time consuming.  Reduce time, cost. Increase productivity and test coverage. 19Copyright © 2015 AHASAN ULLAH. All rights reserved

II. When to begin automation?  Depending on the company  Some company can start with automation from the beginning of the project,  Some project will start automation once the manual testing is stable  Other company will start automation end of the project if any financial data required.4.2. Understanding the application (Technology Used). 1. Choosing a suitable tool for the automation. 2. Identifying functions (like login, register new users). 3. Identification of the Scenarios (Test Cases) for automation. 4. Writing user defined functions for Unit functions and scenarios. 5. Adding verification functions (more the merrier). 6. Scenarios should be independent of each other. 7. Combine all the scenarios and run end-end (test suites).4.3. How It Works?  SeeTest is easy to understand by any Tester who is implementing Mobile automation for the first time. A Smartphone or mobile device is attached using a USB cable to a laptop or a desktop running SeeTest Mobile. User starts the Recording and uses an app or navigates within the application and then stops the recording. This automatically records a test script that can be run again, when a new release is available.  The test script is run automatically on both the attached mobile device as well as on the simulator. Results are recorded in the SeeTest environment for analysis. The automated script can be converted and integrated with multiple other existing target test environments like QTP, TestComplete, MSTest, Junit, PERL and Python. Since SeeTest runs on your actual device, you can be sure that the tests represent genuine user experience.5. Execute Test Cases  You can execute the test cases manually using excel sheet or you can execute test cases from Quality Center (QC).  If the company uses JIRA you might have to use excel sheet in order to execute your test cases and then you can logged you defect in Jira.6. Record the Results  How many Pass  How many fail32. Gesture Tour • Tap • Double Tap • Press • Press and Drag • Swipe • Flick33. Start Testing First impression • Is anything confusing? • Does the app feel slow? • Where are you testing it? • Hardware device, network, OS version • Does the app crash or freeze?34. Few Scenarios? 1. Signup and Login Issue - Making sure the application is able to Signup, login or logout with the correct user name and password without any issue. • Positive Testing • Negative Testing 2. Data Handling - f the application Stores data then data handling is one of the most important phases. Means how the application will stores data, how it will manage the data? Is to ensure the Security level of the mobile application. • Credit Card/Input Fields • Equivalence Portioning • Boundary Value analysis • SSL 20Copyright © 2015 AHASAN ULLAH. All rights reserved

3. Operating System issue -If application is able run with any operating system, checking for performance, updates, installation of the application. It is necessary to test the compatibility of the OS. • Test the behavior in all devices 4. Menu Bar and options -It is very important to make sure the menu options easily accessible and interactive. The application should have a proper navigation like the button, scrolling bar etc. Making sure it its user friendly. • UI Testing – Color, menu, style • Application Navigates to every pages 5. Screen Size issues - In this case it is necessary to test the application for all screen sizes so that it can perform well for each size of the mobile Device. 6. Test conditions for touch screen mobiles (landscape and portrait). • How the application should respond on tapping a button or any control provided. • Device that can detect the presence and the point of contact on the display area of the device • Touch sensitive device with finger, and other objects like stylus. If the screen able to zoom in or zoom out • Movement of finger that includes drag (up/down), moves (forward/backward), copy or paste35. Mobile App Glance • Locate the icon on device home or app screen. • Tap the icon to start the app. • Examine the splash screen as the application loads. • Once the app loads, stop and look at it carefully. • Cluttered? Confusing? Lost? Quick and easy? Location and Privacy data? 21Copyright © 2015 AHASAN ULLAH. All rights reserved

Notes:………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………….……………………………………………………………………………………………………………………………………………..……………………………………………………………………………………………………………………………………………..……………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………… 22Copyright © 2015 AHASAN ULLAH. All rights reserved

……………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………… 23Copyright © 2015 AHASAN ULLAH. All rights reserved

……………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………… 24Copyright © 2015 AHASAN ULLAH. All rights reserved

Thank You!Copyright © Information: ALL RIGHTS RESERVED. This book contains material protected under International and Federal Copyright Laws andTreaties. Any unauthorized reprint or use of this material is prohibited. No part of this book may be reproduced or transmitted in any form or by anymeans, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system without express writtenpermission from the author Ahasan Ullah. 25Copyright © 2015 AHASAN ULLAH. All rights reserved


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook