Current location - Quotes Website - Collection of slogans - Pits encountered when Appium wifi connects to a real machine and runs scripts concurrently.
Pits encountered when Appium wifi connects to a real machine and runs scripts concurrently.
Adb device gets the device name.

Adb -s device name tcpip: port number, such as adb -s device name tcpip:5555, can solve the problem that devices cannot be connected.

Adb connect ip: port number, such as adbconnect192.168.0.1:5555.

Then you can see that the device is connected successfully.

Install the application to the specified mobile phone.

Adb-s192.168.0.1:5555 install xxx.apk

The current solution: Take Huawei mobile phone as an example, open the settings, find the startup management (some in the application and notification, some in the battery), and change the appium related programs such as io.appium.uiautomator2.server, io.appium.uiautomator2.server from automatic management to manual management.

If there is a problem after running for a period of time, it depends on the battery configuration and position setting-> Battery->; High power consumption in the background, add all appium-related apps, and allow them to continue running in the background with high power consumption, and then run appium automation test.