-1

i wanted to use monkey,but it did not work!

startAppCommand = 'moneky -p com.example.packageName -c android.intent.category.LAUNCHER 1'
result = device.shell(startAppCommand)
print('the result of '+startAppCommand + ' is ' + result)

then the reslut was :

the result of moneky -p com.example.packageName -c android.intent.category.LAUNCHER 1 is /system/bin/sh: moneky: not found

is there a solution for dealing with the problem? thanks!

Alex P.
  • 28,775
  • 16
  • 113
  • 160
zhang hang
  • 27
  • 5

1 Answers1

1

startAppCommand = 'moneky -p com.example.packageName...

I think it spells monkey, not moneky which is clearly what error message points to anyway:

moneky: not found

Marcin Orlowski
  • 68,918
  • 10
  • 117
  • 136