Opkey Desktop/Java recorder

Opkey Desktop Recorder is a Recorder utility that helps you in automation of a desktop application. By using Desktop Recorder, you can record all actions performed on the desktop and create a Test Case or Function Library easily. The created Test case or Function Library can be further customized as per the requirement.


Java Recorder is also a Recorder utility, integrated with Opkey Desktop Recorder utility, which records actions performed on Java Desktop Applications.


Need of Opkey Desktop/Java Recorder:


Automating Windows in desktop Applications is a challenging task. Now, it's seamlessly possible to automate Windows applications by recording actions performed on the Windows machine by using Opkey Desktop Recorder and then playing it back to execute the created test script.


Some desktop applications behave as Java Applications. In this case, Opkey Java Recorder starts working and records all actions performed on the desktop Java applications. Now, Java Recorder comes with the Desktop Recorder which automatically detects Java applications.


It comes with the Opkey Smart Recorder package. For installing the Opkey Desktop Recorder, please refer to Installing Opkey Smart Recorder. Once, it has installed on your machine, its icon on the desktop will be shown below: 




Opkey Smart Recorder is a complete recorder package that works as a Web, Mobile as well as Desktop Recorder. You need to choose the platform (Web, mobile, or Desktop) on which you want to perform recording.


If you are performing recording on a Web, mobile, or Desktop application for the first time, you need to install Opkey Smart Recorder. Once it is installed, you can perform recording on the supported platform applications.



Getting started with Opkey Desktop/Java Recorder:

To start recording on the desktop by using Opkey Desktop Recorder, you need to follow the below-given steps:


Recording Test Steps through Desktop Application Recorder:

Create a Test Case/Function Library.

Click on the Record button and then Desktop Recorder as shown below.




There are two options for creating an Object Repository (collection of objects to be fetched): Default Object Repository and Choose Object Repository. You can select any one of them and start recording a session.


If you select the Default Object Repository option, then an OR file will be created in the default folder which will contain all the fetched objects.





If you select the Choose Object Repository option, then the existing OR files will be displayed. 



You can select any OR file or create a new OR file.





Click on Start Recording to begin the recording process.


canA new Java Recorder has been implemented with Opkey Desktop Recorder. It is able to record actions performed on Java-based applications & play them back using Java plugin.

(A) Selected Application mode:


Quick Start Screencast:


In this mode, you can perform the recording process on a selected application. Provide the full path (without Quotation marks) of the .exe file of the application to be recorded. (Here, VLC Media Player).





Paste the Desktop Application location path (without Quotation marks) at the specified location.




Desktop Recorder and Application Window opens. Start working on your Desktop Application. Let us start the recording process. You can see that your actions being performed on the application are being recorded here.

an While working with the Desktop Recorder in selected application mode, there is a checkbox (Allow Chromium Embedded Recording) implemented. This option should be selected only when your desktop application has embedded Chrome web browser. 


It allows you to record the test steps in case Chrome gets launched inside the desktop application. There is a new keyword Win_LaunchWebApplication which launches the web part of the desktop application during test execution.





You can switch to the Spy mode of recording. In Spy mode, you need to press Alt button and hover mouse on the desired object. the 

Once, its properties are fetched, leave the Alt button and select the relevant action keyword from the dropdown list and add it. You can add it as a Test Step or add only objects.




(B) Any application mode:

Quick Start Screencast: 


In this mode, you can perform recording on any desktop application. Select Record on any Application radio button and click the Start button.




The recorder window will open. Let us start the recording process. You can see that your actions being performed on the application are being recorded here.


Further procedures of the recording process are the same for both the steps: Selected application and Any Application.


You can have a look at the Test Steps being recorded through Any Application mode of Desktop Recorder.





Once, the Spy mode of recording session is finished, go back to the Record mode. When the recording process gets completed, click on the Save & Close button to save the recorded objects and close the recording session.is





Working with Java Recorder:

Overview:


There are some desktop applications that are based on Java Technologies & they behave like Java Applications. In order to record actions performed on those Java Desktop Applications, there is a Java Recorder in Opkey which comes integrated with Desktop Recorder. 

You don’t need to install it separately. While using Java Recorder on Java desktop applications, it automatically detects the application & records all actions along with object properties & images. There is a separate Opkey Java plugin for executing Test Cases created for Java Desktop Applications. 

You can opt for any mode (Selected application mode or Any application mode) for recording actions from a Java desktop application.


Here, you can view that the actions being performed on the Java desktop application are being recorded one by one. Recorded actions have been added as test steps along with corresponding Java Recorder-specific keywords.






Quick Start Screencast:

Let us have a look at the recorded Test Steps for the Test case.






Now, you can execute this Test Case and analyze the execution result.

Click on Run Now (F5), fill in all required fields and initiate the execution process. Once, execution process has been completed, you can view the execution result.


Explore more Opkey features by clicking Here.  

To enroll the opkey courses series, visit https://university.opkeylms.com/.


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