Overview
AltTester® Unity SDK is an open-source UI driven test automation tool that helps you find objects in your Unity application and interact with them using tests written in C#, Python, Java or Robot Framework.
You can run your tests on real devices (mobile, PCs, etc.) or inside the Unity Editor.
Key features
find elements and get all their (public) properties: coordinates, text, values, Unity components, etc.
use and modify any of the (public) methods and properties of a Unity element
simulate any kind of device input (support for Input Manager and Input System)
manipulate and generate test data
get screenshots from your Unity App
instrument your app and run C# tests from within the Unity Editor using the AltTester® Editor window
run C#, Python, Java or Robot Framework tests using your favorite IDE and against the app running on a device or inside the Unity Editor
integrate with Appium tests for the ability to interact with native elements
support for Browserstack on Android and iOS
see test results and reports inside the Unity Editor
generate XML test report from the Editor Window
run tests concurrently on different devices
How it works
AltTester® Unity SDK framework contains the following modules:
AltDriver
AltTester® Package (Unity)
AltTester® Server
AltTester® Unity SDK is used to instrument your Unity App to expose access to all the objects in the Unity hierarchy. The instrumented Unity App opens up a Web socket connection on the device running the Unity application and waits for an AltDriver to connect after starting the application.
AltDriver module is used to connect to the instrumented Unity App, access all the Unity objects and interact with them through tests written in C#, Java or Python.
AltTester® Package contains the AltTester® Editor window which is the GUI used for instrumenting a Unity app and running C# tests directly from Unity Editor.
The AltTester® Server module is used to create the bridge between the tests and the instrumented Unity App. It acts as a websocket server that facilitates communication between AltDriver (tests) and AltTester® Unity SDK (instrumented Unity App).