Automated GUI testing

I’ve been heavily test-driving the development of my game, and have reached the point where I need to start adding tests for the front end. (Honestly, I should have started with that, but it was such a daunting task I put it off.)

It doesn’t appear there’s any way I can directly generate click or keypress events within Unity, so I’m wondering if there’s a good frameworks I can use that will do this from the outside. This framework doesn’t need to be multiplatform. While I intend to compile the game to a variety of platforms, I’m doing my development on Windows, and the tests only really need to run on the development environment. (Running them on other platforms would be nice, in case something breaks across platforms, but it’s much less important.)

Does anybody have any experience writing automated tests for the Unity UI, and if so, how did you do it?

If I understand your question correctly you could simply use some type of macro creator or language (Such as AutoHotkey or AutoIt) to perform testing of your GUI.