stephenwang1011 / robotium

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

Robotium consumes more time if we use conditional loops #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Robotium consumes more time if we use conditional loops
        Eg#1:
        test = solo.waitForText(text); //Because waitForText method loops even it returns true
        while (test == true){   
         tFlag = true;
         break;
    }

What is the expected output? What do you see instead?
waitFortext should return true only when expected text found unless it should 
return false. otherwise it is keeps on looping even it returns at times.

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

Please provide any additional information below.

Original issue reported on code.google.com by alpatisu...@gmail.com on 29 May 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Robotium returns false if the expected text is not found after all scrolling 
that can be performed is done. This is according to design.

Original comment by renasr...@gmail.com on 29 May 2012 at 7:56

GoogleCodeExporter commented 9 years ago
Is there way to stop scrolling?

Original comment by alpatisu...@gmail.com on 30 May 2012 at 2:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes there is. Please see the javadoc for more information. 

Original comment by renasr...@gmail.com on 30 May 2012 at 2:31