PerfDogService allows users to conduct automated performance testing on devices connected via WiFi. This guide will walk you through the process of setting up and running a WiFi device test using PerfDogService.
Download the PerfDogService Demo package from the following link: https://github.com/perfdog/perfdog-service-demo-v2.
Apply for a token from the PerfDogService website: https://perfdog.wetest.net/perfdogservice.
Navigate to the directory where you have saved the PerfDogService Demo package.
Edit the config.py file to match your testing environment and requirements.
python cmds.py getdevices
python cmds.py getapps device_id
The output should show that the USB connection is successful.
Update the obtained device ID and app packageName in the test.py file. Change the acquisition method to WiFi mode.
Modify the script to include prompts for unplugging and plugging data cables during the test.
Run the test.py script. When the "Unplug and Plug Data Cable" prompt appears, unplug the data cable. You can also enable/disable related performance indicator types according to your needs. Integrate your automated test logic into this script as needed.
Note: ADB Recognizes Android Devices
To ensure ADB recognizes your Android device, follow these steps:
adb shell ip -f inet addr show wlan0
.adb connect IP_address
command to connect to ADB.adb tcpip
.By following these steps, you can successfully perform WiFi device testing with PerfDogService, allowing for more flexible and convenient performance testing of your applications.