This tutorial will walk you through the process of setting up and running the new PerfDogService demo for performance testing.
Download the PerfDogService Demo package from the following link: https://github.com/perfdog/perfdog-service-demo-v2. Note that you must use PerfDogService v8.1 or above to support this demo.
Edit the config.py file to match your testing environment and requirements.
Run the following commands to get device information, app list, system processes, supported performance indicators, and network templates:
# Get device list
python cmds.py getdevices
# Get App list
python cmds.py getapps device_id
# Get the current system process list
python cmds.py getsysprocesses device_id
# Get the performance indicators supported by the current device
python cmds.py gettypes device_id
# Get the current user's default and saved network templates
python cmds.py getpresetnetworktemplate
# Stop PerfDogService
python cmds.py killserver
If you need to test a Windows application later, execute the above commands in a terminal started in administrator mode.
Modify and run test.py, test_windows.py, or test_network.py according to your needs. You can enable/disable related performance indicator types and integrate your automated testing logic into these scripts.
By following this tutorial, you can efficiently set up and run the new PerfDogService demo for performance testing on various platforms, including mobile devices, Windows applications, and network tests.