Executions on Opkey with Agent Spock

Opkey allows you to execute your Test Cases, Reusable Components, Suites, and Gherkin file by clicking on the ‘Run’ button. You just need to follow a few simple steps for execution. 


Execution in Opkey One

Login to Opkey One and Click on Automate tab.


From here, you’ll have to move the Test tab.


You can create new tests or you can execute the existing ones. Select the Run button for executions.





Run Wizard opens on the right pane. Fill data in all the required fields of run name, milestone, and browser. Select the build, agent, plugin, etc. Click on the ‘Start Run’ button.




You can select other configurations like Snapshot of steps (along with quality and step timeout), session tags, and global variables.

                                                



Click on Start Run


Here, you can add session tags which helps you to recognize your sessions from execution results quickly and easily. 


If you want to change or modify any of the global variables, used in your test script, then you can do it from the below displayed screen. You can edit the desired global variable. 

                      



Execution through Run with Tag Version

Opkey users can execute their Suite based on tags added to the Reusable Component (added to Test Cases which are further added to the Suite). 

This feature is very useful in case you want to replace the execution of mapped Reusable Component with another Reusable Component having similar Tags, name & other parameters.

A Practical Scenario:

Suppose there is a Suite (name Suite-1) which has a Test Case (name TC-1) and this Test Case has multiple Reusable Component (FL1, FL2 & FL3) with tags (Tag-1, Tag-2 & Tag3) as per the build version. 

Suppose you are ready to release a new build of new version and there is a Reusable Component (name FL3, not mapped with TC) having the similar tags, values, input parameters etc. and you want to execute this new Reusable Component while replacing the FL3 (added in TC & TC mapped with the Suite) then you can click on the Run with Tag version button and select the Tag & respective value of the mapped Reusable Component.


In this case, it will skip the execution of mapped Reusable Component and will execute the corresponding Reusable Component existing in Project workspace having similar tags, values, input parameters etc. 

There is no need to open the Suite, its Test Case and Reusable Component and replace old Reusable Component with the new one automatically. 

Both Reusable Component must have the following similar parameters:

  • Name of Reusable Component

  • Name of Input Parameter(s) added to Reusable Component

  • Name of Input Parameter(s) added to Reusable Component

  • Data Type of Input Parameter(s) added to Reusable Component

Let us create a Suite by adding Test Cases. The suite can be executed with tags.

      

Click on Run with Tag Version button. Tag Version popup window opens. Select Tag & corresponding value from the dropdown.

Click on OK to proceed test execution based on selected tag version.


Execution using Spock Agent on Windows machine

Spock Agent  is a cloud based agent in Opkey which enables you to execute your test execution on this cloud agent. It is visible on the Run Wizard. If you are using Spock Agent first time, Opkey Teleporting Tunnel jar file gets downloaded. A popup message appears that Please Wait for OpkeyTeleportingTunnel...

OpkeyTeleportingTunnel jar file is downloading.


Once, it gets downloaded successfully, keep it and launch to establish a secure connection between server & your local machine for test execution.



Opkey Teleporting Tunnel downloads some important files. Let it install those required files.

In case Opkey Teleporting Tunnel jar file is already downloaded then you need to click on "Open OpkeyTeleportingTunnelLauncher" tab to launch OpkeyTeleportingTunnel.


You can mark Always open these types of links in the associated app checkbox which will launch the OpkeyTeleporting Tunnel automatically.

Here, you can have a look at the execution logs.

You can select any, browser (Chrome, Firefox or IE) from the Browser option. When the test execution is triggered, the execution will be performed on the chosen cloud agent but the live execution on the browser will be performed on your system. 

Prerequisites of Opkey Spock Agent:


Supported OS: Microsoft Windows 7, 8.1, 10 & Mac

Supported Browsers (Windows systems): Latest versions of Chrome, Mozilla Firefox or IE

Supported Browsers (Mac systems): Latest versions of Chrome, Mozilla Firefox or Safari

Java: Java 8, 9, 10 or 11

Execution using Spock Agent on Mac machine

Opkey Spock Agent also allows test execution on Mac machines. Here, you need to apply the required Security and Privacy Settings so that the Opkey Teleporting Tunnel jar file can be downloaded, saved and then used to establish a secure connection between server & your local machine for test execution.Let us execute a test using Spock Agent -

Open a Test Case. Click on Run. Select Spock Agent.

Click Start Run to proceed.

If you are using Spock Agent for the first time, the Opkey Teleporting Tunnel jar file gets downloaded. A popup message appears.

Save this file.

  •     OpkeyTeleportingTunnel jar file is downloading.

Once, it gets downloaded successfully, launch it to establish a secure connection between the server & your local machine for test execution.

A security popup message appears as shown below. Click OK.

Now, you need to configure the required Security and Privacy Settings.

Apply the required settings as shown below:

Click Open to open the downloaded Opkey Teleporting Tunnel Utility.

Opkey Teleporting Tunnel updating utility.

Opkey Teleporting Tunnel updating libs of utility.

Your test execution takes a while. Once it gets completed, you can view complete logs and execution result.

Opkey Spock Agent (cloud agent) now supports test execution on the locally hosted Opkey Web. 

Multiplugin Support with Spock Agent

Opkey Spock Agent supports multiple Opkey plugins. The list of Spock Agent supported plugins for Windows & Mac systems are given below:

Spock Agent supported plugins for Windows machine

Opkey Desktop

Oracle Fusion

Salesforce

Web

Utility

Visual

IE Plugin

Appium

Opkey OracleEBS

OpkeyMobility-Android

OpkeyMobility-iOS

PeopleSoft

Spock Agent supported plugins for Mac machine

Oracle Fusion

Salesforce

Selenium-JS

Workday

Utility

Workday



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

Feedback sent

We appreciate your effort and will try to fix the article