Test Case Execution through Spock Agent

A Test Case includes steps or Function Libraries with Keywords that can take inputs and produce outputs usable in subsequent steps. 

  

The test case module includes an integrated recording feature for capturing web application actions, making test case creation fast and easy.  

 

For instance, you can create a Test Case to assess the functionality and user interface of an e-commerce web application, with steps including login, product search, purchase, payment, and logout.  

  

To create a new test case in Opkey Web, follow these steps: 

Start by logging in to your Opkey Web account. 

 

Once you're logged in, navigate to the "Project Workspace" folder. Right-click on the Project Workspace folder and select the Test Case option to create a new test case. 

  

  

  

Rename the test node and begin recording the test steps by clicking the Recorder button. Select Web Recorder from the available options.   

 

  

  

On the pop-up window, select the Object Repository, select Browser, and start Recording.  

 

  



A recorder window will open along with the browser window. Add the desired URL to begin performing steps.  

  

  

  

Perform steps on the browser.  

   

Once done, click on the Save and Close button. Your recorded steps will be saved in the test case.  

  

  

  

Save the Test steps with the Save button. Click the Run button to execute the test case.  

 

  

  

Local execution wizard opens up, select Agent Spock from the drop- down.

 

  

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


Proceeding with the Next icon, the user will be navigated to the window of Advanced Execution Settings. 


 


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


 

Fill in the details to proceed with the next necessary steps. 


Add Session Tags if required and click on the Next button. 


 


Click on the Finish button. 


Opkey Spock Agent utility gets launched. 


 



A jar gets downloaded. Set up the utility as a one-time activity. 


 



Click on the utility and it will update the Teleporting Tunnel. 


 


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


 


Spock Agent allows the triggering of executions from several applications such as Jenkins, Browserstack, Saucelab, and pCloudy. 


Spock Agent works on Opkey Web, Opkey Surge, Job Portal, and also for Multibrowser. 

 

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
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article