Execution & Result

Opkey makes running your automated tests simple. You can execute test cases, function libraries, test suites, and Gherkin files with just a click of a button. There are two options: "Run Now" and "Debug Now".


  • Run Now is typically used for regular test execution.
  • Debug Now is a helpful tool for developers to identify and fix problems in their tests.

Once you've run your tests, you can view the results in the "Execution Results" section for analysis.



Before you can run tests on Opkey's web platform, you'll need to configure the Opkey Execution Agent on your machine. 



Execution through Debug Now

Opkey offers an alternative execution mode called "Debug Now" This is ideal for developers who want to quickly troubleshoot and fix issues within their tests.


Using "Debug Now" is similar to running tests with "Run Now." Just click the "Debug Now" button and follow the same steps you would for regular execution. The key difference is that "Debug Now" provides additional features for debugging purposes, allowing developers to go through the test code line by line and identify problems more efficiently.


To view this mode, 1. Go to your Project Workspace 2. Select your test case to be executed 3. Select the Run button and view the Debug mode of execution.



When execution through Debug now gets completed, you can go through the execution result which contains detailed logs about all the steps. With the help of these logs, developers can easily analyze bugs and debug them as well.


Execution using Spock Agent on Windows machine

Opkey offers a cloud-based execution option called the Spock Agent. This is perfect for new users who want to skip the initial download and installation of the local execution agent.

Here's how it works:

  1. Access the Local Execution Wizard: Locate the Local Execution Wizard within Opkey.
  2. Choose the Spock Agent: In the wizard, select "Spock Agent" instead of your local agent.
  3. Pick Your Cloud Environment: Opkey provides Spock Agent locations in various regions like India and the United States. Choose the one that best suits your needs.
  4. Select Your Browser: Specify the browser you want to use for the live test execution on your system (Chrome, Firefox, or Internet Explorer).
  5. Run Your Tests: Once you've configured these settings, initiate your test execution. The tests will run on the chosen Spock Agent in the cloud, while the live test results will be displayed in your chosen browser on your local machine.

Prerequisites of Opkey Spock Agent: 

The Spock Agent will have all the plugins provided by Opkey except Mainframe and Opkey Java Plugin.  

 

Pre-requisite for Spock Agent 

Java-1.8- Latest Version 

 

Proceed to execute their run through Spock Agent in a similar manner as Opkey Execution Agent.  


 

 

Select the Region as India or the United States 

 

 

 

 

The browser can also be selected according to the requirement:  

 

Opkey Supports 4 browsers for Windows: 

Chrome 

Firefox 

IE 

Edge 

 

3 browsers for Mac 

Safari 

Chrome  

Firefox 


Select the required plugin and click on the Show Advanced Setting. 

 

Proceeding with the Next icon, navigate to the window of Advanced Execution Settings. 

 

 



Users can select the Validation Report and proceed with the Next icon.  

 

 

Fill the details to proceed with the next necessary steps. 


Users can add Session Tags to add tags and click on the Next button. 



In the next window select the Global Variable and click the Next button. 

 

 

 

Upon clicking the Finish button, a jar file will be downloaded. The user must set this up as a one-time activity. By clicking on the utility, the Teleporting Tunnel will be updated.

 

 

 

The required selected plugins and other components will get updated and downloaded. This is a one-time activity.  

  

 

Spock Agent Supports the latest version of the browser along with the previous versions. 

 

Spock Agent allows the triggering of executions from several applications of Jenkins, BrowserstackSaucelab, and pCloudy. 

 

Spock Agent can be executed for Opkey Web, Surge, Job Portal, and also for Multibrowser with a utility that has to be launched. 

 

The Spock Agent allows a maximum of 20 executions at one go.  

 

Execution using Spock Agent on Mac machine


Opkey's Spock Agent is a convenient option for Mac users to execute tests without needing a local agent installation. However, Mac users will need to adjust their Security and Privacy settings to allow the download of the Opkey Teleporting Tunnel jar file. This file establishes a secure connection between the server and your machine for test execution.


Steps to Execute a Test Using Spock Agent:

  1. Open Your Test Case: Locate and open the test case you want to run.
  2. Initiate Execution: Click the "Run Now" button.
  3. Choose Spock Agent: In the "Execution Agent" dropdown menu, select "Spock Agent".
  4. Specify Region and Browser: Choose your preferred region (e.g., India or the United States) and the browser you want to use for the live test execution (Chrome, Firefox, or Internet Explorer).
  5. Advanced Settings (Optional): If you need to configure advanced execution settings, check the "Show Advanced Settings" checkbox.
  6. Start the Test: Click "Finish" to begin the test execution. The test will run on the chosen Spock Agent in the cloud, while the live results will be displayed in your selected browser on your Mac.


 


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.


  • The 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.



Appy 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 results.


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


If you need to use the Spock Agent, please contact the Opkey support team at support@opkey.com. The support team will coordinate with you and assist in installing the Spock Agent in your locally hosted Opkey environment.


Multiplugin Support with Spock Agent

The Opkey Spock Agent now supports multiple Opkey plugins. Previously, it only supported the Selenium-JS plugin. The list of Spock Agent-supported plugins for Windows and Mac systems is provided below:

Supported Plugins for Windows & Mac Systems

  1. Selenium-JS
  2. (Add other supported plugins here as applicable)


For further information or assistance, please contact the Opkey support team at support@opkey.com. The support team will coordinate with you to ensure seamless integration and setup of the Spock Agent with your locally hosted Opkey environment.



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

Implementation of Chromium Edge Browser in Local Execution Wizard

We have included Microsoft Edge as an additional browser option in the Local Execution Wizard. Along with Chrome, Firefox, and Internet Explorer, users can now select Microsoft Edge for their test executions.

Key Features:

  • New Browser Option: Users can choose Microsoft Edge as their browser for executing tests via the Spock Agent.
  • Browser Details: When a test run is executed, the details of the browser used will be reflected as Edge.
  • Validation Reports: Users can generate Validation Reports through the chosen browser, including Edge.


For any assistance or further information, please contact the Opkey support team at support@opkey.com. The support team will help you coordinate and install the Spock Agent in your locally hosted Opkey environment.


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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article