Automation Testing

AirTest Automation Framework For Games and More

By Test Guild
  • Share:
Join the Guild for FREE

Do you need to test hard to automate some applications? Games, for instance?

I just learned about an open-source tool that can make it easier. It’s called AirTest, and I wanted to write a quick post about it.

AirTest is an open-source, test automation tool aimed at hard-to-automate applications like games.

No surprise, really, since one of the largest game companies in the world, NetEase, developed it.

It currently has more than 1,265 stars on GitHub.

For even more cred, it was developed in conjunction with Google.

AirTest Technology Stack

I recently discussed AirTest with Noemi Ferrera, a computer scientist and automation engineer at NetEase who helped create it.

She describes it as a cross-platform, UI test automation Integrated Development Environment (IDE) for games and apps. It provides a wide range of tools for mobile app developers and testers to write fully automated test scripts in a convenient way and in an easy-to-use environment.

Automation testing using AirtestIDE utilizes the advantages of two test frameworks that have image and UI recognition techniques—Airtest and Poco.

AirTest provides cross-platform APIs using image recognition technologies and is compatible with all Android mobile applications and Windows games.

As I mentioned earlier, it also leverages Poco.

AirTest IDE

How is AirTest Different than Other Automation Testing Frameworks?

You may be accustomed to using tools that have visual testing, or use the DOM or object model abstractions. With AirTest you can, within the same IDE, use either approach from many different platforms.  You also write your test in Python.

What about Selenium

AirTest also has a plugin for Selenium that gives you the ability to also record and edit tests for a browser application. Once you set up the path to the Chrome driver you can record or directly code up you selenium test automation script.

Selenium AirTest

What is Poco?

Poco is a cross-engine, UI automation framework that provides engine-independent, powerful APIs that retrieve the UI element hierarchy in an app’s runtime.

Poco supports mainstream game engines such as Unity3D, Cocos2dx, and native Android apps.

AirTest and Game Testing with Unity

I've spoken with a few game developers and none of them seem to use automated testing solution. Mostly because they told me they were not aware of any. Neither was I — until now.

AirTest uses Poco to help accurately locate the position of the elements on a game screen in the actual UI tree. Using Poco access method it's able to test your game engine like Unity3D by using the Poco SDK.

The Poco SDK supports Unity3D version 4 & 5, ngui & ugui, and C#.

If you’re doing Unity game testing, you should try it out.

Sound good?

Give AirTest a Try for Your Automation Testing

Check out AirTests’ Getting Started with AirtestIDE post, which contains some tutorial videos.

Noemi went on to assert that it’s a lovely automation solution; however, it’s not well-known in Europe or in the USA, but hopefully, we'll be able to change that.

  1. What might be interesting if the tool/framework get a WebDriver API wrapper around it. That is, drive/use the tool via WebDriver API (via a RemoteWebDriver server implementation running) rather than their native API/SDK.

Comments are closed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Symbolic AI vs. Gen AI: The Dynamic Duo in Test Automation

Posted on 09/23/2024

You've probably been having conversations lately about whether to use AI for testing. ...

8 Special Ops Principles for Automation Testing

Posted on 08/01/2024

I recently had a conversation, with Alex “ZAP” Chernyak about his journey to ...

Top 8 Open Source DevOps Tools for Quality 2024

Posted on 07/30/2024

Having a robust Continuous Integration and Continuous Deployment (CI/CD) pipeline is crucial. Open ...

Sponsor The Industry-Standard E2E Automation Testing Annual Online Event (Limited Spots Left) - Reach Out Now >>