AltUnity Tester Editor

The GUI refers to the “AltUnityTesterEditor” window that is displayed when adding the altUnity Tester package in Unity.

Editor Window

In the following sections you can see a breakdown of all the sections in the GUI.

Tests List

Tests List

  • displays all the available tests from the project folder

  • user can select what tests to run by checking the checkbox next to their name

  • user can either check each test individually or check the whole class of tests

  • tests that passed have a green checkmark while tests that failed are shown with a red x icon

  • Test Log Summary: contains a log for why a test has failed (see right side of screenshot)

Build Settings

Build Settings

  • Proxy host

    Refers to the host the AltUnity Proxy is listening on.
    You can change this value and make a new game build if you want to use another host.

  • Proxy port

    Refers to the port the AltUnity Proxy is listening on.
    You can change this value and make a new game build if you want to use another port.

  • Company Name: company name used for the game build (same with Unity’s Player Settings)

  • Product Name: the company name (same with Unity’s Player Settings)

  • Input visualizer

Lets you see where on screen an action (e.g. swipe or click) happens.
The action position is marked on the screen with a red circle.

To activate this option before build check the “Input visualizer” checkbox.

Input Visualizer Disabled Input Visualizer Enabled
noinputvisualizer inputvisualizer

You can also activate this option from within the test using the following code:

altUnityDriver.FindObject (By.NAME, "AltUnityRunnerPrefab").SetComponentProperty("AltUnityRunner", "ShowInputs", "true");
  • Show popup

If this option is checked, it will display the “AltUnityTester” popup in game containing the text “Waiting for connection on port 13000”.
That means the build contains the AltUnity Tester.
Popup will disappear once the tests are started.

popup

  • Append “Test” to product: will add “Test” to the product name

  • Keep ALTUNITYTESTER symbol defined: will add “ALTUNITYTESTER” to the scripting define symbols. This is usually done automatically when entering in playmode or building the application. This option is not recommended if you are developing your application but can be used if you are on a branch where you only write tests.

Scene Manager

Scenen Manager

  • The Scene Manager pane displays a list of the Scenes from your Project. Checked scenes are included in the build.

  • Unity uses the list of Scenes to determine the order that it loads the Scenes in. To adjust the order of the Scenes use the action buttons associated to each scene to move them up or down the list.

  • Display scene full path: displays the full path where the scenes are located

  • Add Scene: displays all the scenes in the project. User can add scenes to the “Scene Manager” from the “Add Scene” popup

  • Action buttons (add / select / remove scenes)

Build & Run Settings

Platform Settings

../_images/AltUnityWindowAndroid.png

The Android Bundle Identifier field: fill in a valid bundle ID.

The Build Location field: The build path for the instrumented Unity application.

  • By default, the Output Path is a folder with the same name as your game.

Build Settings

* Build Only

Run Settings

* Play in Editor
* Build & Run

Run Tests Settings

* Run All Tests
* Run Selected Tests
* Run Failed Tests

Note

Run Tests does not use the options set in the Platform section.