摘要 |
A methodology for simulating the pressing and releasing of hardware buttons on a computing device is described. Actual hardware button signals are injected at a low level in a system stack, and the data resulting from those signals propagates naturally through the system and are processed and formatted in the layers of the system stack in a normal manner, eventually being directed to the target software application being tested as an action for that software application associated with the button activity. In this end-to-end approach, button events are simulated by injecting data into the system from the bottom-most layers where raw data may be, e.g., simply the state of the button. Thus, this would be independent of the actual implementation of converting button events to actions. Such simulation helps developers and test teams run real-life tests and scenarios in a reproducible and efficient manner, irrespective of the hardware platform.
|