No-code test creation in automation testing is possible using a recorder, as it allows you to record actions you perform in different applications and technologies. However, when capturing complex scenarios or logical expressions, a recorder can be coupled with keywords, allowing us unlimited possibilities in the testing arena.
Keywords represent the actions that you are performing on your application. These actions can be anything from a mouse click or opening and closing a browser window to a mouse hover action, complex logical actions, or even validations.
Opkey is an intelligent automation platform that helps create test cases for complex scenarios with keywords. It has a library of more than 20,000 inbuilt keywords for web, mobile, and desktop applications. Opkey also has ERP-specific keywords for ERPs like Oracle, SAP, Salesforce, Peoplesoft, Workday, and more. Its extensive library includes keywords to perform actions on Excel, mainframe, and other technologies.
How Do Keywords Work?
You can use and reuse keywords by adding them from the library to create test cases for different applications. All you have to do is identify and add keywords that correspond to the actions you want to perform in your test case and add input data to the keywords. Your test case is ready for execution.
Types of Keywords in Opkey
There are four types of keywords in Opkey based on user functions:
Action keywords: corresponds to the generic actions you perform on an application. Example - Opening a browser Keyword - OpenBrowser
Verification keywords: verifies particular text or an object of an application. Example - Verifying an email address Keyword - VerifyObjectText
Get keywords: gets information about the application. Example - Number of columns in a row Keyword - GetTableColumnCount
Control flow constructs: adds a comment or applies a condition like if/else to a test case. Example - Verifying a username Keyword - If/Else
Custom Keywords in Opkey
Opkey has a keyword library from which you can call and add keywords to your test cases. But what if you require a keyword for a business-specific test case not included in the existing library? You can execute such test cases using custom keywords. Most test automation platforms do not offer the custom keywords feature, making it unique to Opkey. You can design and add custom keywords to the keyword library. However, it is necessary to have coding knowledge to create custom keywords. For example, if you are a business user, your developers can create custom keywords in Opkey by writing Java codes in the Coded Function Library section of the test case. (To know more about Coded Function Libraries, visit Opkey University and complete automation testing courses).Your developer team can also create jar files. Once created, you can use the keyword management tool to add custom keywords using the jar files. You can call custom keywords and reuse them across test cases along with generic keywords.
Steps to Use Opkey Keywords in Test CasesYou can follow three simple steps to create test cases or add steps to existing test cases using keywords.
Benefits of Opkey Keywords in Creating Test Cases