Questions tagged [androidviewclient]

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.

culebra logo

203 questions
2
votes
1 answer

Sending logcat input into monkeyrunner through eclipse/java results in issues

I am working on a tool to identify widgets within an android app, and display their properties when clicked upon. I have created a standalone tool that can successfully do this, but I am having issues in converting the standalone tool into an…
Rowhawn
  • 1,409
  • 1
  • 16
  • 25
1
vote
1 answer

How to start culebratester2 server on more than one device?

I want to start culebratester2 server on multiple devices at the same time in order to use uiautomatorhelper with AndroidViewClient in Python to test the same app on many devices. I don't know if it possible because I'm not able to specify a…
silverIT
  • 11
  • 3
1
vote
1 answer

How to make adb tap fast (ADB+Python)

So I made a bot for a singleplayer android game, using python and adb. The biggest problem is that between each tap there is like a 1 second delay. I connect to the device like this - from ppadb.client import Client def Get_device_adb(): adb =…
Ran42
  • 60
  • 1
  • 9
1
vote
0 answers

Culebra stuck with "Touching Point (units=DIP)"

I am trying to create tests on a device using Culebra. I gave the command >python culebra -uUG -P 0.25 -o myscript.py Exception AttributeError: "'PhotoImage' object has no attribute '_PhotoImage__photo'" in
Mooncrater
  • 4,146
  • 4
  • 33
  • 62
1
vote
0 answers

Using python script to get fps from device

I'm attempting to get a plotted graph for fps from dtmilano using his script https://medium.com/@dtmilano/analyzing-android-ui-performance-52beb577c421 #! /usr/bin/env python # -*- coding: utf-8 -*- import re import sys import os try: …
Pseebee
  • 11
  • 1
1
vote
1 answer

Why is Android View Client returning the view above the view I'm trying to select?

(Edit: the following problem only seems to occur on my Samsung S10e. I just got home and tried Android View Client on a Pixel phone and I'm not having any problem.) I'm automating the input process for a jetlag calculator android app Entrain. Using…
Rivers Cuomo
  • 316
  • 2
  • 5
  • 11
1
vote
1 answer

How to control your Android/iOS device with python?

I am looking to control my mobile devices that are plugged into MAC/PC via usb. Specifically, I want to turn "Airplane Mode" on and off using just python codes. My bad solution to control the mobile device was... using Selenium and TeamViewer web…
hyukkyulee
  • 1,024
  • 1
  • 12
  • 17
1
vote
1 answer

how to re-run java (UI automator/python) script recorded using culebra tester

I have python 2.7, android view client, adb environment setup in my PC. Also I have connected my android device with culebra tester installed in it and performed some Test case steps to record script (Java/python). Now I have the recorded script…
Josh
  • 57
  • 3
  • 7
1
vote
1 answer

Culebra GUI is working very slowly

Hi I am using Androidviewclient culebra tester in my windows 7 os , for starting culebra I am launching from command prompt as python culebra -G , culebra GUI started but taking long time to refresh view can anyone help me for solving this issue…
1
vote
1 answer

How can I get the attribute in androidviewclient

How can I get the dump attribute in androidviewclient. for example, I want to get the attribute value of 'selected'.Please help!! android attribute
1
vote
1 answer

AndroidViewClient: view not found error

I am trying to search a video in youtube using AndroidViewClient. package = 'com.google.android.youtube' activity = 'com.google.android.apps.youtube.app.WatchWhileActivity' component = package + "/" + activity device, serialno =…
Vikash Balasubramanian
  • 2,921
  • 3
  • 33
  • 74
1
vote
1 answer

How to find out the state of a checkbox using AndroidViewClient

I'm using androidviewclient for automated black-box level testing of an android GUI, I have two checkboxes (YES and NO) with YES checked by default, I use vc.touch() to select NO and I need to know whether NO has been selected.The way I do it now…
1
vote
1 answer

Execute script AndroidViewClient/culebra from website (Yii PHP framework)

I have a script with AndroidViewClient/culebra that works fine if it's executed by command line like: python myscripttest.py emulator-5554 But as I'm using Yii(PHP) for Website. the script was executed using subprocess.call(python myscripttest.py,…
CodeIK
  • 177
  • 1
  • 14
1
vote
1 answer

Error of Script with MonkeyRunner and AndroidViewClient (Touch)

I'm tryng to test some app using monkeyrunner and AndroidViewClient, also I have used culebra to generate code, But I have this erro: from com.dtmilano.android.viewclient import ViewClient, TextView, EditText SyntaxError: ("mismatched input 'as'…
CodeIK
  • 177
  • 1
  • 14
1
vote
1 answer

AndroidViewClient- how to generate a double tap using culebra

How to generate a double tap using culebra? Unable to use: vc.device.touch() twice (for double tap) Also tried: vc.device.longtouch(x,y) Twice, did not work.
KarunaL
  • 17
  • 2
1
2
3
13 14