Section Summary
S.NO | KEYWORD | DESCRIPTION | PARENT | TEST OBJECT | DATA |
---|---|---|---|---|---|
BROWSER OPERATIONS | |||||
1. | openbrowser | Opens the browser. Without using ‘Test Data’, it redirects to a blank browser. However, with ‘Test Data’, it redirects to the URL specified in ‘Data Column’ | Test Data :- URL (optional) | ||
2. | clearbrowsercache | Clear Browser cache | |||
3. | closebrowser | Closes running Browser. | |||
4. | closeallbrowsers | Closes all the running Browsers. | |||
5. | refreshbrowser | Refresh the Browser. | |||
Navigational Keywords | |||||
1. | navigateurl | Navigate to a particular URL specified in ‘Data Column’. | URL as Data | ||
2. | goforward | Navigate to the next Page. | |||
3. | goback | Navigate to the previous Page. | |||
Web Form Operations | |||||
1. | clear | Clear the text already present in a text Box. | Need Parent | Need Test Object | |
2. | enterdata | Enters Text in the Text Box. The text to be entered is given in the ‘Data’ Column | Need Parent | Need Test Object | Text to be entered |
3. | enteruniquedata | Generates and enters Unique Data in the given Object. The length of the Unique Data to be generated is given in ‘Data’ Column | Need Parent | Need Test Object | Length of Data to be generate |
4. | click | Click on a specific Object. | Need Parent | Need Test Object | |
5. | check | Check the CheckBox. | Need Parent | Need Test Object | |
6. | uncheck | Uncheck the CheckBox. | Need Parent | Need Test Object | |
7. | selectitem | Select a specific option from a List. The Object is the locator of the list. The Option to be selected is given in ‘Data Column’. | Need Parent | Need Test Object | Text of the item to be select in dropdown |
8. | selectmultipleitems | Select multiple item in multiple selection box | Need Parent | Need Test Object | Text of the items to be select separated by comma |
9. | selectitembyindex | Select a specific option from a List. The Object is the locator of the list. The Index of the Option to be selected is given in ‘Data Column’. | Need Parent | Need Test Object | Index number of Item to be select |
Wait Keywords | |||||
1. | wait | Pause’s the execution for a static time which is mentioned in ‘Data Column’. | Time should be in seconds | ||
2. | waitforobject | Waits for particular Object to Appear. | Need Parent | Need Test Object | Time out in second(optional) |
3. | waitforobjectnotpresent | Waits for a particular Object to Disappear. | Need Parent | Need Test Object | Time out in second(optional) |
4. | waitforproperty | Waits for Property to appear. The property to wait for and the timeout is given in the ‘Data Column’. Unit of timeout is seconds. Syntax — property | timeout | Need Parent | Need Test Object | property | timeout in second |
Alert Handling | |||||
1. | acceptalert | Accepts the Alerts.(Applicable for browser Alerts) | |||
2. | dismissalert | Cancels the Alerts.(Applicable for browser Alert) | |||
3. | verifyalerttext | Verify text of the alert. The text to be verified is given in the ‘Data Column’. | Text to be verify | ||
Verify Keywords | |||||
1. | verifytextcontained | Verify that specified text is present on current test object. The text to be verified is given in the ‘Data Column’. If the object is not found in ‘Object Repository’, it verifies the text (given in data column) present on the entire page. | Need Parent | Need Test Object | Text to be verify |
2. | verifytextnotcontained | Verify that specified text is not present on current test object. The specified text is given in the ‘Data Column’. | Need Parent | Need Test Object | Text that verify as not present |
3. | verifytextonpage | Verifies that the specified text is present on current web page. The text to be verified is given in the ‘Data Column’. | Text to be verify | ||
4. | verifytextnotonpage | Verify that specified text is not present on current web page. The text is given in the ‘Data Column’. | Text that verify as not present | ||
5. | verifylistitempresent | Verify that List option is present in focused List | Need Parent | Need Test Object | Text of item present in dropdown |
6. | verifylistitemnotpresent | Verify that List option is not present in specified List object | Need Parent | Need Test Object | Text of item present in dropdown |
7. | verifyobjectpresent | Verifies that the specified test object is present on current web page. | Need Parent | Need Test Object | |
8. | verifyobjectnotpresent | Verifies that the specified object is not present on current web page. | Need Parent | Need Test Object | |
9. | verifyobjectproperty | Verifies a specific property of the given Object and matches it with specified value. Syntax – PropertyName | ValueOfProperty (To be given in ‘Data Column’). | Need Parent | Need Test Object | PropertyName | ValueOfProperty |
10. | verifyobjectpropertynot | Verify the given property is not for Object | Need Parent | Need Test Object | PropertyName | Value Of Property that is not present |
11. | verifypageproperty | Verify page url \ title | url or title | ||
12. | verifytextinpagesource | Reads the html of the page, and searches for the specified ‘text’. The text is given in ‘Data Column’. | Text to be verify in page source | ||
13. | verifytextnotinpagesource | Verify the Given Text is not present in page source. The text is given in ‘Data Column’. | Text that verify as not present in page source | ||
14. | verifypagedisplayed | Verify that current web page is display properly | Need Parent | Need Test Object | |
15. | verifyobjectdisplayed | Verifies if the object is being displayed or not on current web page | |||
Database Operations | |||||
1. | executedatabasequery | Execute a database query against specified database server and environment. The query is given in ‘Data Coloum’ or in SQL folder. | Need sql Query | ||
2. | getdatafromdatabase | Get all the record from database using specified query | Need sql Query | ||
3. | getuserfortesting | Get all the record from database using specified query but if no record found then test will terminate instantly | Need sql Query | ||
XML Operations | |||||
1. | findxmlattribute | To find an attribute in XML | attribute name | ||
2. | verifyxmlattribute | verify the Xml attribute is present | attribute name | ||
3. | countxmlnodes | Used to Find the Count of Given Xml Node | XML node | ||
4. | verifyxmlnodecount | Used to verify the Count of Given Xml Node | XML node | count | ||
Events and Actions | |||||
1. | mousemove | To focus and move the cursor to a specified Object. | Need Parent | Need Test Object | |
2. | mouseclick | To click on a Specific Object. | Need Parent | Need Test Object | |
3. | mouseover | To Hover the cursor on a Specific Object. | Need Parent | Need Test Object | |
4. | keypress | Used to press a Specific Key on a particular Object. The key to be pressed is given in ‘Data Column’. | Need Parent | Need Test Object | Key name: e.g . ENTER |
5. | fireevent | Used to focus on an Object and perform an event mentioned in the ‘Test Data’ | Need Parent | Need Test Object | Test Data:- (Event name e.g. blur) |
6. | addaction | It saves an Action in an Array in the form of list. The action is given in the ‘Data Column’. | Need Parent | Need Test Object | |
7. | performaction | It executes the list of actions saved in the add action list. | |||
Miscellaneous | |||||
1. | runexceltestcase | Runs a particular test case. The test case ID to be run is given in the ‘Data Column’ | Test Data- (Test Case ID of the TestCase to run) | ||
2. | settestmode | Similar to If Else statements. To set A/B Testing mode based on certain conditions. | Need Parent | Need Test Object | <Mode Name> | value |
3. | getpageproperty | Stores the page Url/Title in a given variable. The variable is given in the ‘Data Column’.( | Variable to store and the url/Title (e.g url | |
||
4. | executestatement | Execute a java script | Java Script | ||
5. | setvariable | It sets a value to a variable | <Varibale name> | value | ||
6. | setparameter | Used to override the Krypton parameter at run time | <Krypton parameter> | value | ||
7. | requestwebservice | Execute an API Query with specified Method | Api query | ||
8. | downloadfile | It downloads the file to a particular location in the System and save the location in a variable ‘downloadedfile’. | |||
9. | ftpfileupload | It uploads a file to ftp server | Ftp server url | username | password | file path to be upload | ||
10. | generaterandomnumber | It generates a Random number and assign to variable. The limit of the random number is given in the ‘Data Column’. | (e.g. 1 | 25 | XYZ) |
||
11. | generateuniquestring | It generates the unique String and assign to variable. The length of the string to be generated is given in the ‘Data Column’. | Length of string to be generated | VariableName (e.g. 10 | UserName) |
||
12. | getobjectproperty | Get value of specified property of test object and assign it to a variable. | Need Parent | Need Test Object | <property name> | <variable name> |