This update was mostly focused on refactoring the project to make it easier in future to implement new features. We also make the C# driver to be independent from Unity in case someone wants to write C# tests but doesn’t have Unity.
We changed how we find objects in the scene. Now, aside from name, components and id, you can also find objects by their layer or tag. We added a new way of giving the path to the objects, in an xpath style making easier to find objects. We kept the old methods of finding objects but we marked them obsolete and they will be removed in 1.6.0.
New command SetText was added which will set the text of the object. GetText and SetText will now work also with TextMeshPro.
Now when building with AltUnityTester you will notice a pop up that will display the version and the port on which it’s running. The purpose of this is to have an easier way to see if the build contains AltUnityTester or not. It also adds the ability to reset the server manually if somehow the server crashes during testing.
Thanks to Ka3u6y6a who also added GetText and SetText commands, now you can see the clicks and swipes on the screen represented as a red dot.
- Improved the visibility of information on a smaller window size.
- Improved test results visualisation
- Added icons
- Now double clicking on test will open the test file
You can access the documentation for AltUnityTester 1.5.0 here https://altom.gitlab.io/altunity/altunitytester. We will update this as new features come along and we’ll keep the older versions which still have relevant information.
In the next couple of weeks we will release an example of multiple devices using https://assetstore.unity.com/packages/essentials/tutorial-projects/tanks-reference-project-80165 as sample project.