Questions tagged [monkeyrunner]

Monkeyrunner is tool from Android SDK which provides an API for writing programs that control an Android device or emulator from outside of Android code.

Monkeyrunner is a host side application to control a monkey instance on a device.
Monkeyrunner provides some useful helper functions to control the device as well as various other methods to help script tests.

The monkeyrunner tool provides an API for writing programs that control an Android device or emulator from outside of Android code.
With monkeyrunner, you can write a Python program that installs an Android application or test package, runs it, sends keystrokes to it, takes screenshots of its user interface, and stores screenshots on the workstation.

The monkeyrunner tool is primarily designed to test applications and devices at the functional/framework level and for running unit test suites, but you are free to use it for other purposes.

476 questions
0
votes
1 answer

Android : monkey spends a disproportionate amount of events on settings activity

I am new to using monkey on Android and from trying out a few examples I see it's spending most of its events on settings activity. It didn't matter which activity I started my tests from, it ended up just trying to make changes to my settings…
LostPuppy
  • 2,471
  • 4
  • 23
  • 34
0
votes
1 answer

run monkey_recorder.py error: mismatched input 'monkey_recorder' expecting NEWLINE

When I tried to use monkeyrunner command to run recorder, I got the error: mismatched input 'monkey_recorder' expecting NEWLINE. Here is screenshot of my command. enter image description here
0
votes
1 answer

Why android MonkeyRunner can't connect remote android device

    Now, i'm studying how to use the MonkeyRunner to test android devices in the win7, now i have downloaded the latest android sdk, and configured all of the env     There is an android4.4.2 tv set that enabled adbd, no usb debug port, but network…
Harris Huang
  • 83
  • 1
  • 10
0
votes
3 answers

Error in call press or touch methodes from monkeyrunner while reading adb logcat

I'm beginner in monkeyrunner and python, I want to read logcat logs and after processing the logs, send feedback to app by calling press or touch methods, the reading section and press sections work fine separately, but when they comes together…
0
votes
1 answer

Using MonkeyRunner with Java/Eclipse

I am trying to build a program with Eclipse that will send touch events via MonkeyRunner to an Android phone. However, I can't figure out how to get MonkeyRunner to work. I searched for questions similar to mine and found that there were several…
0
votes
0 answers

still unable to setup path environment variable for android view client

does not show the AndroidViewClient folder in the installed directory so unable to locate it, but able to see com-dtmilano and folders after that. but not able to see src and AndroidViewClient folder.
KarunaL
  • 17
  • 2
0
votes
0 answers

Python2.5 Popen object with no PID

I am trying to launch and then stop an Android emulator from a python 2.5 script (to be executed with monkeyrunner), and I wrote the following code: def launchDevice(avd_name, wipe=False): cmd = ['~/android-sdk-linux/tools/emulator -avd %s' %…
user2340612
  • 10,053
  • 4
  • 41
  • 66
0
votes
1 answer

How to execute parallel testing on AVD Android Emulator with Python and Monkeyrunner

I'm executing script test using monkeyrunner on AVD (Android Emulator) sequentially with the code below, and I want to know if it is possible to execute Script Tests in a parallel on all emulators. *listADVtotest is a text file with the names of…
0
votes
1 answer

culebra GUI not scaling at all

i am new to culebra. I have tried to follow the steps on the wiki page by running. culebra -G However, it gives me an oversized image but the command line does not allow me to enter new commands My image is something like this. And my command…
aceminer
  • 4,089
  • 9
  • 56
  • 104
0
votes
1 answer

ANDROID_VIEW_CLIENT with MonkeyRunner

I am trying to implement Android viewclient and Monkeyrunner together as i want to take snapshot load image and compare files using Monkeyrunner and run viewbased scripts using AndroidViewClient , can you please let me know how to do that or if…
Pavan
  • 21
  • 2
0
votes
1 answer

Generic monkey runner scripts

I have multiple test cases, for which i have respective monkeyrunner scripts. The thing i fidn with monkeyrunner is that in my case it becomes device dependant, as i record coordintes for my sequence of events. I have major issues as when i work, I…
0
votes
2 answers

Can any mobile automation tool work on current device session?

I am working on an android app, which has two user flows. Let's call them flow A and B !! Now, flow B is dependent on flow A, means flow B can only be performed after flow A. And, if user performs flow A and then kills the app, he/she won't be able…
star95
  • 111
  • 3
  • 16
0
votes
1 answer

How to use instrument method of MonkeyDevice in python script

The codes in my python script are as below: params = dict() params['package']='com.pp.assistant.test' device.instrument(r"com.pp.assistant.test/android.test.InstrumentationTestRunner",params) But when I run the…
0
votes
1 answer

Unlock screen with command

There is no way to disable the lock screen on my phone, and the screen has to be unlocked in order for my adb/monkeyrunner interactions to work. There is no password or pattern security on the device, but I have to drag the lock and move it to the…
Arya
  • 8,473
  • 27
  • 105
  • 175
0
votes
1 answer

Monkeyrunner doesn't support signal.SIGALRM

Monkeyrunner hangs from time to time. I am using the following code from the web. (Sorry, I forget the source.) This code is used to detect the "Monkeyrunner hang issue" and reconnect. class Timeout(): """Timeout class using ALARM signal.""" …