Visual Testing - Configure Test Cases


There might be times when you want to fail the Test Case if the Visual Test fails. With Testsigma, you can now configure Test Cases by turning the feature on while creating the Test Cases. This article explains how to enable this feature. For the same feature on the Test Step level, refer to Configure Test Steps.

Here is a quick GIF demonstrating how to enable this feature in Testsigma. GIF Explaining Feature


Steps to Configure Test Cases for Visual Testing

  1. Navigate to Test Development > Test Cases, and click Create. Navigate to Test cases
  2. On the Create Test Case page, enter the Name and URL of the application you want to test and click on Show Advanced Options. Advanced Options
  3. Turn on the toggle to Fail Test case if Visual Test Fails. Toggle
  4. Click either Write Test Manually or Record steps to add steps to your Test Case. Create Steps
  5. Once you add the test steps, click Run to execute the Test Case. Click on Run
NOTE:

This feature becomes available only if you rerun the Test Case. This is because, to execute Visual Testing, Testsigma needs a base image corresponding to the Test Step.

  1. After successful execution of the Test Case, click on Re-Run Test Case. Re-Run Test Case
  2. You can click on the camera icon to compare the screenshots. Icon
  3. You can see the comparison as shown below: Compare Snapshots
NOTE:

In case you want to fail the Test Case for some Visual Tests and not fail for others, you can use the setting highlighted below in the Test Step settings. This will help if you have some flaky Visual Tests that give false results. Ignore Setting