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
1WeTest 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
2Purchase option change notification Effective from September 1, 2024, the following list represents purchase options will be removed.
3Try Out WeTest UDT In-Vehicle Infotainment Testing Solution EXPERIENCE THE POWER OF WETEST UDT, THE ULTIMATE IN-VEHICLE INFOTAINMENT SOLUTION FOR VEHICLE INDUSTRY.
4Try Out WeTest UDT: The Ultimate Cloud Testing Solution for Developers EXPERIENCE THE POWER OF WETEST UDT, THE ULTIMATE CLOUD TESTING SOLUTION FOR DEVELOPERS, AND TRANSFORM YOUR TESTING PROCESS.