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
2 answers

How to use MonkeyRunner and Robotium together (not separately!)

How to use MonkeyRunner and Robotium together (not separately!) for testing my Android app
0
votes
0 answers

Fail when run Monkeyrunner

Let me specify my question. I installed Jython, PyDev, configure Jython interpreter in Eclipse. Created a PyDev project with PyDev Module, and copypaste source code from http://developer.android.com/tools/help/monkeyrunner_concepts.html (of course…
0
votes
1 answer

Errors importing other modules in monkeyrunner

I'm trying to import PIL with monkeyrunner import re import math import os from PIL import Image from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice import commands import sys but I keep getting an error: ImportError: No module named…
Micro
  • 10,303
  • 14
  • 82
  • 120
0
votes
1 answer

How to find the number of child for a parent in Androidviewclient

I am trying to automate the Bluetooth test cases. After scanning, i wanted to get the list and count of Available and paired devices. Further check weather my ref device name exist in DUT list. Is there any way through which i can display and…
user3548662
  • 29
  • 1
  • 7
0
votes
1 answer

Configure AndroidViewClient and Monkeyrunner on macOSX

I am trying to install AndroidViewClient but there are a lot of problem. I download it on the github of dtmilano. I am on Mavericks an i am new with python.. I know how to use Monkeyrunner but since I download AndroidViewClient, I am totally lost…
Androzr
  • 65
  • 1
  • 10
0
votes
0 answers

In Androidviewclient(version 3.2.0), Is there any api to get unique id for text

I am new to automation in androidviewclient. Please help me by answering following queries: In Androidviewclient(version 3.2.0), Is there any api to get unique id for text. Is there any documentation available for AndroidViewClient (3.2.0…
user3548662
  • 29
  • 1
  • 7
0
votes
1 answer

MonkeyRunner generates zombie processes

I am using MonkeyRunner for Android Automation Testing on a real device and run overnight tests. During one of those extensive automated tests I have discovered that whenever MonkeyRunner takes a screenshot, a zombie process is created on the…
gbudan
  • 889
  • 7
  • 17
0
votes
1 answer

Use Monkeyrunner for test complicated app

I am new in testing android app. I select monkeyrunner way for testing android app. I don't know python but i reading this. I have a complicated app, my app have a class that extend application and another activity for splash and then my app go to…
user3209380
  • 169
  • 1
  • 2
  • 14
0
votes
1 answer

Running a sqlite3 directly from ADB shell (for monkeyrunner)

I'd like to run a sqlite3 query from a monkeyrunner script of mine. Ideally I'd like to be able to write code like this: device = MonkeyRunner.waitForConnection() sql_query = "select * from myTable;" device.shell("sqlite3 /path/to/db/ --sql " +…
will
  • 3,103
  • 4
  • 25
  • 30
0
votes
1 answer

How to verify app launched using monkey runner?

Is there a way to verify app launched successfully using monkey runner? Other than using image verification. May be using dumpsys?
user3018934
  • 121
  • 2
  • 6
0
votes
1 answer

How to take/save landscape snapshot using monkeyrunner on android?

Below is the way I am taking the screenshot and saving it on my local drive result = device.takeSnapshot() result.writeToFile('/Users/automation/test.png','png') This saves the image as portrait is there a way to save as landscape?or the…
user3018934
  • 121
  • 2
  • 6
0
votes
1 answer

How to get Eclipse External tools setup for Monkeyrunner

I have started to use monkeyrunner or attempting. I have setup eclipse as described in this document http://forum.xda-developers.com/showthread.php?t=2566234 however every time I run my script I get the following error. Can't open specified script…
user2659717
0
votes
3 answers

Test Android Application Using MonkeyRunner

I have to make an application that tests an android application using MonkeyRunner tool.I have read android developer documentation.but still dont know how to work with monkey runner.please help me. I have installed the application on emulator via…
0
votes
1 answer

Android tool MonkeyImage does not support jpeg?

i have written a script in python using monkeyrunner: image=device.takeSnapshot() image.writeToFile('filename.jpg','jpg') but i have got a null image like this: -rw-rw-r-- owner group 0 Apr 14 21:56 filename.jpg when i write…
Arthur
  • 11
  • 2
0
votes
0 answers

Is there any way to capture logs while using Android MonkeyRunner

I am trying to capture the logs and find out the status of the Bluetooth. The logs should be captured and using it I must be able to print results accordingly.