-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.
  • 30,437
  • 17
  • 118
  • 169
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
  • 72,056
  • 11
  • 123
  • 141