FAQ

On what platforms can I run tests with AltUnity Tester?
Answer: PC, Mac, Android, iOS and Unity Editor; support for WebGL and Consoles is work in progress.

What programming language can I use to write tests?
Answer: C#, Python and Java.

Can AltUnity Tester be integrated with Appium?
Answer: Yes, AltUnity Tester can be used alongside Appium. Appium allows you to access the native objects and AltUnity Tester can be used to access the Unity objects. For more info regarding how to run tests together with appium check Running tests together with Appium.

What versions of Unity does AltUnity Tester work with?
Answer: AltUnity Tester works with Unity 2018.1 or higher. If you encounter any issues we'd like to hear about them. You can raise an issue or join our community on Discord or Google Groups.

Can I use AltUnity Tester to run tests using device cloud services?
Answer: It works with some of the cloud services. We tried it with Bitbar Cloud and AWS Device Farm. These give you access to a virtual machine or a Docker container that has a cloud device attached, where you upload your tests, configure your environment and run your tests. More info about this here: Running tests using device cloud services.

Do I need access to the source code of the Unity App to write tests?
Answer: In order to run tests using AltUnity Tester you require an instrumented build of the Unity App. To create an instrumented build of the Unity App you need to import the AltUnity Tester package in Unity Editor.

I don’t have access to source code, but I do have access to an instrumented build. How can I begin to write tests?
Answer: We’ve published AltUnity Inspector, which allows you to inspect the game objects outside the unity editor without access to the source code. More information about AltUnity Inspector can be found in this article.

Troubleshooting

I get a “waiting for connection on port 13000” popup message, when I try to run the tests. How do I get rid of it?
Answer: This message is a good thing, it tells you that the game is ready and you can start running your tests.

I get the error: Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included or the current platform.,
Answer: You get this error due to multiple imports of Newtonsoft.Json.dll library. You can remove the Newtonsoft.Json version from AltUnity Tester by deleting the JsonDotNet folder Assets/AltUnityTester/ThirdParty/JsonDotNet.

How can I use the Input from AltUnity Tester if my project is using Assembly Definitions?
Answer: In order to fix this issue you have to:
  1. Create .asmdef files in these directories (3rdParty, AltUnityDriver, AltUnityServer)

  2. Reference other asemblies in AltUnityServer assembly

  3. Reference AltUnityServer assembly in Project-Main-Assembly