Keywords in a test case represent actions for a specific step. Each testing action, like opening or closing a browser, mouse clicks, keystrokes, etc., is denoted by specific keywords such as "open browser," "click," "Typtext," etc
Types of Opkey Keywords in Opkey
Generic Keywords:
Opkey's generic keywords seamlessly integrate with commercial tools, allowing you to create and execute test scripts effortlessly by selecting the appropriate plugin during runtime. Examples include SyncBrowser, SelectCheckBox, and GetTableRowCount.
System Keywords:
Opkey's System Keywords are predefined generic functions that work independently of the plugin used. Examples include GetTimeAtTimeZone and StringContains.
Control Flow Construct:
Control flow construct keywords govern the execution of specific sets of steps based on certain conditions, influencing the flow of the test case. They include categories like Comment, Condition, Iteration, and Obstruction. Examples include PauseExecution and StopExecution.
Selenium Webdriver Keywords:
Selenium Webdriver keywords directly interact with web browsers without running scripts within them. They function exclusively with the Selenium web driver plugin and include examples like GetSingleRowText and GetObjectProperty.
Visual Keywords:
Visual plugin-specific keywords are used for GUI testing using referenced images. They require the Visual plugin and include examples like 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 on 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.