AltUnity Tools

A tool that allows users to identify objects in a game or application developed with Unity 3D.

AltUnity Tester

AltUnity Tester is an open-source UI driven test automation tool that helps you find objects in your game and interacts 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.

Unity Tool For UI Test Automation

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

Demo

See below our demo test automation for a unity game, where we used AltUnity Tester and two other testing tools, AltWalker and TurnTable, to simulate a users’ behavior.



Setting up UI test automation

The AltUnity Tester package contains the AltUnityDriver module that opens a TCP socket connection on the device running the Unity application and gives access to all the objects in the Unity hierarchy.

Using this TCP socket connection and the actions available in the AltUnity driver, we can run tests against the Unity app.

Short video tutorial on how AltUnity Tester works:



Open source unity tool

AltUnity Tester is free and it can be downloaded from Unity Asset Store.

It is open-source, you can find the code here. Read the documentation for more info.


AltUnity Inspector

We want to allow testers to explore and inspect games outside of the Unity Editor.

Key features: 

  • Interact with a game remote 
  • Display live the screen of the game
  • Get information about all the objects from the scene and their components 
  • Change scene and time scale

For questions and support, join our Gitter room: https://gitter.im/AltUnityTester