Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airtest-mobileauto

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airtest-mobileauto

A robust, object-oriented, multi-process mobile app control framework based on AirTest, designed for stable and compatible debugging and automation of devices and apps. Ideal for tasks such as game automation in titles like Honor of Kings, with enhanced stability features including connection checks, automatic retries on failure, and automatic restarts for continuous operation.

  • 2.0.13
  • PyPI
  • Socket score

Maintainers
1

AirTest Mobile Automation

AirTest Mobile Automation is an object-oriented, multi-process control framework for mobile apps based on the AirTest framework. It is designed for stability and compatibility, making it ideal for automating tasks in games like Honor of Kings.

Features

  • Enhanced Stability: This framework enhances the reliability of testing and automation by implementing rigorous connection status checks and intelligent automatic reconnection mechanisms. Instead of throwing errors upon failure, it encapsulates AirTest functions to attempt reconnections, ensuring continuous operation even in the face of transient network issues or screenshot retrieval failures. In rare cases, such as with iOS devices, it may prompt for a physical reconnect of the device to be recognized by tidevice list. Additionally, it addresses and corrects issues with the start_app function that could occur on certain Android systems, providing a smoother and more resilient automation experience.
  • Automated Operation: Capable of fully automated processes with unattended operation. In case of errors, it automatically restarts the app or the control endpoint, such as Docker or an Android emulator.
  • Time Management: Utilizes the UTC/GMT+08:00 time zone for task scheduling aligned with Chinese game refresh cycles.
  • Formatted Output: Displays information in a formatted manner, e.g., [MM-DD HH:MM:SS] info.

Modules

Device Management ( deviceOB )

Handles device management in an object-oriented approach, supporting various clients and control endpoints.

ClientsControl EndpointsManagement Capabilities
BlueStacks / LDPlayer/ MuMuWindowsStart, stop, and restart emulators
DockerLinuxStart, stop, and restart containers
iOSMacReconnect with tidevice, restart iOS
USB-connected Android phonesALLReboot Android system
WIFI-connected phonesALLHot reboot Android system

APP Management ( appOB )

Manages the opening, stopping, and restarting of apps.

Tools ( DQWheel )

  • A utility for multi-process support based on the file system, including synchronization, broadcasting, file management, and enhanced time management.
  • Utilizes files and dictionaries to store and retrieve image coordinates, reducing the time to locate element coordinates repeatedly. It also allows for selecting specific positions, such as the least proficient hero in Honor of Kings based on proficiency.

Development Examples

Below are some examples of development scripts that demonstrate the capabilities of the project.

Acknowledgements

The historical versions of this script, namely WZRY_AirtestIDE_XiaoMi11@cndaqiang, WZRY_AirtestIDE_emulator@cndaqiang, and WZRY@cndaqiang have also been instrumental in the development process.

License

This project is licensed under the MIT License - see the LICENSE file for details.

© 2024 cndaqiang. All rights reserved.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc