Skip to main content

LambdaTest Capability Map to Migrate from BrowserStack & SauceLabs


Introduction

Besides LambdaTest, BrowserStack and SauceLabs also offer the cloud-based Selenium Grid. Migrating your BrowserStack or Sauce Labs tests to LambdaTest requires a few tweaks in your code. In this guide, we'll look at what changes that have to be made for easy migration to LambdaTest.

Changes to be made


Authentication

Firstly, you need to change the authentication in the configuration settings of your test suite. For running tests on LambdaTest Selenium Grid, you need to have a valid user_name and access_key to perform tests on our cloud Grid. In case you don’t have an account on LambdaTest, visit the LambdaTest signup page and create a new account.

The following are the changes in the parameters:

  • Username
  • Access Key

You can find the Username and Access Key in the LambdaTest Automation Dashboard.

Image

When migrating from BrowserStack or SauceLabs to LambdaTest, you need to make the following changes in the existing code:

  1. UserName
  2. AccessKey
  3. Hub URL
  4. Desired Capabilities

Here is a side-by-side comparison of each of the fields that we have highlighted above:

PropertyTypeLambdaTestBrowserStackSauceLabs
UserNameStringUserName to access Selenium Grid on LambdaTestUserName to access Selenium Grid on BrowserStackUserName to access Selenium Grid on Sauce Labs
AccessKeyStringAccessKey to access Selenium Grid on LambdaTestAccessKey to access Selenium Grid on BrowserStackAccessKey to access Selenium Grid on Sauce Labs
Hub URLString@hub.lambdatest.com/wd/hub@hub-cloud.browserstack.com/wd/hubondemand.us-west-1.saucelabs.com/wd/hub
Authentication
userName = "LambdaTest_UserName"
accessKey = "LambdaTest_AccessKey"

Mapping of Capabilities


The following capabilities from the other Cloud platforms (BrowserStack and SauceLabs) will be mapped automatically in the LambdaTest platform.

CapabilitiesLambdaTestBrowserstackSauceLabs
Build namebuildbuildNamebuild
Project nameprojectNameproject-
Session name/TestnamesessionNamename
OS (Selenium 4)platformNameosplatformName
OS (Selenium)platformosplatform
OS version-osVersion-
Browser version (Selenium)versionbrowserVersionversion
Screen ResolutionresolutionresolutionscreenResolution
Selenium versionselenium_versionseleniumVersionseleniumVersion
Driver versiondriver_version-browser_name+driverVersion
Geo LocationsgeoLocationgeoLocation-
Local testingtunnel (bool)local (bool)tunnelIdentifier (string)
ScreenshotvisualdebugrecordScreenshots
Video RecordingvideovideorecordVideo
Time zonetimezonetimezonetimeZone
ConsoleconsoleconsoleLogsextendedDebugging
Network logsnetworknetworkLogsextendedDebugging
tip

You can generate capabilities for your test requirements with the help of our inbuilt 🔗 Capabilities Generator tool.

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles