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
-1
votes
1 answer

Is there a way to debug monkeyrunner Python scripts in PyCharm or any other IDE?

MonkeyRunner is an Android tool to run automation test with Python script. It's built based on Jython, a Java version Python interpreter. My question is, is there a way to debug the python scripts when use MonkeyRunner? I mean step over each line.
-1
votes
2 answers

How can I prevent new instances of background processes when calling adb in python subprocess module

PROBLEM: Every time I run this python function in my monkeyrunner.py script, it opens a new background instance of (cmd, adb, and conhost). And so, in my automation script, if I have a loop that uses that 100 times, I'm going to see 100 of each cmd,…
-1
votes
1 answer

adb - How to remove the invisible new line character from a Python variable?

I use the MonkeyRunner tool which provides an API in order to manage an Android emulator or device through a script written in Python. I have assigned a process_id of an application using pid = device.shell('pidof [s] PACKAGE_NAME') command. When I…
talha06
  • 6,206
  • 21
  • 92
  • 147
-1
votes
1 answer

Automatically launch apps using adb

I am trying to do some fuzz testing against an Android apk, and I need to launch the apps from adb, input some string value, click submit, and click OK for any pop up. I don't have much knowledge about Android, and I just managed to launch it from…
sqr
  • 365
  • 2
  • 12
  • 29
-1
votes
2 answers

how to simulate touch at specific location providing (x,y) coordianates in android programatically

I am developing an android app which involves connecting mouse to your phone wirelessly so that,we can operate our phone using mouse...i've implemented almost everything but couldnt figure out the way to simulate human touch at…
shunryui nik
  • 82
  • 1
  • 8
-1
votes
1 answer

monkeyrunner::python::I can't create a file in my disk via monkeyrunner

First, let me know you my development environment : Windows 7 x64 NoteBook Android sdk installed, including adb and monkeyrunner Python 2.7 on Windows I did script simple python code for test like this : [ test.py ] import os os.system("adb shell…
Truman
  • 55
  • 6
-1
votes
1 answer

Android JB 4.2.2 and Monkeyrunner script to make call

I am using Jelly Bean 4.2.2 on my device and trying to make a call using Monkeyrunner script. I am using the below code which was working on ICS very well but in JB, it doesn't type the phone number in the edit text box once the key dialer screen is…
-2
votes
2 answers

import simplejson - no module named simplejson

my python version is 2.7.14 in windows 7 I have import simplejson with command "pip install simplejson" my code is import os import platform import re import subprocess import sys import threading import simplejson error messge is ImportError: No…
-2
votes
1 answer

Android tablet app remote launch

I need to use the android based tablet for a specific functionality of starting the tablet remotely (without pushing any physical button), then launching a specific app. The functionality is as below. After android tablet boots up, a specific video…
-2
votes
1 answer

Is it possible to copy the monkey runner results to a excel file

I want the results to be in a excel sheet. The results should be made as a report. I am testing a android device and want the result. monkeyrunner
-2
votes
1 answer

MonkeyRunner script go to 'Developer options' then check 'Stay Awake' but is not recorded

I am doing a MonkeyRunner script that sets some settings in the android settings menu. The problem is that when I go to developer options, I need to check 'Stay Awake' and 'Allow mock locations' but when the script is finished these two are not…
1 2 3
31
32