Using Visual Plugin keywords - Opkey Classic

To use keywords, include them in a test step and provide input and expected output data. 

For instance, consider using the PasteTextOnEditBox keyword.

 

This keyword will copy the text from the clipboard and paste it on an EditBox object. It takes an EditBox object as an Object input argument. This keyword is mostly used in situations where you want to copy any text from the clipboard and paste it into the Edit Box.


Note: The Visual-Specific keywords work on the image and tolerance property of the object and are used for image-based testing.


Let's follow the steps to add this keyword.


1. Add a new step in your test case by clicking the + icon at the top. Search PasteTextOnEditBox and click on the search result to add it to the new test step.




2. Now add an Object Input Argument. Here we will add an Edit Box object as an Object input argument. 





3. Now add input argument as Match Score which will allow you to add your custom match score to pass or fail the Keyword while executing the run. The script will run unaltered if no Match Score is provided as the Input Value. The rest keywords will run as usual.



These values are filled as per the requirement of the keyword used in the test case as shown in the image below. We have given similar tables for each keyword for illustration. 


In this Keyword, adding a Test Object argument was required. Hence, we have mentioned it is required.


Test Object


Test Object Required

Description

Yes

This Keyword takes the EditBox object as an Object input argument. You can choose the EditBox object from your Object Repository on which you want to Paste Text from Clipboard.


Input Data


Input Data Required?

Description

No

This keyword doesn’t take any data input argument.



Output Data

  


                         Condition

                  Output Value

If the keyword passes successfully

True

If keyword fails

False



Application

Comments

Opkey Admin


PasteTextOnEditBox

Object

< Choose the Edit Box Object From OR >


Fetch the Edit Box Object “Username” and then capture its image by clicking on the icon. Save the Image property of the object and set its Tolerance Property. Check the Is Used checkbox only for Image and Tolerance properties.


To use keywords, include them in a test step and provide input and expected output data. 

For instance, consider using the PasteTextOnEditBox keyword

 

This keyword will copy the text from the clipboard and paste it on an EditBox object. It takes an EditBox object as an Object input argument. This keyword is mostly used in situations where you want to copy any text from the clipboard and paste it into the Edit Box.


Note: The Visual Specific keywords work on the image and tolerance property of the object and are used for image-based testing.


Let's follow the steps to add this keyword.

1. Add a new step in your test case by clicking the + icon at the top. Search PasteTextOnEditBox and click on the search result to add it to the new test step.




2. Now add Object Input Argument. Here we will add an Edit Box object as Object input argument. 





3. Now add input argument as Match Score which will allow you to add your custom match score to pass or fail the Keyword while executing the run. The script will run unaltered if no Match Score is provided as the Input Value. The rest keywords will run as usual.



These values are filled as per the requirement of the keyword used in the test case as shown in the image below. We have given similar tables for each keyword for illustration. 


In this Keyword, adding a Test Object argument was required. Hence, we have mentioned it is required.


Test Object


Test Object Required

Description

Yes

This Keyword takes EditBox object as Object input argument. You can choose the EditBox object from your Object Repository on which you want to Paste Text from Clipboard.

Input Data


Input Data Required?

Description

No

This keyword doesn’t take any data input argument.



Output Data

  


                         Condition

                  Output Value

If the keyword passes successfully

True

If keyword fails

False



Application

Comments

Opkey Admin

This keyword will copy the text from the clipboard and paste it on an Editbox object.

PasteTextOnEditBox

Object

< Choose the Edit Box Object From OR >


Fetch the Edit Box Object “Username” and then capture its image by clicking on the icon. Save the Image property of the object and set its Tolerance Property. Check the Is Used checkbox only for Image and Tolerance properties.


Please go through the list of list of Visual Plugin keywords.

List of Opkey Keywords - Visual Plugin keywords  


 

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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article