Introducing BrowserStack SDK Integration for Percy Platform
Previously, our integration on the Percyplatform 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 into your existing test scripts, provide authentication details, and gain instant access to Percy and App Percy .
For existing users of BrowserStackproducts such as Automate , who already have the SDK installed, there’s no additional action required. Simply enable the percy screenshot command in your settings, and you’re all set.
Why BrowserStack SDKfor Percy Platform ?
Minimal Installation : Enjoy a hassle-free setup process.
: Enjoy a hassle-free setup process. Reduced Configuration : Streamline Authentication, App ID, and Parameter Requirements.
: Streamline Authentication, 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 Jestor TestNG for functional testing, then you have a few additional values to which you can set the percyCaptureMode parameter:
Additional capabilities for Jestand TestNG users
Create a test script. Install the required BrowserStack SDK. Set the BrowserStack credentials (username and access key). In the browserstack.yml file:
Set percy: true
Set percyCaptureMode: auto
Set a projectName
5. Add the PercySDK.screenshot(driver , name) method to relevant places in your test script to get the screenshots you want.
6. Run the test script.
Please visit the documentation page for more details.
Sample Code Snippet
Learn more about BrowserStackSDK