Human Behavior Simulation Module for Mobile App Testing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional mobile automation testing struggles to account for human behaviors, leading to uncertainty and difficulty in reproducing bugs caused by random events such as notifications, calls, and device movements, which can result in undetected errors.
Innovation Solution
A framework that integrates with existing mobile automation test environments to simulate human-like behaviors, generating random events like switching applications, receiving notifications, and rotating devices, allowing for better reproduction and resolution of defects.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If traditional mobile automation testing is used to test mobile application features one at a time, then testing coverage of individual functions is improved, but the ability to detect bugs caused by random human behaviors deteriorates
Solution Approach 1:
The system pre-defines multiple human behavior templates (notification receiving, phone call handling, application switching, device rotation, network switching) and integrates them into the test execution framework before actual testing begins. These templates are prepared in advance to be injected during test runtime, enabling the system to simulate realistic user scenarios without modifying the core application under test.
Solution Approach 2:
A behavior injection module serves as an intermediary between the test execution engine and the mobile application. This module intercepts test execution, injects human behavior simulations at appropriate moments, and coordinates between the automated test script and random event generation. The intermediary enables traditional automation frameworks to incorporate behavioral testing without fundamental restructuring.
2Reliability
If random events are introduced to simulate real-life scenarios, then bug detection capability is improved, but the ability to reproduce bugs deteriorates
Solution Approach 1:
The system implements comprehensive logging and recording mechanisms that capture every injected behavior, device state, and test execution detail. When a bug is detected, the complete test scenario including all random events and their sequences is recorded and can be replayed. This feedback loop ensures that while random events enhance bug detection, full reproducibility is maintained through detailed scenario recording.
Solution Approach 2:
The system creates copies of test scenarios including all injected behaviors, device states, and execution contexts. When a bug is reproduced, the complete scenario copy is preserved and can be replayed deterministically. This copying mechanism allows the system to maintain both randomness for detection and determinism for reproduction by creating replicable scenario instances.
3Reliability
If human behavior simulation module is integrated into existing test environments, then testing realism is improved, but system complexity deteriorates
Solution Approach 1:
The behavior injection module is designed with universal interfaces that work across multiple mobile platforms (iOS, Android) and various test frameworks. A single module handles diverse human behaviors (notifications, calls, switching, rotation, network changes) through unified templates. This multi-functionality reduces overall system complexity by consolidating what could be multiple separate testing systems into one integrated solution.
Data Source
AI summary
A computerized method of testing a mobile application stored on a mobile test device includes executing, by a computing device, a test script stored in memory of the computing device; running, by the computing device, according to the test script, a human behavior simulation module; retrieving, by the computing device, an event list stored in a server, the event list including one or more electronic human behavior simulations; receiving, by the computing device an electronic human behavior simulation from the event list; providing, by the computing device, selected data of the electronic human behavior simulation to memory of the server for recordation; executing, by the computing device, the electronic human behavior simulation on a mobile test device in electronic communication with the computing device; and executing, by the computing device, according to the test script, a test case stored in memory of the computing device on the mobile test device.


