Best Practices in Mobile Game Testing

Hello everyone, automating tests for your mobile application is the best way to increase the effectiveness, efficiency and coverage of your software testing.Ā The test automation for mobile has been considered a critical factor for big mobile app companies but for the small ones this is very expensive. Small companies want to grow fast so automation is too expensive for them.

Black box – For game tests you should know that you need focusesĀ on the functional and overall playability aspects of the game. Examples: graphics, special effects, animations, colours.

White box –Ā focuses on the architectural, integration and systemic aspects of mobile game. Examples: how third-party components, databases, social media/external entities, as well as graphics/game engines, audio play and so on are integrated in to your game.

It is typically recommended to build test scripts that know how game is progressing, what kinds of faulty states could there be, and also focus on image recognition. As many graphics cannot be recognized as control mechanism ā€“ buttons, menus, sliders etc. ā€“ image recognition will help to identify those that are meant for controlling (and not just as a graphical element).

Compatibility testing is all about making that game compatible across different devices.Ā The typical misconception with compatibility testing is that it will be only done with the final version of the game. If compatibility testing is done during all development releasesĀ ā€“ regression testsā€“ it can help to reveal incompatibility issues with any parts of the game, its third-party components or integrations with those actual devices that end-users use. This is very important to get the game working robust and well across all possible device variants ā€“ hardware and software. (But remember that will be impossible tests in each device and version of android)

Performance testingĀ Many games are by default developed (and tested) on high-end devices, without any chance to get decent performance level on low-end devices. For this reason, try to understand what are the devices/versions of OS most used for your clients. This way you can focuses more in devices that your clients are using.Ā For example, take a look at Gamebench. It can help game developers to understand those potential bottlenecks in performance, reveal unused potential with CPU and GPU resources, and help to push the boundaries of Android gaming and visuals, without forgetting the most important thing ā€“ a need to test the game on real devices. YouĀ should consider creating tests which last for hours to observe how well the gameĀ as well as how much of battery is usedĀ during long usage. To determine if you gameĀ will be able to run successfully for a sustained duration under heavy load, Load/Stress tests can be used. The performance tests will measure how responsive your gameĀ can be on a real device.

Localization testing becomes highly important when your gameĀ is targeted for the global markets. The word ā€˜globalā€™ means your gameĀ needs to be ā€˜localā€™ for everyone.Ā When your game titles, texts and contentĀ needs to be translated and tested with devices in multiple languages, these types of tests can be easily performed automatically (with help of cloud-based device access and test automation) to change the language of devices, and even do it again with the same test runs. The problems layouts can be easily picked from screenshots.

Load testingĀ tests the limits of a system, such as the number of players on aĀ server, the graphic contentĀ on the screen (e.g. frames per second, FPS), or memory consumption (allocation and deallocation of it). In this category you can count inĀ multi-player testing as it can involve several different scenarios to be tested.

Multiplayer –Ā A need to test multi-player abilities is there and is naturally more challenging and requires the other end to perform as a real counterpart. For example, typical case is that the game communicates with backend server. In these cases, connectivity is essential and the synchronization between backend and devices that need to get information about the gameplay.

Real occurring events on background ā€“Ā Interrupts, battery consumption, how charger effects to overall performance and usage. These all have significant impact on user experience ā€“ and good entertainment level.



**Don’t forget to test:

UI layouts and elements:Ā All games are typically targeted for maximal set of different screen resolutions and different types of screens. Regression testing should be done each and every time when UI layout changes to ensure that game works.
Menu structure and functions:Ā Testing menu structured, functionality and correct behaviour
Screen orientation:Ā both landscape and portrait modes
Screen resolution:Ā There are lots of screen resolutions especially on Android and typically autoscale can help game developers
Social Integrations:Ā In many games, it is essential to be able to share results acrossĀ your ecosystem, friends or just for yourself.
Security:Ā identifying third-party code, its vulnerabilities, and license restrictions are very often neglected by game devs.


I summarised the most important and not duplicated parts. If you have any questions, just write below on the comments. Thank you šŸ™‚