In a test case, keywords indicate specific actions for each step. These actions include tasks such as opening or closing a browser, clicking, typing text, etc.
Types of Keywords in Opkey
Generic Keywords:
Opkey's generic keywords seamlessly integrate with commercial tools, enabling effortless test script creation and execution by selecting the plugin at runtime. Examples: SyncBrowser, SelectCheckBox, GetTableRowCount.
System Keywords:
Opkey's System keywords, like GetTimeAtTimeZone and StringContains, are pre-defined functions that work regardless of the plugin used.
Control Flow Construct:
Control flow construct keywords manage step execution based on conditions, affecting test flow. Categories include Comment, Condition, Iteration, Obstruction etc. Examples: PauseExecution, StopExecution etc.
Selenium Webdriver Keywords:
Selenium Webdriver keywords interact directly with web browsers via the Selenium web driver plugin. Examples include GetSingleRowText and GetObjectProperty.
Visual Keywords:
Visual plugin-specific keywords facilitate GUI testing with referenced images, requiring the Visual plugin. Examples include CompareImageObjects and Paste.
Appium Keywords:
Appium plugin-specific keywords are used for mobile device testing. They require the Appium plugin and include examples like CloseApplication and DoubleTouch.
Robotium Keywords:
Opkey Mobility keywords are specifically designed for testing Android applications. They require the Mobility plugin and include examples like ClickOnText and IsEditTextEmpty.
Let’s see how a test case is created by adding keywords to Test Steps.
In this method, you can use Opkey's 700+ built-in keywords to create test cases without scripting or coding.
Login to your Opkey portal, and select the project to work on.
In the chosen test case, click the ‘+’ button to add the required keywords.
Search the desired keyword in the search box, select it, and click "Add Keyword" to incorporate it into your test case step.
The added keyword can be seen in the image below.