Introducing BrowserStack SDK Integration for Percy Platform

Created on November 12, 2023 at 10:20 am

We are excited to announce a significant development in our visual testing products within the Percy PERSON platform: the integration of Percy PERSON and App Percy PERSON with the BrowserStack SDK PRODUCT . The BrowserStack SDK offers a seamless, plug-and-play solution, empowering users to run their test suites on BrowserStack ORG without any need for code changes.

Previously, our integration on the Percy PERSON platform was an industry benchmark, allowing users to onboard with just a single line of code change. We just exceeded that benchmark ourselves by eliminating the need for manual code changes in your test scripts. You can easily incorporate the BrowserStack SDK PRODUCT into your existing test scripts, provide authentication details, and gain instant access to Percy PERSON and App Percy PERSON .

For existing users of BrowserStack ORG products such as Automate PRODUCT , who already have the SDK ORG installed, there’s no additional action required. Simply enable the percy screenshot command in your settings, and you’re all set.

Why BrowserStack SDK ORG for Percy Platform PERSON ?

Minimal Installation : Enjoy a hassle-free setup process.

: Enjoy a hassle-free setup process. Reduced Configuration : Streamline Authentication ORG , App ID, and Parameter Requirements.

: Streamline Authentication ORG , App ID, and Parameter Requirements. Less Code Modification : Eliminate the mandatory addition of screenshot functions.

: Eliminate the mandatory addition of screenshot functions. Additional capabilities: If you use Jest PERSON or TestNG for functional testing, then you have a few additional values to which you can set the percyCaptureMode parameter:

Additional capabilities for Jest PERSON and TestNG users

Step-by-Step Guide:

Create a test script. Install the required BrowserStack SDK PRODUCT . Set the BrowserStack ORG credentials (username and access key). In the browserstack.yml file:

Set percy: true

Set percyCaptureMode: auto

Set a projectName

5 CARDINAL . Add the PercySDK.screenshot(driver ORG , name) method to relevant places in your test script to get the screenshots you want.

6 CARDINAL . Run the test script.

Please visit the documentation page for more details.

Sample Code Snippet

Learn more about BrowserStack ORG SDK

Connecting to blog.lzomedia.com... Connected... Page load complete