What can we help you with?
< All Topics
Print

Sauce Labs

What is Sauce Lab?

Sauce Lab is a cloud-based cross-browser testing tool that enables developers/testers to test their websites across various browsers on different operating systems and mobile devices without requiring users to install virtual machines devices or emulators.

Why do we need Sauce Lab?

We require Sauce Lab for Compatibility testing i.e., a compatibility test is an assessment used to ensure a software application is properly working across different browsers, operating systems (OS), and mobile devices.

Sauce Lab Instance: –

In this section, we will cover the navigation to the Sauce Lab page and the Creation of a Sauce Lab Instance.

Prerequisites

To create a Sauce Lab instance user should have created an Account in the Sauce Lab application and should have a “Username” and “Access key”.

How to get a Username and Access Key from the Sauce Lab website?

  1. Create an account and Sign in to the Sauce Lab application.
  2. Navigate to Account in that go to User Settings there you will be having your Username and Access key, and refer to two images from the Sauce Lab Website.

Note:

  • While creating the Sauce lab account, select a country like Australia or the US.
  • In the Sauce, the lab selects the data center as us west1 before executing the scripts.

undefined

undefined

Navigation in FireFlink to Sauce Lab

Home icon >> Configuration >> integration >> plugin >> Sauce Lab

Steps to navigate to the Sauce Lab page.

1. Once you log into the FireFlink, you will be navigated to the “Project Menu” section of the “All project” level.

2. In the left navigation click on the ”Config” icon as shown below on the screen.

3. Next Select “Integration” from the dropdown menu as shown below.

4. Click on the “Sauce Lab” icon as shown below.

5. Once the user has clicked on the “Sauce Lab” icon we will be landing on the Sauce Lab page.

Steps to create an instance on the Sauce Lab page.

1. To create an Instance, click on the “+ Instance” button Initially when there are no Pages created. The “+ Page” button is provided at the center of the screen as shown below to create a Page.

2. Now Create popup appears as shown below.

3. Enter the Instance name, Username, and Access key, click on Create button and the page will get created. You can see the Page created successfully banner message. All the fields are mandatory.

4. You can’t create a duplicate Instance name.

5. Instance name text fields will accept characters between 3 to 100.

6. The created instance will appear on the Sauce Lab page with the Access Key in a hidden state, as shown below.

Table details on Sauce Lab page: –

The table under Sauce Lab contains 6 columns with column names InstanceName, Username, Access key, Created On, Created, and Actions.

  • InstanceName: In this column, you can see all the created Instance names.
  • Username: In this column, you can see the Sauce Lab username.
  • AccessKey: In this column, you can see the Sauce Lab Access key and it should be in a hidden state.
  • Created On: This column displays the date and time when the instance has been created.
  • Created By: This column displays the username who has created the instance.
  • Actions: When the user hovers the mouse under the Actions column under this column; Details, Edit, and Delete icons are available.

Details of Page, Edit, & Delete.

When the mouse hovers on Instance under the Action column, it will display Details, Edit & Delete.

Details of Instance: –

To view the details of the instance, click on the eye icon under the actions column. This will display the Details of the Instance created as shown below.

Attributes of Details popup:

This page consists of the details of all the attribute values that are non-editable.

  • Instance Name: This attribute displays the Name of the Instance which is given while creating a Sauce Lab instance. When the name of the Instance is updated, the updated name will be displayed.
  • Username: This attribute displays the UserName of the Instance which is given while creating a Sauce Lab instance. When the UserName of the Instance is updated, the updated UserName will be displayed.
  • Access Key: This attribute displays the Access Key of the Instance which is given while creating a Sauce Lab instance. When the Access Key of the Instance is updated, the updated Access Key will be displayed.
  • Created By: This attribute displays the username who has created the Instance.
  • Created On: This attribute displays the date & time on which the instance is created.
  • Modified By: This attribute displays the username who recently modified the instance.
  • Modified On: This attribute displays the date & time on which the instance is recently modified.

Edit Page

To edit the Instance, click on the edit icon under the action column. Edit Instance popup appears as shown below.

Edit the required information on fields and click on the Update button. You can see Edit successful banner messages.

Delete Page

To delete the instance, click on the Delete icon under Actions Column. A warning Delete popup appears as shown below.

Validation messages in Sauce Lab.

1. In Create Instance popup if the mandatory field is empty the error message will display as shown below.

2. If we create the duplicate instance name error message is displayed as shown below.

3. If Either Username or Access key or both fields are invalid Warning message is populated stating “Warning: Either the Username or Access Key is Invalid”.

Selecting Sauce Lab for Execution.

1. We can set Sauce Lab as our Executable Environment in three different positions and in the Executable environment dropdown we can set Sauce Lab as Default, and it should be displayed in the format as “SauceLab-InstanceName”.

  • In All project-level System configurations, Click on Config > Run Configuration > Environment Configuration as shown below.

As shown in the below screen now select Sauce Lab from Environment Configuration dropdown and click on the save button.

  • In Individual project level System configuration.
    As shown below the screen, navigate to the project then click on ConfigàRun ConfigurationàEnvironment Configuration.

As shown in the below screen now select Sauce Lab from Environment Configuration dropdown and click on save the button.

  • In Quick run settings.
    As shown in the below screen, navigate to a project and click on the test development icon, and then click on Quick run settings.

As shown in the below screen, now select Sauce Lab from the Environment Configuration dropdown and click on the save button.

Note:

  • In All project-level system configurations, if we set the executable environment as Sauce Lab, the same configuration should be reflected in the Individual project’s system configuration and Quick run settings.
  • In the Individual project level’s system configuration if we set the executable environment as Sauce Lab the same configuration should be reflected in the Quick run setting and vice-versa.

Executing the scripts using Sauce Lab

Note:- Always in All project-level System configurations Windows, Mac, Android, and IOS platforms are displayed.

  • If we select a web project, Windows, and Mac platforms are displayed in the Executable Environment.
  • If we select a mobile project, Android and iOS platforms are displayed in the Executable Environment.
  • If we select web and mobile projects, Windows Mac, Android, and iOS platforms are displayed in the Executable Environment.
  • If we select the Sales-Force project, Windows Mac, Android, and iOS platforms are displayed in the Executable Environment.

We can execute the script in Sauce Lab either on Windows /Mac/Android/iOS.

Windows: –

If we select Windows as OS respective Os Ver, Browser, and Browser Ver dropdowns are displayed refer to the below-shown screen.

Mac: –

If we select Mac as OS respective Os Ver, Browser, and Browser Ver dropdowns are displayed refer to the below-shown screen.

How to check execution in Sauce Lab?

  • Navigate to the Sauce Lab website and Sign in/Log into to website.
  • Click on the Automated tab, then click on the Test Results tab to view the Web-based executed scripts result. Refer to the below screen.

undefined

Table of Contents