How to Run Your Opkey Tests from Opkey App

Opkey-Continous Test Automation is available with a whole new experience to the test automation community.

  • Record your test cases using the powerful Opkey recorder extension available in the Chrome store.
  • Create and manage your entire test automation scripts.
  • Run the recorded test cases from Salesforce itself.
  • Access real-time mobile devices and browsers using our pCloudy integration.
  • Opkey Impact Analysis will save your precious debugging time by which the user can simply validate the change and update the scripts accordingly.
  • The Salesforce Scanner lets the user create Function Libraries of the Salesforce Objects

Install Opkey Agent

Opkey Execution Agent is a functional test execution engine that helps you to execute your test script. Let’s quickly follow the procedure to install the Opkey agent.

  • Double-click on the downloaded setup file of Opkey Agent and wait for the setup file to extract.
  • Click on the Next button to initiate the Agent installation process.
  • Here, you can read the End User License Agreement. Check the “I accept the terms of the License Agreement” checkbox and click on Next.
  • You can customize the installation of Opkey Execution Agent features during installation. If you want to install the full version of Opkey Execution Agent then select ‘Full‘ and select ‘Custom‘ if you want to customize it. Click on the ‘Next to proceed.
  • In this step, the Opkey Execution Agent calculates the available, required & remaining space on your machine. Click on ‘Next‘ to proceed.
  • From here, you can customize the usage of this Opkey Execution Agent being installed on your machine for All users of this computer or Just me. If you select All users of this computer then it will be accessible to all users working on this computer whereas if you select ‘Just me’ then it will be accessible only to the current user of this computer.
  • You can check Create Installation Logsto view installation logs on completion of Agent installation. Click on Next to proceed.

Configure Opkey Agent

Once Opkey Execution Agent has been installed on your machine successfully, you need to configure it for executing your test on OpKey Web. Follow the below given instructions to configure your Opkey Agent:

  • Double-click on the Opkey Execution Agent Icon to launch it.
  • Go to the Authorize Web Execution Agent section.
  • Here we have two methods to configure Opkey Agent: 1. Opkey Server Credential and 2. Authentication Code

Configure OpKey Agent: OpKey Server Credential (Method 1)

In this Opkey Agent authentication mode, the user needs to select OpKey Server Credential as Authentication Mode.

  • Provide all the valid credentials:
  • Server URL: The server URL is your registered Opkey Web Domain.
  • Agent Name: You can provide any name here. This name will be displayed in the list of Opkey Agents for which the Opkey Web domain has been configured.
  • Username: This is your registered user name (it’s generally your email address) through which you can log in on the particular registered Opkey Web domain.
  • Password: This is the password corresponding to the registered User Name for the particular registered Opkey Web domain.
  • Comments(optional)
  • Click Login. A popup message will be displayed.
  • Click Yesto to re-launch Opkey Agent so that all the configured changes shall be reflected.

Configure OpKey Agent: Authentication Code (Method 2)

In this OpKey Agent authentication mode, the user needs to select Authentication Code as Authentication Mode.

  • Provide a valid Authentication Code.
  • Authentication Code: Authentication Code (a unique alphanumeric key) is available on the Agent Information page under Download Center.
  • Click Login. A popup message will be displayed.
  • Click Yes to re-launch Opkey Agent so that all the configured changes shall be reflected.

Once the Opkey Agent gets authenticated successfully, your Agent will be online. The name of the Agent will be visible in the Execution wizard on which you will be able to trigger test execution.

Run test from OpKey-Continuous Test  Automation

As we have already recorded our first test case, let’s understand how to run the test from Salesforce and view its result.

  • Open the previously recorded test “Test Case 1” from the project workspace tree.
  • Click on the “Run” button available on the test case toolbar.
  • Fill all the required fields on run wizard:
  • Provide value in the “Choose or Create Build” field. (say “Test Run”)
  • Provide value in the “Session Name” field. (say Test 1)
  • Select an online agent that is connected with the domain. (say “MASTER AGENT”). This is the agent that you configured earlier for OpKey runs.
  • Set step timeout = 90sec
  • Set snapshot frequency = All Steps. (This selection will capture a snapshot of all the steps executed in your run.)
  • Set snapshot quality = High
  • Select or deselect the “Highlight Object” checkbox as per your requirement to highlight the running step’s object when the run is in progress.
  • Click on the “Finish” button to start run when all the mandatory fields are filled. “Run” will be initiated successfully.
  • Wait for the run to complete.
  • After successful completion of the run, go to the “Execution Result” option available on top-bar in the “Test Automation” tab.
  • Select Build (i.e. Test Run) under which the run was initiated.
  • Open the session run result which was run under the Build “Test Run”.
  • Expand the result hierarchy to view the status of executed steps.
  • Click on the “View” option available inside the action dropdown of any step to view detailed information about the executed step:
  • Name of the step.
  • Step status
  • Total time taken for the step to run.
  • Snapshot of the executed step during the run.
  • Input data that was passed to the step during the run.
  • Output fetched by the step after step’s run completion.

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