1. Home
  2. Opkey Help
  3. 6. Working with Opkey Recorder
  4. 6.2 Opkey Desktop/Java Recorder

6.2 Opkey Desktop/Java Recorder

Overview:

OpKey Desktop Recorder is a Recorder utility which 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 in an easy way. The created Test case or Function Library can be further customized as per the requirement.

Java Recorder is a 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 desktop Applications is a challenging task. Now, its seamlessly possible to automate Windows applications by recording actions performed on the windows machine by using OpKey Desktop Recorder and then play 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 OpKey Desktop Recorder, please refer Installing OpKey Smart Recorder. Once, it has installed on your machine, its icon is showing on the desktop as shown below:

noteOpKey Smart Recorder is a complete recorder package which 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 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 platforms 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 Record button and then Desktop Recorder as shown below.

  • There are two options of creating Object Repository (collection of objects to be fetched): Default Object Repository and Choose Object Repository. You can select anyone of them and start recording session.
  • If you select 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 Choose Object Repository option then tree of existing OR files will be displayed. You can select any OR file or create new OR file.

  • Click on Start Recording to begin recording process.

noteA 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 recording process on a selected application. Provide 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 recording process. You can see that your actions being performed on the application are being recorded here.

noteWhile working with the Desktop Recorder in selected application mode, now 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 new keyword Win_LaunchWebApplication which launches web part of the desktop application during test execution.

  • You can switch to to the Spy mode of recording. In Spy mode, you need to hold pressed Ctrl button and hover mouse on the desired object. Once, its properties are fetched, left Ctrl button and select relevant action keyword from the dropdown list and add it. You can add it as a Test Step or add only objects.

 

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

d7

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

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

(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 Start button.

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

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

 

 

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

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

d7

Working with Java Recorder:

Overview:

There are some desktop applications which are based on Java Technologies & they behave like Java Applications. In order to record actions performed on those Java Desktop Application, there is 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 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 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 has 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 to the Test case.

  • Now, you can execute this Test Case and analyze execution result.
  • Now, you can execute this Test Case and analyze execution result.
  • Click on Run Now (F5), fill all required fields and initiate execution process. Once, execution process has completed, you can view execution result.
Was this article helpful to you? Yes 2 No 1