Pricing

How to Perform WiFi Device Testing with PerfDogService

MASTER WIFI DEVICE TESTING USING PERFDogSERVICE WITH THIS EXPERT'S GUIDE FOR ACCURATE AND RELIABLE RESULTS.

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.

Step 1: Download the Demo Package

Download the PerfDogService Demo package from the following link: https://github.com/perfdog/perfdog-service-demo-v2.

Step 2: Set Up the Python Environment

  1. Install Python3: Download the latest Python3 version from the official website.
  2. Install Python3 libraries: Use pip to install grpcio (1.23.0) and protobuf (3.10.0).

Step 3: Apply for a Token

Apply for a token from the PerfDogService website: https://perfdog.wetest.net/perfdogservice.

Step 4: Open the Software Directory

Navigate to the directory where you have saved the PerfDogService Demo package.

Step 5: Configure config.py

Edit the config.py file to match your testing environment and requirements.

Step 6: Connect Your Device via USB and Obtain Device and App Lists

  1. Connect your device to the computer using a USB cable.
  2. Use the command line tool to obtain the device list and app list:
python cmds.py getdevices
python cmds.py getapps device_id

The output should show that the USB connection is successful.

Step 7: Update Device ID, App PackageName, and Set WiFi Mode in test.py

Update the obtained device ID and app packageName in the test.py file. Change the acquisition method to WiFi mode.

Step 8: Add Prompts for Unplugging and Plugging Data Cables

Modify the script to include prompts for unplugging and plugging data cables during the test.

Step 9: Run test.py

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:

  1. Connect the computer and device to the same WiFi network.
  2. View the WiFi IP address by running adb shell ip -f inet addr show wlan0.
  3. Use the adb connect IP_address command to connect to ADB.
  4. If you encounter an error message saying "The target computer actively refused and cannot connect", restart ADB with 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.

PD网络测试推广
Latest Posts
1Enhancing Game Quality with Tencent's automated testing platform UDT, a case study of mobile RPG game project We are thrilled to present a real-world case study that illustrates how our UDT platform and private cloud for remote devices empowered an RPG action game with efficient and high-standard automated testing. This endeavor led to a substantial uplift in both testing quality and productivity.
2How can Mini Program Reinforcement in 5 levels improve the security of a Chinese bank mini program? Let's see how Level-5 expert mini-reinforcement service significantly improves the bank mini program's code security and protect sensitive personal information from attackers.
3How UDT Helps Tencent Achieve Remote Device Management and Automated Testing Efficiency Let's see how UDT helps multiple teams within Tencent achieve agile and efficient collaboration and realize efficient sharing of local devices.
4WeTest showed PC & Console Game QA services and PerfDog at Gamescom 2024 Exhibited at Gamescom 2024 with Industry-leading PC & Console Game QA Solution and PerfDog
5Purchase option change notification Effective from September 1, 2024, the following list represents purchase options will be removed.