AndroidViewClient is a 100% pure python library and tools that simplifies test script creation and android test automation, providing higher level operations and the ability of obtaining the tree of Views present at any given moment on the device or emulator screen and perform operations on it. Test script creation can be even further simplified and automated by using Culebra.
Questions tagged [androidviewclient]
203 questions
0
votes
0 answers
AndroidViewClient waiting for wi-fi issue
I'm in the middle of automating the Google Registration and I'm running into an issue...
As part of the registration, you need to sign into Wi-Fi and then wait until you are connected. After entering the Wi-Fi credentials, I do a wait in a while…

Android Noob
- 3,271
- 4
- 34
- 60
0
votes
0 answers
ImportError: No module named re
I failed at setting up AndroidViewClient. It's a tool for Android testing, I want to run a Script (check-import.py) which start with:
#! /usr/bin/env monkeyrunner
'''
Created on Aug 29, 2012
@author: diego
'''
import re
import sys
import os
but…

fweigl
- 21,278
- 20
- 114
- 205
0
votes
1 answer
AndroidViewClient: content is not allowed in trailing section
I installed AndroidViewClient via Git on my Windows Vista machine at home and I setup the path variables and ran the check-imports.py script to make sure everything was ok. Next, I tried to run the settings.py script from the /examples folder and…

Android Noob
- 3,271
- 4
- 34
- 60
0
votes
1 answer
AndroidViewClient doesn't get view's coordinates
i'm working with AndroidViewClient to find EditText and Buttons to push with monkeyrunner. The problem is that AndroidViewClient isn't able to get the coordinates, in pixels, of theses views.
The results says the next:
…

user2366903
- 15
- 2
- 5
0
votes
2 answers
Error passing uiautomator dump in viewclient.py
I am getting below exection when running viewclient. I am running this on Emulator using android-17 api.
viewclient = ViewClient(device, serialno)
File…

user1819441
- 127
- 2
- 12
0
votes
1 answer
Run AndroidViewClient from Java
I want to create a testing environment for Android apps / UIs based on monkeyrunner. My goal is to provide an environment that automatically tests Activities and their UI elements like EditText or Button, not by randomly creating touch/ gesture…

fweigl
- 21,278
- 20
- 114
- 205
0
votes
1 answer
how to select an option from "attach" in message application using monkey runner
I am trying to automate sending of MMS using a monkey runner script which is a python script.I am getting the co-ordinates from hierarchy viewer for touch/press functions.But the problem is all these events work on the main screen.I mean if there is…

Brinda
- 21
- 1
0
votes
1 answer
How to toggle bluetooth using androidviewclient
I am trying to toggle Bluetooth using AndroidviewClient. Below is part of the code. I am able to "find Bluetooth" and get the id and text also. Then I want to get get the view for ON/OFF to toggle. When I print in the below for loop, I get 3 views…

user2344495
- 19
- 1
0
votes
1 answer
MonkeyRunner/AndroidViewClient basic script not working
I have a pretty basic script where I intend for the application to drag 3 times, and then touch a button. The application drags three times perfectly, but then get's an error when I add in the touch code.
Code:
device, serialno =…

EGHDK
- 17,818
- 45
- 129
- 204
0
votes
1 answer
AndroidViewClient ERROR: Device is secure
I'm trying to use AndroidViewClient for some automation. On [github][1] there is a page about "Secure Mode". It states this:
AndroidViewClient has two possible back-ends:
ViewServer
UiAutomator
UiAutomator works on Android API 16 and higher, so if…

EGHDK
- 17,818
- 45
- 129
- 204
0
votes
1 answer
Trouble with findViewByIdOrRaise in AndroidViewClient
Trying to use MonkeyRunner to perform some testing and want to use AndroidViewClient to work with EditText widgets.
I believe I am using AndroidViewClient correctly (relevant stuff below), findViewByIdOrRaise() is always throwing an error. I've…

CatShoes
- 3,613
- 5
- 29
- 43
0
votes
1 answer
Android: Python: AndroidViewClient Noob Trouble
This is the Alliances screen of my current project:
..and this is the view readout using monkeyrunner dump.py:
android.widget.FrameLayout id/no_id/1
android.widget.LinearLayout id/no_id/2
android.widget.FrameLayout id/no_id/3
…

Quasaur
- 1,335
- 1
- 10
- 27
0
votes
1 answer
How to scale touch event coordinates for Android MonkeyRunner to support multiple devices with the same script?
I'm trying to write a monkeyrunner script that will automate the installation of mdm software for enterprise users. The script will be executed with multiple devices and thus multiple screen sizes and densities.
Is there a way to take a reference…

user1959606
- 1
- 1
0
votes
1 answer
Viewclient touch() is working as a long tap , it should work as click?
I am testing a Gallery application of android 4.0.3 using monkeyrunner with androidviewclient and when I am trying click on any album with touch() function of AVC it is selecting the album . It should open a album.
My code for opening a album is
…

NRP
- 13
- 3
0
votes
3 answers
ImportError: No module named dtmilano
Hi I am new to python development. I am trying to execute the code given at http://dtmilano.blogspot.in/2012/02/monkeyrunner-interacting-with-views.html but when ever i am trying to execute the code i get following error:
Traceback (most recent call…

Ashwani Kumar
- 834
- 3
- 16
- 30