Opkey Web is now integrated with an advanced feature called Grid Execution. With this feature, users can execute (or queue) multiple suites at a time. Here, the user can either choose an agent on which he wants to execute his run or leave the agent field blank.
Opkey Hub:
Opkey Hub is a utility that allows you to execute multiple Suites parallel through Grid Execution with the help of Opkey Execution Agent. All the sessions to be executed from Grid, come in a queue in Opkey Hub and then Hub will start the execution immediately depending upon the availability of the agent. As soon as the Opkey Agent has finished the execution of the current session, it picks up the next Queued session and the process continues until the queue gets empty.
There are a few necessary settings that are required for Grid Execution. Let us apply those settings from Opkey Agent.

There are some Project Level Settings for Grid Execution feature that can be applied from the Project Management section in Admin.
Under the Admin section and click on the Project Management tab.

Click on the Update Project icon of the respective project to update the project for Grid Execution. Navigate to the Queued session settings and edit the number of maximum parallel runs allowed and maximum parallel runs allowed on BrowserStack. Maximum parallel runs allowed on BrowserStack should not be greater than the maximum parallel runs allowed.
Click on the Update Project icon to update the project for Grid Execution. Navigate to the Queued session settings and edit the number of maximum parallel runs allowed, maximum parallel runs allowed on BrowserStack and maximum parallel runs allowed on SauceLabs as per your requirement. Maximum parallel runs allowed on BrowserStack should not be greater than the maximum parallel runs allowed.

Click on Home to go back to the Web dashboard. To use this feature of Grid Execution in Opkey, follow the steps mentioned below:


To Add new Session Details:

Once the Suite has been selected, the Plugins get auto-filled with the corresponding Plugin Name. You can select the corresponding Plugin from the dropdown.

Click on the Agent dropdown list. The dropdown will get auto-populated with all the agents available for Grid Execution. You can select an agent on which you want to execute that particular session. In case, none of the agents is selected then, Opkey runs the execution randomly, on any available agent.

Click on the Browser/Devices to select the desired Browser/Devices. The dropdown will get auto-populated with various options for the Browser added in an agent from Grid Browser Settings. The Devices that are displayed in the dropdown are those devices that are configured with OpKey. Check the checkbox(s) provided to choose the desired Browser/Devices Name.

Adding Browsers from Agent for Grid Execution
Open Opkey Agent & click on Grid Browser Settings under Tools menu.

A pop-up window will get open as follows:

Click on [Add] button to add new Browser on the list. You can click on the Delete button to delete the selected Browser from the list. Click on the Save button to save the made changes.
SMTP Settings can also be configured from here. Click on the SMTP Settings button placed at the bottom Left corner of the screen.

The Advanced Settings for the session can either be Default or Custom settings. You can select the desired settings from the dropdown.

To configure the default settings for the grid execution, click on the Session Default Setting button available on the screen.
You can also click on the Settings icon to configure the custom settings of that particular session.
Once you have entered the required Session details, the session is in the ready to go state.

It is mandatory to open and connect Opkey hub for the execution of Queued Sessions.
Opkey Hub:
Opkey Hub is used to execute any Queued Sessions in Opkey. You need to install it as a standalone setup corresponding to the Opkey version that you are using.
Launch the Opkey Hub. Opkey Hub window opens as follows:

Select Web Mode. Fill all required valid credentials and click on Connect.

You can view queued and running queued sessions from Opkey Hub.
Click on Queued Sessions & Running Queued Sessions under Tools menu, to view queued and running queued sessions respectively.

Here, you can view list of queued sessions.

Here, you can view list of running queued sessions.

Click on Logs to view Opkey Hub Logs.

Session Queuing:
All the sessions added under Grid Execution, are first queued in the Queued Session list. You can view all the queued sessions in the Queued session list under Tools menu.



Suppose you want to run a Test Case/Function Library/Sparkin/Gherkin but no agent is available then that execution will gets added in the Queued session list.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article