Android - Issue In Controlling Builtin App Using Robotium
I am writing an android testing application which automates testing on the device. I am targeting facebook as my base application and writing an app using the Robotium framework i
Solution 1:
I don't think you can do that. However you might be able to make your own modified version of the built-in application and use that instead (if you can make it default and so not have to go through a selection screen), or root a phone and break its security model to use as an automated testing device.
Solution 2:
You said
a layer between the OS and Robotium.
If you were ok with that, there is the black-box UIAutomator-Framework by google, which might be able to do that. Additionally,
You might want to use monkeyrunner like this:
$ monkeyrunner >>>from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice>>>device = MonkeyRunner.waitForConnection()>>>device.touch(200, 400, MonkeyDevice.DOWN_AND_UP)
You can also do a drag, start activies etc. Have a look at the api for MonkeyDevice.
(from this SO answer).
Post a Comment for "Android - Issue In Controlling Builtin App Using Robotium"