AltUnity Tools is a UI test automation framework for Unity apps. It helps you to achieve end-to-end functional testing using your preferred test automation framework and programming language. It consists of AltUnity Tester, an open-source asset downloadable from the Unity Asset Store, AltUnity Inspector, a desktop app for Windows and Mac.
About AltUnity Tester
It’s an open-source UI driven test automation tool that helps you find objects in your Unity game and interact with them using tests written in C#, Python or Java. You can run your tests on real devices (mobile, PCs, etc.) or inside the Unity Editor.
AltUnity Tester 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 AltUnity Driver to connect after starting the application.
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 that a Unity element has
● simulate any kind of device input
● manipulate and generate test data
● get screenshots from your Unity Game
● instrument your game and run C# tests from within the Unity Editor using the AltUnity Tester window
● run Python or Java tests using your favorite IDE and run them against the game running on a device or inside the Unity Editor
● integrate with Appium tests for the ability to interact with native elements
● visualize input actions during test execution
● see test results and reports inside the Unity Editor
About AltUnity Inspector
Inspect games instrumented with AltUnity Tester. AltUnity Inspector’s main goal is to allow games to be explored and inspected outside of the Unity Editor, on the platform the game was built for. This approach is very similar to the Appium Inspector or to the DOM Inspector of a web browser.
Key features:
- fully functional without the Unity Editor
- access the game objects and their properties without access to the source code
- display the scenes of the game live
- use mouse, keyboard, touchscreen and joystick actions to interact with the game from Inspector
- load different scenes
- control the speed of the game
If you want to understand more about how AltUnity Tools are working, check this Demo Video!