1. Home
  2. OpKey Help
  3. 1. A Quick OpKey Walkthrough
  4. 1.1 Automate your first Test just within 10 minutes

1.1 Automate your first Test just within 10 minutes

Hi, over the next 10 minutes you will be introduced to Test automation awesomeness by using OpKey. This tutorial will help you create your first automation script, organize it according to automation best practices, data drive with dynamic data and execute it on multiple browsers — All in less than 10 minutes!

By using OpKey – Test Automation Platform, you can easily automate your test case without writing even a single line of code. With OpKey, test cases can be recorded, manually created or scripted and used for automated playback and error logging.

So, let’s get started without wasting time further!

  • Go to the OpKey-Web page and login with your user credentials.

  • After successful login, select ‘Project’ and ‘Mode’ to proceed.

  • Go to the left pane of the dashboard screen, create a new folder to organize all your automation artifacts. Now, choose the ‘Root Folder’ and choose ‘Test Case’ option to do that.

  • Open your Test Case to create test steps
  • Here, you can add test steps by clicking on add step button and adding respective keyword. Alternatively, test case can also be easily created by recording your actions performed over the web application. But before that, you would need to install ‘OpKey Smart Recorder’ on the machine.


noteMake sure that JRE (version 1.8 or above) and OpKey Smart Recorder is installed on your machine. For more details, refer OpKey Smart Recorder installation.


 Flowchart for Automating Your First Test Case within 10 Minutes

Getting started with recording:

  • Now, you can start recording with OpKey Smart Recorder on latest web browsers (Google Chrome, Mozilla Firefox, and Internet Explorer)
  • Click on ‘Record’ button
  • Click on ‘Web Recorder’ button

  • It detects Java & OpKey Smart Recorder whether they are installed on your machine or not. After successful detection they get verified
  • Simultaneously, a pop up message to keep/discard jnlp file of OpKey Recorder appears at bottom. Click on Keep to proceed the recording process

Further, you need to choose/create an OR file to store objects to be fetched during recording session. You also need to choose a browser on which you want to perform recording.


noteOnce JNLP file gets downloaded, it detects Java & Recorder whether they are installed successfully or not. Java & OpKey Smart Recorder must be installed on your machine. Keep JNLP File and launch it to start OpKey Smart Recorder successfully. You can launch OpKey Smart Recorder externally from the shortcut on your local machine.


Click on objects of web application to record their properties. Below given image shows the recorded properties of actions performed on web application. Click on ‘Add Row’ button to add new row in property list. ‘Delete Row’ can be used to delete selected step from the list. You can also switch to any other browser by clicking over the given browser at the top. ‘Navigate’ button allows you to open desired URL on the browser for recording.

There are two advanced features of recording: Record & Spy. ‘Record’ is default recording mode which allows you to record & fetch properties of the desired object by clicking over the object. While using ‘Spy’ feature, press Ctrl button of keyboard and mouse hover on the object to record all the properties to the current step within OR for future use.

  • Once the recording process has completed, stop the recording process by clicking on ‘Stop & Save’ button. It asks you to save recorded objects and close the recorder. Click on ‘Save’ to proceed.

Once, you have saved your recorded test steps, you can go through your newly created test case script as shown below:

Test Case script:

Your test case script is created successfully by recording with OpKey Smart Recorder. And, you also have a separate object repository to store your data. It’s looking good; isn’t it?

Now, you can improve this test even further. Replace the static value and configure your test to pick dynamic data from Global data repository file. In other words, you can parameterize your test script and it is pretty easy in OpKey. Let’s see how you can do this.

But, before parameterizing, you need to create a ‘Global Data Repository’ file from which the data will be picked by following below steps:

  • Create a New Global data repository file. Right click on a root folder > Create New Global Data Repository. Enter values within the cells as per your required test scenario.

  • Open your test case and go to the ‘Data Input Argument’ in right pane. Select your Global DR file and expand it.
  • Go to the specific test case step and map with corresponding column to pick its data value. The static value of your recorded test case step will be replaced with the mapped Global DR value.
  • During execution of that test case, first iteration will be executed with the first cell value of the mapped column and so on.


Now, click on ‘Run now’ button to execute your Test script. You need to select Session Name, Choose or Create Build, Plugin used, Execution Agent and Generic Plugin in Execution Wizard to proceed execution process.

Show Advanced Settings’ option is available in execution wizard which helps you configure Snapshot of steps (along with quality and step timeout), session tags and global variables.

noteBefore starting execution on your local machine, make sure that OpKey Execution Agent is configured & running properly on your machine. In case of execution on cloud, there is no need of OpKey Execution Agent. For details about OpKey Execution Agent, click here.

Just after few seconds, a dialog box appears with notification message ‘Execution Started Successfully’.


Execution Logs: 

Once, execution gets started, Execution Logs are generated. You can go through execution logs and analyze your test execution.

Execution Result: 

You can analyze the execution result in OpKey which is available in three modes: Summary, Detailed, and Debug. These reports facilitates you check your scenario with passed and failed steps. Summary mode of execution result is shown below.

You can also ‘Expand all’ and ‘Collapse all’ executed steps by using respective buttons whether they are fail or pass individually. You can delete selected execution result. ‘Search’ feature is also included within the execution result.

Was this article helpful to you? Yes 7 No 2