No-code test creation in automation testing is made possible using a recorder as it allows you to record different applications and technologies. When it comes to capturing complex scenarios or logical expressions, a recorder can be coupled with keywords, allowing us unlimited possibilities in the testing arena.
Understanding Keywords
Keywords represent the actions that you are performing on your application. These actions can be anything from a mouse click, or opening-closing of a browser window to a mouse hover action, complex logical actions, or even validations.
Opkey Keywords
Opkey is an intelligent automation platform that helps create test cases for complex scenarios with keywords. Opkey 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 works?
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 4 types of keywords in Opkey based on user functions:
- Action keywords- Your actions on an application.
Example- Opening a browser
Keyword- OpenBrowser
- Verification keywords- If you want to verify particular text or object of an application.
Example- verifying email address
Keyword-VerifyObjectText
- Get keywords- You can get information about the application
Example-Number of columns in a row
Keyword-GetTableColumnCount
- Control flow constructs- You can add a comment or apply condition like if/else to a test case.
Example- Verifying username
Keyword- If/Else
To know more about keywords learn automation testing online from Opkey University.
Custom keywords in Opkey
You know that Opkey has a keyword library from where you can call and add keywords to your test cases. But what if you require a keyword for a business-specific test case that is not included in the existing library? You can execute such test cases using Custom keywords. This is a unique feature of Opkey as it is not offered by most test automation platforms.
You can design and add Custom keywords to the keyword library. However, it is necessary to have coding knowledge to create Custom keywords. So, if you are a business user, your developers can create custom keywords in Opkey by writing Java codes in the Coded function library (to know more about coded function libraries visit Opkey University and complete automation testing course).
Your developer team can also create jar files. Once the jar files are created, you can use the keyword management tool to create custom keywords. Custom keywords can be called and reused across test cases along with generic keywords.
To get detailed information about Opkey custom keywords, complete the automation testing university certification.
Steps to use Opkey keyword in test cases
You can simply select the relevant keywords from the Opkey keyword library to create test cases. Here are the steps:
- Identify the keyword and click the + sign beside the recorder.
- Add test steps using specific keywords.
- Enter data in the input parameter. This includes the object name, unique ID or class of each object, and value of each object.
- Save and run the test case.
Benefits of Opkey keywords in creating test cases
- Add logical scenarios in test cases
- Simple and user-friendly language
- Easy to modify test cases.
- Reduce maintenance costs.
- Can be reused in the same or different test cases.
- Improves test coverage.
- No coding skills required
Conclusion
To know about Opkey keywords in detail, visit Opkey University. It is the best website to learn automation testing. Become an expert in codeless automation by using keywords to create test cases easily.