xiezefan / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
1 stars 0 forks source link

ListView size inside espresso #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I cannot find any way to get listview size for validation inside espresso 
framework

What is the expected output? What do you see instead?
There should be some way to do it.

What version of the product are you using? On what operating system?
1.1

Please provide any additional information below.
Before doing onData.atPosition() i would like to know the maximum value.
How can i do it?

Original issue reported on code.google.com by dmitriy....@gmail.com on 4 Jul 2014 at 6:45

GoogleCodeExporter commented 9 years ago
You should avoid having non-deterministic data in tests that requires 
conditional logic.

If you really really have to, use a custom ViewAction that gets the size out. 

Original comment by vale...@google.com on 19 Nov 2014 at 10:08