corona gui automation test

Hi all,

I’m newbie to corona.

I’m investigate automation test on corona game focus on Android devices.

I want to simulate some user actions on game: such as touch, type…

Android has UI testing lib: uiautomatorviewer, uiautomator lib for this purpose.

http://developer.android.com/tools/testing/testing_ui.html

My question is: can we use those lib for corona game.

Thanks.

Linh.

Most GUI test automation tools rely on hooks into the standard UI libraries which Corona SDK doesn’t use (it runs in an OpenGL window) so they wont work.  We’re always on the lookout for ways to automate GUI testing but haven’t found anything that works very well yet.

Hi,

There is tool called MoneyRunner for Android.  It lets you simulate touch events which can interact with the OpenGL view.  Once you’ve simulated all the user inputs that you want, you can then take a screenshot of the device and compare with with a known good screenshot.

http://developer.android.com/tools/help/monkeyrunner_concepts.html

In the following, notice the “touch” and “type” apis which will let you simulate touches to the screen and types from the keyboard.

http://developer.android.com/tools/help/MonkeyDevice.html

Most GUI test automation tools rely on hooks into the standard UI libraries which Corona SDK doesn’t use (it runs in an OpenGL window) so they wont work.  We’re always on the lookout for ways to automate GUI testing but haven’t found anything that works very well yet.

Hi,

There is tool called MoneyRunner for Android.  It lets you simulate touch events which can interact with the OpenGL view.  Once you’ve simulated all the user inputs that you want, you can then take a screenshot of the device and compare with with a known good screenshot.

http://developer.android.com/tools/help/monkeyrunner_concepts.html

In the following, notice the “touch” and “type” apis which will let you simulate touches to the screen and types from the keyboard.

http://developer.android.com/tools/help/MonkeyDevice.html