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.
|assertbuttonpresent||Needs 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|
|assertlocatorpresent||Needs one arugument the locator. Checks whether the said locator is available on the said page. Fails in case it is not found|
|assertmenuitem||Needs one argument the menu-text that needs to be verified. Fails in case the menu-item is not found.|
|assertpartialtextpresent||Needs one argument text. Fails in case the text is not present on the current page. It checks for only partial text.|
|assertradiobuttonpresent||Needs one argument radio button text. Fails in case no radio button with the said text is found.|
|asserttextpresent||Needs one argument text. Fails in case the text is not present on the current page|
|checkbuttonpresent||Needs 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|
|checklocatorpresent||Needs one argument the locator. Checks whether the said locator is available on the said page.Shows warning message in case its not found.|
|checkradiobuttonpresent||Needs one argument radio button text. Shows warning in case no radio button with the said text is found.|
|checktextpresent||Needs one argument the said text. Checks for the said on the text. Shows warning message in case not found.|
|clickback||Simulates clicking on back button. Can be used to hide the auto keyboard popped-up while running cases.|
|clickbutton||Needs one argument button-text. Find and click on the button with the said text.|
|clickbyid||Needs one argument id. This is available in the R.java file of the said android application. Finds and clicks on the said id.|
|clickmenu||Simulates clicking on a Menu button|
|clickradiobutton||Needs one argument radio button text. Finds and click on the radio button with the said text.|
|clickspinner||Used 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.|
|clicktext||Needs one argument text. Finds and clicks on the said text.|
|entertext||Needs 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|
|openapp||Not implemented currently|
|scrolldown||Simulate scrolling downside. No of time to scroll can be provided as argument. Default being 1.|
|scrollup||Simulate scrolling upside. No of time to scroll can be provided as argument. Default being 1.|