Skip to main content
Transform your testing process with: Company-wide Licences, Test Observability & App Percy
No Result Found

Recommended Guidelines

In this guide, you’ll find a quick overview of our foremost recommendations.

Percy is an all-in-one visual testing platform that lets you run visual tests with either the BrowserStack SDK or the Percy SDK. Further, you can create a Percy Web or Percy with Automate project. Choose Percy if you want to perform visual tests solely on the newest browsers; choose Automate if you want to run visual tests on a range of desktop, mobile, and browser combinations.

This guide provides best practices and recommendations for implementing and maintaining visual tests with Percy.

Verify the entire page

While there are various options to visually verify your application with Percy, we recommend verifying the entire page of your application to obtain the most coverage from your visual testing. This can be done with full page screenshots for your website.

Percy - Recommended Guidelines

By default, Percy uses the Recommended match level (our recommended comparison method), which employs Percy’s Visual Engine to compare your baseline image with the current image from a regression run.

Percy Token

Utilize a wrapper class to encapsulate visual checks

It’s a good practice to create a wrapper class that isolates the Percy Screenshot calls so that if there are any changes to the percyscreenshot call, the required changes to the test code will be limited to an individual function.

Use the Percy dashboard to collaborate

The Percy dashboard can be used to assign failures to developers or QA teams to review, and remark on questionable changes.

Percy - Recommended Guidelines

Integrate Percy with Slack and MS Teams for faster collaboration on failed visual tests

If your team already uses Slack or MS Teams for collaboration, we recommend integrating Percy with Slack or Teams, which makes sharing and resolving visual bugs easier.

Use Percy and BrowserStack for both visual and functional assertions

Percy should be used to complement or encompass functional assertions with less lines of code and more test coverage. You should be running your visual and functional tests together.

Percy - Recommended Guidelines

Verify the entire page

While there are various options to visually verify your application with Percy, we recommend verifying the entire page of your application to obtain the most coverage from your visual testing. This can be done with full page screenshots for your website.

Percy - Recommended Guidelines

By default, Percy uses the Recommended match level (our recommended comparison method), which employs Percy’s Visual Engine to compare your baseline image with the current image from a regression run.

Percy Token

Utilize a wrapper class to encapsulate visual checks

It’s a good practice to create a wrapper class that isolates the Percy Screenshot calls so that if there are any changes to the percyscreenshot call, the required changes to the test code will be limited to an individual function.

Use BrowserStack’s device grid to run cross-platform tests

BrowserStack’s Automate and App Automate enable you to execute your tests across many different browsers, viewports, and devices at a fraction of the time it takes with other solutions.

Percy - Recommended Guidelines

Use the Percy dashboard to collaborate

The Percy dashboard can be used to assign failures to developers or QA teams to review, and remark on questionable changes.

Percy - Recommended Guidelines

Integrate Percy with Slack and MS Teams for faster collaboration on failed visual tests

If your team already uses Slack or MS Teams for collaboration, we recommend integrating Percy with Slack or Teams, which makes sharing and resolving visual bugs easier.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle