To test a Windows OS app, AirtestIDE first needs to select the window of such app.

After the window of the app to test is selected, AirtestIDE will actively place the connected window at the top of the stacking sequence (Z-order) when executing the tests, and then perform the corresponding test operation.
It is worth mentioning that we are selecting the window of the app through window handles; After the window of the app is selected, the script will also give it a specific window handle when running. It is important not to close the selected window to avoid errors not finding such handle.

AirtestIDE provides a one-click app embedding connection, as shown in the image:

To improve of script writing efficiency, AirtestIDE will embed the app window into its “devices” window by default. (You can disconnect anytime through the shortcut entry on the top right of the “devices” window)

For some special apps, there may be exceptions when you embed AirtestIDE (such as embedding failure, app being embedded but clicks not responding, etc.)
In these cases, check “Settings” - “Device” - “Windows Embed Backup Method”. AirtestIDE will use the alternate method for connection (also called windows standby connection mode).

After the test script finishes running, the execution steps can be viewed on a report generated by a one-click report generation.
If there is a script running error, the report also shows the possible cause of the error.