Re: What are the avalible CheckPoints and Validation In Robotium ???

89 views
Skip to first unread message

naveed

unread,
May 6, 2013, 5:53:03 AM5/6/13
to robotium-...@googlegroups.com
Kishore, 

Welcome to Robotium family. 
Answer of your question worth details on couple of pages but I am trying to cover in few lines, 

Android Test Project is bundled with JUnit, so all JUnit validations and check points are available in case of Robotium as well as in Selenium. More than that Robotium also comes up with more validations & check points, few of them are below, 

assertCurrentActivity(java.lang.String message, java.lang.Class activityClass) 
          Asserts that the Activity matching the specified class is active.
assertCurrentActivity(java.lang.String message, java.lang.Class activityClass, boolean isNewInstance) 
          Asserts that the Activity matching the specified class is active, with the possibility to verify that the expected Activity is a new instance of the Activity.
assertCurrentActivity(java.lang.String message, java.lang.String name) 
          Asserts that the Activity matching the specified name is active.
assertCurrentActivity(java.lang.String message, java.lang.String name, boolean isNewInstance) 
          Asserts that the Activity matching the specified name is active, with the possibility to verify that the expected Activity is a new instance of the Activity.
assertMemoryNotLow() 
          Asserts that the available memory is not considered low by the system.
isCheckBoxChecked(int index) 
          Checks if a CheckBox matching the specified index is checked.
isCheckBoxChecked(java.lang.String text) 
          Checks if a CheckBox displaying the specified text is checked.
isRadioButtonChecked(int index) 
          Checks if a RadioButton matching the specified index is checked.
isRadioButtonChecked(java.lang.String text) 
          Checks if a RadioButton displaying the specified text is checked.
isSpinnerTextSelected(int index, java.lang.String text) 
          Checks if the specified text is selected in a Spinner matching the specified index.
isSpinnerTextSelected(java.lang.String text) 
          Checks if the specified text is selected in any Spinner located in the current screen.
isTextChecked(java.lang.String text) 
          Checks if the specified text is checked.
isToggleButtonChecked(int index) 
          Checks if a ToggleButton matching the specified index is checked.
isToggleButtonChecked(java.lang.String text) 
          Checks if a ToggleButton displaying the specified text is checked.

Some of them are explain & implemented in Robotium Tutorial projects as well, 

Enjoy Testing :)

-Naveed


On Monday, May 6, 2013 12:33:08 PM UTC+5, Kishore K wrote:
Hi All,

I'm new to Robotium and also to this group  as well. Thanks for Joining me in to this group.

is there any Checkpoints and validations  in Robotium like selenium tool . If so can any one explain me ,how to do it ?? with examples will do more favor to me.


Regards,
Kishore
Reply all
Reply to author
Forward
0 new messages