Mobile application development is gradually taking a front seat in software development. Mobile testing is day by day increasing its prospects. But still, testers have many questions regarding mobile testing like how to create test cases and test scenarios, how to use various mobile testing tools, etc. In this article, we will cater to test cases and test scenarios for mobile testing.
Below we have curated a list of sample test cases and test scenarios for various types of mobile testing.
Types of Test Cases
- Performance Testing Test Cases
- Functional Testing Test Cases
- Compatibility Testing Test Cases
- Security Testing Test Cases
- Recoverability Testing Test Cases
- Usability Testing Test Cases
Performance Testing Test Cases
Performance testing for the mobile application ensures that your application performs as required under certain performance requirements like a number of users, memory requirements, etc.
In performance testing, we largely need to have test cases for
- Device performance
- Server/API Performance
- Network Performance
Your test cases should deal with the following aspects:
Device Performance:
- Application start-up time
- Memory consumption
- Usage with other Applications
- Battery Time while using the application
- Hardware and Software variation
- An application running in the background
Server/API Performance:
- API calls generated
- Data to and from the server.
- Server downtime
Network Performance:
- Network Speed
- Packet Loss
Also Read: How to create Test cases For Android Application
Few test cases that you can conduct for performance testing are
- Test application performance under different load conditions.
- To test if the network coverage supports the application at various user levels.
- To test the application performance under prevailing client-server configuration setup.
- To detect infrastructure and application bottlenecks that hold back your application from working as expected.
- To test the response time.
- To evaluate the application for planned and unplanned load volumes.
- To evaluate battery time while using application
- To test application during network change from WIFI to 2G/3G/4G or vice versa.
- To test the memory leaks, Camera, battery consumption, resources like GPS.
- To test if the application works well when the device is being moved from one location to another.
Functional Testing Test Cases
In mobile testing functional testing generally deals with testing the user interactions and the transactions. When conducting functional testing, you have to consider a few scenarios
- Business functionality usage of your application like banking, gaming, social or business
- Target audience type like consumer, enterprise, education
- Distribution channel you would like your application to share one.eg. Apple App Store, Google play, direct distribution
Based on your application and requirement you can have following test cases for your testing:
- To verify if the essential and non-essential fields can be easily identified and are displayed on the screen in a distinctive way.
- To test the essential fields for their proper working.
- To test that during an incoming call the application goes to minimized mode.
- To verify your application does not crop up any hindrance for other applications installed on the system.
- To test the application’s compatibility with required versions of the devices.
- To test the application for the proper working during starting and closing.
- To test your application supports required social network options such as posting, sharing, and navigation, etc.
- To test for truncation errors. Any truncation error should not harm your system and should be under a safe limit.
- To test for proper network error message during improper network connection.
- To test the smooth installation of the application provided all requirements are fulfilled.
- To test the auto-start facility based on the requirements.
- To test if the mobile is able to receive and store messages while your application is running.
- To test if your application does not hinder the multitasking capability of the device.
- To verify the required navigation among the related modules
- To test if application restarts at the same point after a system crash.
- To test the availability of the user guide.
- To test any payment gateway transaction support if required by the application.
- To test for required page scrolling scenarios.
- To test newly added functionalities or changes made to the code.
Compatibility Testing Test Cases
Compatibility testing is very important as markets are flooded with various kinds of mobile devices. Your application should be compatible with all these devices to reach wider customers. Compatibility tests your application compatibility with various mobile devices, OS, and a combination of both.
Some of the prominent test cases for compatibility testing are:
- To test user Interface of the application on various screen size.
- To test your application supports various mobile devices.
- Test application’s compatibility with various OS
- Test applications compatibility with a combination of different devices and different OS.
Security Testing Test Cases
In times of increasing cyber-crime, security testing is very important. It checks whether your application fulfills all the security requirements.
Below are some of the most important security testing test cases for mobile apps that can ensure better security of your application:
- To your application withstanding capabilities against brute force attack
- To test the application against buffer overflows and memory corruption cases.
- Test custom created files and test that they do not perform any malicious deeds.
- To test applications immunity against malicious runtime injections.
- To test the well-being of cryptography code.
- To test if your application supports a strong password protection system, and does not allow an unauthorized person to change password.
- To detect dynamic dependencies.
- To test security against SQL injection-related attacks.
- To detect and recuperate from unmanaged code scenarios.
- To test if certificates are verified and whether your application support Certificate Pinning.
- To test the application response from the denial of service attacks.
- To analyze data validation requirements.
- To test the business logic implementation is secured.
- To test file system interactions.
- To test the protocol handlers.
- To test applications immunity tonasty client-side injections.
- To test that keyboard cache is protected from apprehensive data storage.
- To test if regular audits for data protection analysis are supported.
- To test if your application goes through a proper authentication process before sharing sensitive information.
- To test your application is immune to insufficient session expiration.
- To inspect file caching.
- To test for cookies.
- To test whether session management is enabled to prevent unauthorized users to access unwanted information.
- To test different data streams.
Recoverability Testing Test Cases
- Test for Crash recovery
- Verify recovery state of the applicationafter unanticipated crash
- Test for Transaction interruptions.
- Verify application’s transaction handling capabilities during a power failure (i.e. Battery dies or sudden manual shutdown of the device)
- The application recoverability when the connection is suspended.
Usability Testing Test Cases
The usability testing tests whether your mobile application is easy for the users to use. The main objective of usability testing is to whether your application supports intuitive, easy-to-use, and industry-accepted interfaces.
- Test that the buttons on your application are of the required size.
- To test icons consistency with the application.
- To test for the colour coding of the buttons as per the requirements.
- To test for zoom- out and zoom-in facilities support in your application.
- To test the proper acceptance of keyboard input.
- To test the support for undoing an action within a time limit, when any wrong item is touched.
- To test no overloading of contextual menus.
- To test that the text is simple, readable and clearly visible to the users.
- To test for the apt font.
- To test that the users are prompted when they download a large amount of data not beneficial for the application performance.
- To verify the closing and reopening of application from various states.
- To test for language translation facility.
- To test the synchronization of application items as per the user actions.
- To ensure the availability of user manual for the ease of the users.
Conclusion
Usability is all in all a manual testing approach as only a human can understand the usability accepts and ease of using the application. We hope these test cases will help you with your mobile testing endeavor.