How to change alignment in Robotium?

In this article we are going to see how change the alignment of screen of an Android device while performing Uni Testing using robotium framework.

After Initiating solo, we need to use the object of solo. I will make a separate post for getting started with robotium development.

-To make the screen as landscape alignment.
Note : solo.LANDSCAPE is an static integer value which is Zero(0). So, if we write like this, it will work. 

-To make the screen as portrait
Note : solo.PORTRAITis an static integer value which is One(1). So, same function


No comments:

Post a Comment