Understanding Opkey keywords

Keywords offer a set of predefined commands for creating test cases for any application. With keywords, you can easily write test steps with input and output data without the need for complex coding.  The Opkey library includes over 700 built-in keywords.

How to use Keywords?

Keywords are utilized by calling them within a test step and adding input and expected output data values. To capture dynamic objects, you can also include the object's properties in the test object column. 

1. To add a new step in your empty test case, click the Add Step or "+' button in the test case. 



2. 
Next, locate the keyword you want to use by typing its name into the search box. A dropdown list will appear, showing all keywords that match your entry. Click on the desired keyword from the dropdown to select it.


For example, we typed "Oracle" into the search box and selected "Oracle Click" from the dropdown. 




3. The selected keyword will be added to your test case step. Follow the same steps to add any keyword in a test case. 


Adding a keyword in the middle of test case steps

To add a new test step with a keyword to a test case, follow these steps. 


1. 
Select the test step after which you'd like to add the new step with the keyword. For instance, in the test case, we're adding a step after step 4. Next, click the "Add Step" button at the top to insert a new step. As shown below, the new step is added after step 4.



3. 
To add a step at the end of the test case, select the last step and click "Add Step". For a step at the beginning, select the first step, add a new one after it, and use the arrow key to move it to the top. You can also use these keys to adjust the position of any step in the test case.

Types of Opkey Keywords:

Generic Keywords


Opkey's generic keywords can create a test script and execute it with a commercial tool by selecting the relevant plug-in at runtime, such as SyncBrowser, SelectCheckBox, and GetTableRowCount.





System Keywords: 

The System keywords in Opkey are predefined generic functions that are independent of the plugin used, such as GetTimeAtTimeZone and StringContains.


Control Flow Construct


Control flow construct keywords execute specific sets of steps based on choices. They include the following categories: Comment, Condition, Iteration, and Obstruction. Examples include IF, Else, PauseExecution, and StopExecution.


Selenium Webdriver Keywords

The Selenium Webdriver keyword is used to execute test suites by directly opening a web browser rather than running scripts within the browser. They work only with the Selenium webdriver as a plugin. For Example, GetSingleRowText, GetObjectProperty, etc.

Visual Plugin Keywords

Visual Plugin keywords are plugin-specific and used for GUI testing with referenced images. They work exclusively with the Visual plugin, such as CompareImageObjects and Paste.



Appium Keywords

These keywords are specifically used while using Appium as a plugin for mobile devices. For example, CloseApplication, DoubleTouch, etc.

Robotium Keywords 

Robotium keywords are plugin-specific and applicable to Android applications, such as ClickOnText and IsEditTextEmpty. 

ERP Specific keywords

These keywords are used in ERP-specific test cases to capture dynamic objects, such as OracleFusion_ClickByText and Coupa_ClearTableCell.


Here is a list of keywords available in Opkey.

Web Keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000056813-using-web-keywords-new-ui

Excel keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000056822-using-excel-keywords-opkey-new-ui

Collection keywords


https://customerhub.opkey.com/en/support/solutions/articles/88000056827-using-collection-keywords-new-ui



Mobility keywords


https://customerhub.opkey.com/en/support/solutions/articles/88000056830-using-mobility-keywords-opkey-new-ui



Visual Plugin keywords


https://customerhub.opkey.com/en/support/solutions/articles/88000056835-using-visual-plugin-keyword-opkey-new-ui


Oracle Fusion Keywords


https://customerhub.opkey.com/en/support/solutions/articles/88000057043-using-oraclefusion-keywords-opkey-new-ui


Desktop Keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000057073-using-desktop-keywords-opkey-new-ui

Javascript Keyword

https://customerhub.opkey.com/en/support/solutions/articles/88000057075-using-selenium-javascript-keyword-opkey-new-ui

Utility Keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000057080-using-utility-keywords-opkey-new-ui

Control Flow Construct keyword

https://customerhub.opkey.com/en/support/solutions/articles/88000057083-using-control-flow-construct-keyword-opkey-new-ui

Salesforce keyword

https://customerhub.opkey.com/en/support/solutions/articles/88000057086-using-salesforce-keywords-opkey-new-ui

Veeva Keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000059602-veeva-keywords-action

https://customerhub.opkey.com/en/support/solutions/articles/88000059626-veeva-keywords-bytext

https://customerhub.opkey.com/en/support/solutions/articles/88000059675-veeva-keywords-table

Generic Keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000046513-generic-keyword-action

https://customerhub.opkey.com/en/support/solutions/articles/88000012669-generic-keywords-–-assertion

https://customerhub.opkey.com/en/support/solutions/articles/88000012670-generic-keywords-–-function

Oracle EBS Keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000048130-opkey-oracle-ebs-keywords

System Keywords

https://customerhub.opkey.com/en/support/solutions/articles/88000052398-list-of-keywords-system-keywords-1

https://customerhub.opkey.com/en/support/solutions/articles/88000052405-list-of-keywords-system-keywords-2

https://customerhub.opkey.com/en/support/solutions/articles/88000052415-list-of-keywords-system-keywords-3

https://customerhub.opkey.com/en/support/solutions/articles/88000053398-list-of-keyword-system-keywords-4

https://customerhub.opkey.com/en/support/solutions/articles/88000053402-list-of-keywords-system-keywords-5


You are at the end of this article.








Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article