Airtest and Poco related FAQs¶
What are the differences between Poco and Airtest?¶
The Airtest framework is based on image recognition. Following demonstrates how to record script using the Airtest framework.
The Poco framework uses UI controls to detect the elements. Following demonstrates how to record script using the Poco framework.
How to initialize Airtest and Poco?¶
When you write script in AirtestIDE, the Airtest framework does not require any another import to be done while the Poco framework needs to insert the piece of initialization code in order to use it.
If you write a script that needs to run from command line or use the Airtest framework as an independent library, refer to Airtest documentation for more information.
Why I cannot successfully paint the UI tree after I select Poco mode?¶
Poco currently supports both Unity3d and Cocos2d game engines and native Android apps. To get started with Poco, you first need to access the SDK
Except the native Android app that can be used without accessing the SDK, all other engines need to implement the access to SDK to obtain the UI hierarchy information. Read the documentation mentioned above for more details.
Poco-SDK for H5 and Cocos-lua is still under development but it comes in near future.
Why I cannot see the UI tree after accessing the SDK and/or using native Android app?¶
When Poco is initialized, the relevant APK will be installed to the device. Please, ensure that the mobile device allows the installation of the relevat APK. Some models of mobile phones need to turn on Allow apps to be installed via ADB option in the device settings.
Is it code completion supported?¶
The code completion is still in experimental phase and not fully supported yet.