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

Could AndroidViewClient still work well with Monkeyrunner?

I'm using AndroidClientView to do automated test. I found when the phone came into a new page, ViewClient should dump the whole view. I guess if there is a way to speed up the test process, such as the page is only a transferred page, I don't need…
Ye18
  • 1
0
votes
1 answer

AndroidViewClient/culebra restrict GUI execution to app

I am using culebra concertina mode inside AndroidViewClient to run automatic GUI tests with app. But what I am seeing is this tool sometimes presses home button and my app exits and thus no longer tests my app. Is there anything in this tool to…
rainyday
  • 353
  • 3
  • 17
0
votes
0 answers

androidviewclient CalledProcessError

I am trying to run a simple script that contains the following code snippet: from com.dtmilano.android.viewclient import ViewClient device, serialno = ViewClient.connectToDeviceOrExit() vc = ViewClient(device, serialno) The last line above is…
GAN
  • 85
  • 1
  • 1
  • 8
0
votes
1 answer

How to Run Code on Android Generated by AndoirdViewClient?

Through the CulebraTester application on my device, I generated some python to simply open the settings application. When I went to run the script, I was greeted with pkg_resources.DistributionNotFound: The 'androidviewclient<12.4.0' distribution…
go_easy
  • 3
  • 2
0
votes
1 answer

Is ViewClient invalid if new Activity is started?

I have an AndroidViewClient script that is testing an activity. Clicking a button in my android app creates a new Activity instance. It seems like the ViewClient instance in my python script needs to be recreated after the new activity is launched -…
user3203425
  • 2,919
  • 4
  • 29
  • 48
0
votes
1 answer

Get current activity name and package?

I have a button which launches a new Activity. Is there an API in AndroidViewClient to get the package and name of the current activity? Something like: view.click() # starts a new activity ViewClient.sleep(5) # wait for it to start activityName =…
user3203425
  • 2,919
  • 4
  • 29
  • 48
0
votes
1 answer

What are the parameters in device.drag method in AndroidViewClient?

what does the orientation parameter in the drag method do? Also when I change the duration and/or steps, it does not make that much difference vc.device.drag(start, end, duration, steps, orientation):
0
votes
1 answer

Where can I find AndroidViewClient documentation?

Is there any documentation on AndroidViewClient covering public classes, methods, and syntax?
0
votes
1 answer

Culbera: Selecting things from dropdown list in an Android app

I am trying to test a drop down list with Culbera. My menu structure is as follows Main Page -- Program - Setup - Arm - Torque -- Test Now Arm displays (makes visible) a drop down list that shows the list of…
liv2hak
  • 14,472
  • 53
  • 157
  • 270
0
votes
1 answer

Pressing buttons by 'text' on Android app using Culebra

I have a Android App that I am trying to test using culebra. The code is shown below. '''reated on 2017-02-08 by Culebra v12.5.3 __ __ __ __ / \ / \ / \ / \ ____________________/ __\/ …
liv2hak
  • 14,472
  • 53
  • 157
  • 270
0
votes
1 answer

Is it possible to automate android without enabling USB debugging?

I need to connect Android phone to my DUT through USB and I have to connect and disconnect the device, and I need to send/receive data from phone to DUT through phone UI, To automate this I have used adb through wifi, and to disconnect device from…
0
votes
1 answer

How to scroll by an exact number of pixels in AndroidViewClient or via any other programmatic method

So far I was only able to use the adb shell input touchscreen swipe approach using adb, and the device.drag() method from AndroidViewClient. Both, though, take "speed" as a parameter, and the output is very relevant to the CPU clock speed and…
Dakatine
  • 2,734
  • 1
  • 19
  • 20
0
votes
1 answer

How to clear dump (AndroidViewClient/Culebra) data from memory?

I'm running an automated test script using AndroidViewClient. I do several dumps in the script. The script is used for a speed/response time test on an android device and the test is run for n>300. I get the following error at run #150. raise…
0
votes
1 answer

Is there any Timer () or Clock () function in AndroidViewClient?

I'm using Androidviewclient for black-box testing of a GUI and I need to record the response time of a button; for example I need to know how long it takes for the next screen to appear from the time I click a "Next" button On a GUI.