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 the Project to work on that.

  • Go to the left pane of the dashboard screen, create a new folder to organize all your automation artifacts.

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.

 

 Workflow for automating your first Test Case within 10 Minutes

  • Select a folder and then click on the Create New File button and then select Test Case.
  • Open your Test Case to add test steps. Here, you can add test steps by clicking on the Add Test Step button and adding the respective keywords. Alternatively, the test case can 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.

Getting started with recording:

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

  • Here are two ways to record actions performed on the web application: Using Smart Recorder and using Chrome Addon.

Let us first see how to use the Smart Recorder and Chrome Addon one by one.
 

Recording using Smart Recorder

Recording using Chrome Addon

Test Case

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 the right pane. Select your Global DR file and expand it.
  • Go to the specific test case step and map with the 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 the execution of that test case, the first iteration will be executed with the first cell value of the mapped column and so on.

Execution

Now, click on the 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.

 

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

16

Execution Logs

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

Execution Result

The execution has passed successfully. You can select the specific test steps and view the input and out data. You can export execution reports in different formats: Summary, Detailed, IntegratedDataReport and Gherkin Report.

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

 


Quick Start Screencast: