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

Is it possible to refresh specific view without performing dump to the entire views hierarhy tree with AndroidViewClient?

I need a way to monitor some view parameters (for example to catch the moment it becomes enabled etc) To do so I think I need the possibility to refresh single view because performing dump to the entire views hierarchy tree takes too much time. Is…
Prophet
  • 32,350
  • 22
  • 54
  • 79
0
votes
1 answer

Not able to run AndroidViewClient

I am get the all the Id's of the current screen without using the Source. https://stackoverflow.com/questions/23333936/android-get-id-of-the-each-widget-in-the-screen-without-source So I am using Androidviewclient Have followed below steps 1)…
Deeps
  • 135
  • 1
  • 1
  • 6
0
votes
1 answer

Couldn't distinguish NumberPicker views by AndroidViewClient

In the application I'm trying to automate with AndroidViewClient there are widgets implemented with NumberPicker. Using AndroidViewClient / culebra I can't distinguish the values / texts presented on those NumberPickers.
Prophet
  • 32,350
  • 22
  • 54
  • 79
0
votes
1 answer

Couldn't write image to file using AndroidViewClient

vc.writeImageToFile("C:\image.png") code gives the following error: File "C:\AndroidViewClientMaster\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 2309, in writeImageToFile self.device.takeSnapshot().writeToFile(filename,…
Prophet
  • 32,350
  • 22
  • 54
  • 79
0
votes
1 answer

Is it possible to find view according to TextView text and then find previous / next view using AndroidViewClient?

Is it possible to find a view according to it TextView text and then go to previously or next view and use (touch etc) it using AndroidViewClient? In the application I'm trying to automate there is a list of items each have check-box, text and setup…
Prophet
  • 32,350
  • 22
  • 54
  • 79
0
votes
2 answers

I see veiw ids but can't use them

While using latest 5.4.4 AndroidViewClient and 4.4.2 KitKat Android device I see desirable view ids with dump-simple.py provided file but when I try to use these ids with findViewByIdOrRaise method I receive an…
Prophet
  • 32,350
  • 22
  • 54
  • 79
0
votes
2 answers

How to integrate AndroidViewClient with eclipse and how to develop tests

Can you please help me in setting up AndroidViewclient with eclipse and please give me sample example for how to write tests which will interact with any basic application. Sorry if I am asking basic question, But I didn't see any clear step by step…
ASP
  • 1
  • 3
0
votes
1 answer

AVC unable to find view by id even if parameter 'forceviewserveruse': is True,

i am trying to automate composing email using AndroidViewClient 5.1.1 . please find the code below : kwargs1 = {'verbose': False, 'ignoresecuredevice': False} kwargs3 = {'startviewserver': True, 'forceviewserveruse': True, 'autodump': False,…
user
  • 65
  • 1
  • 11
0
votes
1 answer

How to get the view name or Id of an android view

I'm currently developping code to make android phone test automation. I have based my test engine using python and also the AndroidViewClient librairy developed by Diego Torres I'm able to get the hierarchy of a view using the command : device,…
0
votes
1 answer

Unable to connect to Android device from Jenkins

So I used to call a MonkeyRunner script from within Jenkins to connect to a USB Android device and run some automated tests, however MonkeyRunner itself was rather unstable so I switched to the fantastic AndroidViewClient and ported my test script…
mactwixs
  • 402
  • 1
  • 6
  • 15
0
votes
1 answer

Importing monkeyrunner into python ViewClient

I am interested in making use of the ViewClient extension for MonkeyRunner having run into Broken Pipe issues with pure MonkeyRunner. I need to still use X/Y coordinates in the device.press(...), device.touch(...), device.drag(...) functions for…
mactwixs
  • 402
  • 1
  • 6
  • 15
0
votes
3 answers

How to Answer incoming call through adb shell or keyevent

I am trying to answer an incoming call using Intent as below : device.shell("am start -n com.android.phone/.InCallScreen -a android.intent.action.ANSWER") can anyone…
user
  • 65
  • 1
  • 11
0
votes
1 answer

Taking a bunch of photos with androidviewclient trouble

There is an issue, i need to automate making a photo to my android app, but there is no id for the button "take a snaphsot" dump.py on a screen of taking a photo only shows: C:\Users\Dmitry.Markovnikov>dump.py android.widget.FrameLayout id/no_id/1 …
alohamaloha
  • 147
  • 1
  • 12
0
votes
1 answer

Cyrillic in the android.widget.TextView

Im using android view client to automate testing of an android app, but all of the views are on Russian, so when I'm using dump.py i have something like this: android.widget.TextView id/no_id/16 ╨в╤А╨░╨╜╤Б╨┐╨╛╤А╤В How can I see it in normal view?…
alohamaloha
  • 147
  • 1
  • 12
0
votes
1 answer

Something wrong with ViewClient.connectToDeviceOrExit()

I'm recently started to use python with mobile app automation, as i decided to use python, the main instruments that I've found were monkeyrunner and androidviewclient. But there is the first issue with which i dont know what to do: package =…
alohamaloha
  • 147
  • 1
  • 12