1

I have a uiautomator test project jar which automate camera and camcoder app. i can execute it from the pc shell command. But can't execute it from APK.

Any solutions... Thanks in advance..

1 Answers1

1

An app cannot run a uiautomator test case, except perhaps on a rooted device, for obvious security reasons.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • @ashish: I have not attempted to run any commands as root. I would assume that you do it however everyone else runs commands as root. At least a few years ago, you would use something like: http://stackoverflow.com/a/6882295/115145 But I have no idea if that is the approach that you would use today. – CommonsWare Jun 15 '14 at 18:29