(1) Remote debugging solution based on scrcpy

 Table of contents:

"(1) Remote debugging solution based on scrcpy"

"(2) Group control operation of remote debugging solution based on scrcpy"

The renderings are as follows

  • Login page: username and password can be customized

  • Device management - Added search function to the device list (mobile phone brand, system version, screen resolution, others - mobile phone status, enter device name to search) and changed the mobile phone status display (changed to a button)

  • Device Management-Device List-Device Details Page

System keys: return key, desktop home key, task key

Action events: click, long press, slide

Device management - device list - device details page - automation script
1. Currently adapted action events - multi-touch and single-touch (click, slide, long press, input, screenshot)

 2. Execute the script and save the script. The execution results can be seen in the test report (continuous development)

 View test reports (error logs, screenshots, results of each step (time added later))

 Error log display

Device management-device list-device details page-log acquisition

1. Dynamically obtain the running logs of different apps

 2. Set the number of logs to obtain (default 5000)

3. Set the log level

  Device management-device list-device details page-network proxy (you need to capture the domain name to operate mobile phone filtering)

Device management-device list-device details page-screenshot display (capture mobile phone screen) and clear screenshot operations

Device management-device list-device details page-tool set (upload apk, install apk, clipboard)

1. Clipboard

 2. Upload apk

 Device management-device list-device details page-element set (get current element information) 

Device Management-Device List-Device Details Page-Performance (monitor the cpu and memory usage of a specific app (interval 1s)) 

1. Choose to monitor the cpu and memory occupied by that apk. 

 CPU real-time monitoring

Memory monitoring

  • Device management-add device (need to add some mobile phone information and save it to the database)

  • Device Management - Startup Settings (modify startup parameters: image compression quality, resolution, maximum frame) There are parameter descriptions below, submit and then restart the device

  • Interface management-use case management (added use cases can be executed, edited, and deleted)

Execution page - can be added (pre-execution, mid-execution, post-execution, number of threads and number of executions)

Execution page - Add use case operation (single selection operation)

Execution page - display of test case execution results

  • Interface management-use case addition (after the use case is added, the use case management page is displayed and the operation is executed)

  • System management and log management are reserved functions

Remote debugging solution based on scrcpy

Acknowledgments:

Technical post: Scrcpy-based remote debugging solution · TesterHome

Guess you like

Origin blog.csdn.net/paroleg/article/details/115392095