LambdaTest Out Of Box IntegrationLambdaTest Integration to Execute Web Automation Scripts

LambdaTest Integration to Execute Web Automation Scripts

This article provides the instructions on how to integrate algoQA with LambdaTest for performing web test automation. It includes prerequisites, configuring the necessary files and running the tests.

Prerequisites

  • Make sure you have an appropriate licensed version to perform web test automation in LambdaTest.
  • Upon obtaining the license, log in with your credentials and navigate to the Dashboard page. Click the Access key button in the top-right corner to view the access key. Your username will be displayed alongside the registered username. For example, if your registered username is John Davis, it will appear as "John Davis" in place of 'username'.
    LambdaTest Access Key page showing Hub, Username and Access Key fields

Integrating algoQA with LambdaTest

Perform the following:

  1. Log in to your LambdaTest account.
  2. Paste your LambdaTest Username and Access Key in the test scripts for generating a secure remote connection with algoQA through LambdaTest Remote URL.
  3. Example of a Remote URL= "http://username:accesskey@hub.lambdatest.com/wd/hub"
  4. Navigate to LambdaTest Automation Capabilities Generator for declaring desired capabilities. For instance, if you wish to test on macOS High Sierra using Firefox browser then desired capabilities for Java frameworks would look like below.
    LambdaTest Automation Capabilities Generator with Java framework selected and generated code snippet
  5. In algoQA, after generating a test case in a project, click the Generate Script button.
  6. Follow the procedure described in the Generate Test Case and Test Scripts for generating the scripts.
  7. After generating the Java Selenium scripts, navigate to the script downloaded folder to open the ApplicationSettings.xml file. For example, you can find the ApplicationSettings.xml file in an algoQA-generated script folder for a web automation available at - ScriptGeneration_202310311222.zip\AlgoAFScript_202310311222\src\test\java.
  8. In the ApplicationSettings.xml file, update the following:
    FieldDescription
    URLhttps://www.lambdatest.com/
    BrowserTypeLambda
    UsernameParimala.bc
    Access keyHyDKmA3cf32RImwztkupVWUrZJFLFLWWyMRghDrUvNPSJXKymm
    LambdaTestBuildEnvironmentName
    LambdaTestURLlambdatesturl.com
    ApplicationSettings XML file showing LambdaTest URL, BrowserType, LT_USERNAME and HubURL fields
  9. Navigate back to pom.xml directory and open 'Command Prompt' in the same directory.
  10. Run the following command to execute the script:
    mvn test