Search Unity

[New Release] We extended our test automation framework with a new tool - AltUnity Inspector

Discussion in 'Testing & Automation' started by timeapusok, Feb 25, 2021.

?

Is end-to-end test automation part of your game development process?

  1. Yes

  2. No, but we're planning to focus on test automation in the near future

  3. No

Results are only viewable after voting.
  1. timeapusok

    timeapusok

    Joined:
    Apr 15, 2020
    Posts:
    59
    Some years ago, my team at Altom started working on a few projects developing automated scripts for Unity apps. We were struggling to run UI driven tests on real devices. Looking for a solution, we started developing AltUnity Tester. This open-source asset helps game development teams find Unity objects and interact with them using C#, Java or Python tests. It allows running tests inside the Unity editor or on real devices (mobile, PC, etc.).

    Recently we’ve extended AltUnity Tester with a desktop application, called AltUnity Inspector. It provides an easy way to visualize the object hierarchy, and get clear details of all the elements and properties needed for test automation. It also allows users to load different scenes of the game and interact with them using keyboard, mouse, touchscreen and joystick actions.

    We are still surprised that many teams in the game development industry are not using automation. We know the process can be time-consuming and tedious, and we are trying to solve some of these problems through our tools. To achieve this, we need as much feedback as we can get.

    We’d really like to hear about your thoughts regarding test automation for Unity apps. If you’ve already added test automation to your Unity development process, or thinking, it might help, try out our solution and let us know if it’s working for you.

    You can find more details and try AltUnity Tools for free here: https://altom.com/testing-tools/altunitytester/?id=unity

    Join our Discord server for more discussions regarding test automation for Unity: https://discord.gg/TVV8cW8mC7
     
  2. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
    Hi, and in advance: thanks for the effort your team is putting into the subject.

    As a developer looking for automated ui-tests which can be integrated into a CI pipeline, I would like to know what framework is the right choice for our project.
    From a glance at the surface, Unity Test Framework (https://docs.unity3d.com/Packages/com.unity.test-framework@1.0/manual/index.html) appears to address the same problem.
    Could you highlight the differences between Unity Test Framework and AltUnity Tester?
     
  3. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
  4. timeapusok

    timeapusok

    Joined:
    Apr 15, 2020
    Posts:
    59
    Hey,

    I'd say the main difference is that the Unity Test Framework is suitable for unit and integration tests. Whereas AltUnity Tester is for end-to-end, UI test automation.
    Some of the users from our community use both the Unity Test Framework and AltUnity Tools.
     
  5. timeapusok

    timeapusok

    Joined:
    Apr 15, 2020
    Posts:
    59
    We have a new release! AltUnity Inspector 1.2 can now be downloaded!

    We added some new features:
    - Objects hierarchy can be searched by every selector from AltUnity Tester (name, text, id, tag, layer, component, path). This allows you to validate your selectors before running tests.
    - Object path is displayed on the element details area. This can be copied directly to By.PATH method to quickly locate elements.
    - AltId, a unique object identifier generated by AltUnity Tester is also displayed and can be used with the By.ID selector.

    For more details about this release check out this article: https://altom.com/altunity-inspecto...-to-running-tests-to-validate-your-selectors/

    Some of the new features are only supported by AltUnity Tester 1.6.4 and 1.6.3 so we recommend to use Inspector with an app instrumented with the latest version of AltUnity Tester.

    AltUnityInsoector-NewVersion-DemoSearch.gif
     
  6. timeapusok

    timeapusok

    Joined:
    Apr 15, 2020
    Posts:
    59
    AltUnity Inspector 1.3.0 was just released!

    New Features:
    • Loading scenes both single and additive is now possible. Multiple scenes can be visualized both in the screenshot and objects hierarchy area.
    • The 5 latest connections are saved and users can choose from a list instead of introducing the IP and port numbers every time they connect a new device.
    Other improvements:
    • refactored click, tap and press commands to make AltUnity Inspector more responsive.
    • fixed display issues related to fields and properties from the third column.
    • the hierarchy now remains scrolled into the expected view after scenes are changed or AltUnity Inspector is refreshed.
    More details about this release can be found here: https://altom.com/no-vacation-for-altunity-tools-weve-got-new-releases/