sangmingming / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

searchButton(Any instance) is not working properly #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Android 2.3.3
2. Robotium 2.2 Jar
3. When I use the tool to search for buttons on an application under test with 
buttons the function always returns true. The application screen does not 
change at all during these tests. I have even given the function a name that 
does not exist and it returns a true: solo.searchButton("Help me Rhonda!",1, 
true);
We can use the function solo.clickOnButton("Call"); and it works.

What is the expected output? What do you see instead?
I expect it to return false when the button is not found otherwise we are 
getting false positive on our test cases.

What version of the product are you using? On what operating system?
Robotium 2.2 
Android 2.3.3

Please provide any additional information below.

Original issue reported on code.google.com by dadea...@gmail.com on 13 Apr 2011 at 5:37

GoogleCodeExporter commented 9 years ago
So if you do the following: solo.searchButton("somethingthatisnotavailable", 1, 
true);

it will return true?

Original comment by renasr...@gmail.com on 14 Apr 2011 at 5:50

GoogleCodeExporter commented 9 years ago
Can not be reproduced. Please email me more information and possibly the 
application which can reproduce this error.

Original comment by renasr...@gmail.com on 20 Apr 2011 at 7:36

GoogleCodeExporter commented 9 years ago
Found that if you use the Junit 
assertTrue(solo.searchButton("somethingthatisnotavailable", 1, true), you get 
the proper results.

Original comment by dadea...@gmail.com on 20 Apr 2011 at 11:59