i want to run a python stability test-case with monkeyrunner
however i want to run the script without having the mobile plugged to the PC (because what is measuring is battery life)
Normally I use "monkeyrunner mytest.py "
So the idea would be executing the py script with a monkeyrunner inside the phone.Is that possible?
You can use two approaches:
At first you should run command:
adb tcpip <port>
Then on your device you should check what ip address is assigned to your device (you can check this in the Settings).
After that you have to execute command:
adb connect <your_ip>:<port>
And now you can run your monkeyrunner script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With