Supported Keywords

View the Project on GitHub menonvarun/site

Bot-bot is based on keyword driven approach.

  • Following table shows a list of keywords currently supported by bot-bot runner.
  • Other than the said list any functions supported by base frameworks like Robotium and NativerDriver can also be used as keyowrds. In such cases bot-bot automatically finds the keyword and execute them with passed parameters.
  • Bot-bot also allows user to define/add their own keywords and functionalities. This can be achieved very easily with minimal changes.
KeywordDescription
assertbuttonpresentNeeds one argument button-text. Check whether a button with the said text button-text is present in the current view.
Fails the test in-case the said button is not found
assertlocatorpresentNeeds one arugument the locator. Checks whether the said locator is available on the said page. Fails in case it is not found
assertmenuitemNeeds one argument the menu-text that needs to be verified. Fails in case the menu-item is not found.
assertpartialtextpresentNeeds one argument text. Fails in case the text is not present on the current page. It checks for only partial text.
assertradiobuttonpresentNeeds one argument radio button text. Fails in case no radio button with the said text is found.
assertspinnerpresent
asserttextpresentNeeds one argument text. Fails in case the text is not present on the current page
checkbuttonpresentNeeds one argument button-text. Check whether a button with the said text button-text is present in the current view.
Shows warning message in case the said button is not found
checklocatorpresentNeeds one argument the locator. Checks whether the said locator is available on the said page.
Shows warning message in case its not found.
checkradiobuttonpresentNeeds one argument radio button text. Shows warning in case no radio button with the said text is found.
checktextpresentNeeds one argument the said text. Checks for the said on the text. Shows warning message in case not found.
clickbackSimulates clicking on back button. Can be used to hide the auto keyboard popped-up while running cases.
clickbuttonNeeds one argument button-text. Find and click on the button with the said text.
clickbyidNeeds one argument id. This is available in the R.java file of the said android application. Finds and clicks on the said id.
clickmenuSimulates clicking on a Menu button
clickradiobuttonNeeds one argument radio button text. Finds and click on the radio button with the said text.
clickspinnerUsed to click on spinner and select a value. Takes two arguments “rid” and “value”(to be selected).
Currently selects the value only if it is available in the current view/ screen.
In case the user need to scroll for a value use clickbyid,scrollup/scrolldown & click text.
clicktextNeeds one argument text. Finds and clicks on the said text.
entertextNeeds two arguments locator & the text.
Locator can be anything that is supported by selenium like (text,partialtext,id, etc).
The locator type and the actual locator should be differentiated by
openappNot implemented currently
scrolldownSimulate scrolling downside. No of time to scroll can be provided as argument. Default being 1.
scrollupSimulate scrolling upside. No of time to scroll can be provided as argument. Default being 1.