If you are using AirtestIDE to write scripts, it is recommended to use Python 2.7 syntax.

If you want to use Python 3 syntax, you can install the Airtest and Poco libraries by executing pipinstallpocoui
and pipinstallairtest commands in your local Python environment, then use the Python 3 syntax to write
your own scripts and run the scripts in the local Python environment using the command line.

This will use the log content in the log/ directory to generate a html report and place it to the log directory.
The used language will be English.

Sometimes it is necessary to copy the report to another directory, and/or send it to others for reviewing, however the
generated report cannot be copied directly. Therefore, we do provide an export mode. After adding a
--exportpath_where_to_export parameter, the report will be also completely exported to given directory path.

In the script, you can directly use the Airtest interfaces such as touch() interface which is related to image recognition,
and we also provide some additional interfaces that can make the scripting a lot easier. For example:

At this moment, we do not support batch operations. If you need to use the batch operations, write a python script to
encapsulate them. For more details, please refer to our tutorial,
the command line operation script section.

If you want to use third-party Python libraries, you can specify them in AirtestIDE settings Options - Settings
and provide the path:

If you are using command line to run the script, follow the steps:

if you are using IDE’s command line to execute the script, you need to create system environment variable
IDEPYTHONPATH and set the path to third-party library to it

if you are using the Python command line to execute the script, you do not need to add the python environment path
manually - this is the preferred way to use this method. For more details, please refer to How to use a command line to run a script? above.