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.
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:
- Access the Local Execution Wizard: Locate the Local Execution Wizard within Opkey.
- Choose the Spock Agent: In the wizard, select "Spock Agent" instead of your local agent.
- 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.
- Select Your Browser: Specify the browser you want to use for the live test execution on your system (Chrome, Firefox, or Internet Explorer).
- 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.
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, Browserstack, Saucelab, 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:
- Open Your Test Case: Locate and open the test case you want to run.
- Initiate Execution: Click the "Run Now" button.
- Choose Spock Agent: In the "Execution Agent" dropdown menu, select "Spock Agent".
- 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).
- Advanced Settings (Optional): If you need to configure advanced execution settings, check the "Show Advanced Settings" checkbox.
- 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.
Now, you need to configure the required Security and Privacy Settings.
Appy the required settings as shown below:
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
- Selenium-JS
- (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.