Integrating with Sauce Labs Real Device
This support article provides information on Provar’s integration with Sauce Labs Real Devices for mobile testing.
Note: As Sauce Labs previous support for TestObjects will end on 1st September 2021; Provar users must connect to Sauce Labs Real Devices to continue testing their mobile applications. For more information, please see Sauce Labs Real Device Testing.
Sauce Labs provides comprehensive mobile app testing using real devices, emulators and simulators for Android and iOS. In addition, teams can automate native, hybrid and mobile web apps for complete coverage.
Configuring Sauce Labs Real Devices in Provar
Before configuring a Sauce Labs Real Device Mobile App in Provar, you should already have a Sauce Labs account with the appropriate resource available to test a mobile app. Please refer to Sauce Labs’ documentation for more information on completing this set-up.
Adding a Browser Provider
To configure a Sauce Labs Real Device Mobile App in Provar; first, add a new Browser Provider.
On the Test Settings section, click the Browser Providers tab. Click Add New (‘+’) icon.
Above: View of Browser Providers tab.
An Add new Browser Provider screen is displayed. In the Browser Provider section:
- In the Name field, enter a browser provider name.
- In the Type field, select Sauce Labs Real Devices from the drop-down.
Above: Adding a new Browser Provider.
In the Connection Properties section:
- In the Username field, enter the Sauce Labs username to authenticate the user’s test account.
- In the Access Key field, enter the Sauce Labs access key to authenticate the user’s test account.
- In the Data Center field, select the specific Sauce Labs data center in which the desired device is located.
Adding a device
In the Devices section, click Add New (‘+’) icon to add a device. The Add Sauce Labs Real Device screen is displayed.
Note: The device list is retrieved from the selected Sauce Labs data center.
Above: Device list is retrieved from Sauce Labs.
In the Details section:
- In the Device Type field, select the type of device from the drop-down e.g. Phone.
- In the Platform Name field, select the platform from the drop-down e.g. iOS.
Note: Provar provides support for both iOS and Android. Selecting any one of these as a Platform Name will alter the options in the subsequent field drop-downs.
- In the Platform Version field, select the appropriate platform version from the drop-down.
- In the Manufacturer field, select the manufacturer from the drop-down.
- In the Device Type field, select the device from the drop-down.
In the Desired Capabilities section, click Add New (‘+’) icon to add a desired capability to the selected device. An Add new Desired Capability screen is displayed.
Above: Adding a new capability.
- In the Name field, enter the desired capability name.
- In the Environment field, select the Provar Test Environment where the desired capability must be applied.
- In the Value field, enter the value of the desired capability.
Click OK to add the desired capability to the configured device. Once the device has been configured, add a Sauce Labs Real Device as shown below.
Above: View of adding a Sauce Labs Real device.
Click OK to add a device and return to the Browser Provider details screen.
To check that the account credentials are correct and you can connect to the account with the credentials provided, click Test Connection to confirm the connection is established successfully.
To complete adding the new Browser Provider, click OK and the newly added Browser Provider connection is displayed in the Browser Providers tab.
Adding a Mobile App
To use the Sauce Labs Real Device connection, we now add a new Mobile App in Provar and configure it to use the new connection.
On the Test Settings tab, click the Mobile Apps tab. Click Add New (‘+’) icon.
An Add new Mobile App screen is displayed.
Above: Adding a new Mobile App.
In the Details section:
- In the App Name field, enter the mobile app name.
The earlier created Browser Provider name and type are displayed as a section within the screen:
- In the App Type field, select the app type from the drop-down.
- Native – enter or select the values for the additional fields required for this selection:
- By Name – If you know the app name, you can select this option.
- In the App Name field, enter the app name.
- Available Apps – display a list of available apps from the Sauce Labs connection.
- In the App field, select the app from the dropdown list.
- By Name – If you know the app name, you can select this option.
- Browser – the test case will run on the native browser for the selected device (Chrome or Safari).
- Native – enter or select the values for the additional fields required for this selection:
Configure a test case
Within a Salesforce Connection test step, in the UI Testing section, select the mobile app created in the previous steps in the Salesforce Application field.
Above: View of configuring a test case.
Running tests on Sauce Labs
To execute a test case using the Sauce Labs Real Device browser provider, select the new browser provider configuration which we just created from the browser configuration dropdown on the toolbar.
Above: View of Sauce Labs Browser Provider.
When the test case is ready to run, use Run mode or Debug mode to execute it.
Above: View of Run and Debug modes.
On the Test Runner tab, you can see the test case progress.
To view the test result in Sauce Labs, login to your account to access the Sauce Labs dashboard, click Automated > Test Results, from the left-hand side menu.
Above: View of the test result in Sauce Labs.
Run Under ANT
The Run Under ANT option is also available to run the test cases for the Sauce Labs Real Device that we have added in Provar Browser Providers.
- General information
- Licensing Provar
- Provar trial guide and extensions
- Using Provar
- API testing
- Behavior-driven development
- Creating and importing projects
- Creating test cases
- Custom table mapping
- Functions
- Debugging tests
- Defining a namespace prefix on a connection
- Defining proxy settings
- Environment management
- Exporting test cases into a PDF
- Exporting test projects
- Override auto-retry for Test Step
- Managing test steps
- Namespace org testing
- Provar desktop
- Provar Test Builder
- Refresh and Recompile
- Reload Org Cache
- Reporting
- Running tests
- Searching Provar with find usages
- Secrets management and encryption
- Setup and teardown test cases
- Tags and Service Level Agreements (SLAs)
- Test cycles
- Test plans
- Testing browser options
- Tooltip testing
- Using the Test Palette
- Using custom APIs
- Callable tests
- Data-driven testing
- Page objects
- Block locator strategies
- Introduction to XPaths
- Creating an XPath
- JavaScript locator support
- Label locator strategies
- Maintaining page objects
- Mapping non-Salesforce fields
- Page object operations
- ProvarX™
- Refresh and reselect field locators in Test Builder
- Using Java method annotations for custom objects
- Applications testing
- DevOps
- Introduction to test scheduling
- Apache Ant
- Configuration for Sending Emails via the Provar Command Line Interface
- Continuous integration
- AutoRABIT Salesforce DevOps in Provar Test
- Azure DevOps
- Running a Provar CI Task in Azure DevOps Pipelines
- Configuring the Provar secrets password in Microsoft Azure Pipelines
- Parallel Execution in Microsoft Azure Pipelines Using Multiple build.xml Files
- Parallel Execution in Microsoft Azure Pipelines using Targets
- Parallel execution in Microsoft Azure Pipelines using Test Plans
- Bitbucket Pipelines
- CircleCI
- Copado
- Docker
- Flosum
- Gearset DevOps CI/CD
- GitHub Actions
- Integrating GitHub Actions CI to Run Provar CI Task
- Remote Trigger in GitHub Actions
- Parameterization using Environment Variables in GitHub Actions
- Parallel Execution in GitHub Actions using Multiple build.xml Files
- Parallel Execution in GitHub Actions using Targets
- Parallel Execution in GitHub Actions using Test Plan
- Parallel Execution in GitHub Actions using Job Matrix
- GitLab Continuous Integration
- Travis CI
- Jenkins
- Execution Environment Security Configuration
- Provar Jenkins Plugin
- Parallel Execution
- Running Provar on Linux
- Reporting
- Salesforce DX
- Git
- Team foundation server
- Version control
- Salesforce testing
- Adding a Salesforce connection
- Assert Page Error Messages on Add/Edit Product
- Dynamic Forms
- Internationalization support
- List and table testing
- Salesforce Release Updates
- Salesforce Lightning Testing
- Salesforce Lightning Web Component (LWC) locator support
- Salesforce console testing
- Visualforce Testing
- Performance Best Practices
- Testing best practices
- Troubleshooting
- Browsers
- Configurations and permissions
- Connections
- DevOps
- Error messages
- Administrator has blocked access to client
- JavascriptException: Javascript error
- macOS Big Sur Upgrade
- Resolving failed to create ChromeDriver error
- Resolving Jenkins license missing error
- Resolving metadata timeout errors
- Test execution fails – Firefox not installed
- Update to Opportunity field validation behaviour
- Licensing, installation and firewalls
- Memory
- Test Builder and test cases
- Release notes