'Simulate Bluetooth "Out of range" scenarios for test automation
I've an Android phone which needs to be paired with an embedded device (Qt based application on Linux) which we test. I've automated the basic scenarios using ADB commands, to turn on/off BT on the phone, and check the status on the embedded device using Squish. We need to automate scenarios, where the bluetooth/phone goes Out of Range, and check the same on the device. Any idea on how to simulate this programmatically using ADB or even Appium?
Solution 1:[1]
If you are not using any hardware, like a shield box, bluetooth repeater, moving the phone out of reach, adding a shield material, can you control the bluetooth of the embedded device? Like lower the power, turn it off or control the connection between bluetooth and antenna? Do you need this specific mobile or can you use a simulator with a controlable bluetooth?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | A_Wdgnm |