Pricing
    Intl - English
  • Log in

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
1Simplifying Device Integration with UDT-Desktop This article explores how UDT-Desktop simplifies device onboarding and optimizes the testing ecosystem.
2Tailored POC Excellence: A 4-Step Guide from Trial to Custom Deployment with WeTest UDT A 4-Step Guide from Trial to Custom Deployment, by following WeTest's POC process.
3End-to-End POC Success: Expert-Driven Implementation & Tailored Support for Automated Testing with WeTest UDT WeTest UDT's comprehensive POC support system offers tailored solutions, seamless communication, and continuous technical collaboration.
4Customized Permission System: Granular Control for Secure, Scalable Testing Workflows in WeTest UDT WeTest UDT provides a highly customizable permission system, enables enterprises to manage their testing environments with ease.
5Customized Permission System: Enterprise-Grade Access Control for Secure & Efficient Testing with WeTest UDT WeTest UDT's permission system helps businesses streamline their automated testing workflows, making testing easier, faster, and more secure.