Keywords offer a set of predefined commands for creating test cases for any application or software. With keywords, you can easily write test steps with input and output data without the need for complex coding.
How to use Keywords?
Keywords are used by calling them in a test step and adding the input and expected output data values. If you want to capture the dynamic objects, you can also add properties of the object in the test object column.
Let's understand this with an example of using the HandleExpectedPopup keyword. This keyword handles expected pop-ups occurring during the execution using the TAB and ENTER keys combination. It takes WindowTitle, Number Of Tabs, and WaitTime as input parameters. Let's go through the steps to use this keyword in a test step.
1. Add a new step in your test case by clicking the + icon at the top. Search HandleExpectedPopup and click on the search result to add it to the new test step.
2. Click the three dots icon in the input data column of the step to open the input data window for the keyword.
3. Add the input data related to the pop-up window as shown below.
4. You can see the test object, input and output data added to your test steps.
Note: We have illustrated the requirement of the Test Object, Input Data, and corresponding Output data values in the tables following this image. These values are filled as per the requirement of the keyword used in the test case as shown in the image below. We have given similar tables for each keyword in the list of system keywords articles.
Input Data
Data Input Required | Description |
Window Title | Name of the pop-up window, eg. Select your city |
Number of Tabs | Integer value of the number of tabs |
Wait Time | Waiting time (integer format) in seconds |
Output Data
Condition | Output Value |
If the keyword passes successfully | True |
If there is an error | False |
Example
If you want to Handle the popup of a tab named Select your city, here is how you will use this keyword.
HandleExpectedPopup
Window Title | Select your city |
Number of Tabs | 2 |
Wait Time | 10 |
Output | True |
Common error conditions
Condition | Debug Information | Message |
If the Data input Argument is null or the Window Title is null | Argument Data Invalid (-13300) | Window Title must not be empty |
Error debug information:
Unexpected data values for input arguments may occur due to specific format requirements or predefined value sets. Check for spelling errors and proper capitalization.
We have separated description and uses information of all the system keywords in five articles. Please go through them by clicking the links given below.
List of Keywords - System Keywords 1
List of Keywords - System Keywords 2
List of Keywords - System Keywords 3
List of Keywords - System Keywords 4
List of Keywords - System Keywords 5
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article