Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android monkey runner scripts

i am tryig to execute a sample python program through monkey runner command prompt and it is throwing an error

Can't open specified script file
Usage: monkeyrunner [options] SCRIPT_FILE

    -s      MonkeyServer IP Address.
    -p      MonkeyServer TCP Port.
    -v      MonkeyServer Logging level (ALL, FINEST, FINER, FINE, CONFIG, INFO,
WARNING, SEVERE, OFF)

Exception in thread "main" java.lang.NullPointerException so any one can guide me how to resolve this one

like image 811
saibabu Avatar asked Sep 26 '11 11:09

saibabu


People also ask

How do I run Monkeyrunner on Android?

Running monkeyrunner You can either run monkeyrunner programs from a file, or enter monkeyrunner statements in an interactive session. You do both by invoking the monkeyrunner command which is found in the tools/ subdirectory of your SDK directory.

How do you run a monkey script?

Using Command Line Install the app first and then execute the below command in the command line. Install APK and Run the application in the device. Go to ../Android_Sdk/Platform-Tools directory. Execute command 'adb shell monkey -p yourpackageneme -v 1000 > app_log.

What is adb shell monkey?

Monkey is a command line tool that runs over ADB shell command line. It generates N number of random events such as random touches, gesture, system level events, etc. and sends to the system or app which you want to test.


1 Answers

scriptfile should be a full path file name try below monkeyrunner c:\test_script\first.py

like image 199
sangjun Avatar answered Sep 27 '22 18:09

sangjun