Unity UI Test Automation Framework
This version of framework is supported by Unity 2017 and later.
Comparing to the previous version it is integrated with Unity PlayMode Test Runner instead of custom runner implementation. Note that running tests in platform players (for example Standalone, Android, or iOS) from command line is not currently supported by Unity. https://docs.unity3d.com/Manual/testing-editortestsrunner.html
If you would like to execute tests from command line or write tests for older Unity versions check out previous version of the framework https://github.com/taphos/unity-uitest/tree/1.0
API is designed to be readable as a natural language so it can be understood by non technical people too. All API calls are designed to wait until its function could be executed with a certain timeout.
Press() - Simulates a button press. If an object with a given name is not found in the scene, it waits for it to appear.LoadScene() - Load new scene and wait until scene is fully loaded.AssertLabel(, ) - Asserts text value, waits until value is changed.WaitFor() - Generic method to wait until given condition is satisfied.WaitFor(new LabelTextAppeared(, )) - Wait for label with given text to appearWaitFor(new SceneLoaded()) - Wait until scene is fully loadedWaitFor(new ObjectAppeared()) - Wait for object with given name to appearWaitFor(new ObjectAppeared()) - Wait for object with component of given type to appearWaitFor(new ObjectDisappeared()) - Wait for object with given name to disappearWaitFor(new ObjectDisappeared()) - Wait for object with component of given type to disappearWaitFor(new BoolCondition()) - Generic condition is satisfied when a given bool expression becomes trueCheck out my blog post for in depth description http://blog.filippkeks.com/2016/11/21/why-game-developers-are-afraid-of-test-automation.html Have fun testing ;)
Filipp Keks
No open issues yet, or sync has not completed.