You use the Test editor to navigate through the steps in a test result and investigate differences between checkpoint and baseline images in a step. When reviewing a step, you can resolve the image differences by accepting or rejecting the differences. If the action you perform in one step is a maintenance action, then the test manager prompts you to apply the action to all other steps that fall within the scope that was set for Automated test maintenance.
The Step editor and Test editor both provide a way to review steps, deal with step differences and accept or reject changes.
- The Test editor opens in the entire Test Manager window, whereas the Step editor opens in a smaller panel that overlays the current window.
- The Test editor is limited to dealing with steps in a test, whereas the Step editor can deal with steps in a test or batch.
- The Test editor initially loads images at a larger size.
- Navigation between steps is performed differently in the two editors.
This article provides an overview of the Test editor, the Test editor interface and the operations that you perform from within the Test editor.
Accessing the Test editor
You can access the Test editor from either the Batch details view or the Batch steps view while viewing step thumbnails.
- Hover over a Step thumbnail.
- From the More options drop-down menu, click Open in test editor.
The Test editor shows the basic test and test environment information about the selected test and step image. The editor also displays the Checkpoint image, Baseline image or both side by side, provides tools for viewing and editing the image, as well as accepting or rejecting image differences should they exist.The Test editor is divided into a number of areas:
- Indicates the name of the test to which the selected step belongs and provides step details related to the test such as the number of steps, unresolved steps, new steps, missing steps and new steps if relevant.
- Contains a set of tools for viewing, treating and resolving differences between step checkpoint and baseline images.
- Step details panel
- Indicates whether the image is a Baseline or Checkpoint image: Lists the Match level, Step title and position, and test environment details.
- Step status indicator
- Indicates the step status and whether the step is resolved or unresolved.
- Step image
- Displays a step image as it appears in the Baseline, Checkpoint or both.
- Step navigator control
- At the bottom of Test editor, there is a playback control that provides tools which enable you to move between the steps of a test. The control displays a timeline of all the steps in the test - each rectangle on the timeline corresponds to a step. For more information see Step navigator control.
- Zoom controls
- A set of controls that allow you to change the size of the baseline or checkpoint image relative to the browser window.
The Step editor displays either the checkpoint image of the step or the baseline image or both images side by side. Click anywhere on the image control , or press the T key to toggle between viewing the baseline and checkpoint images. Click the triangle on the right of the control to select a specific view.
Select visible layers
Use the select visible layer control to select what information is overlaid on the step image. For more information see Test editor select visible layer.
Hide displacement diffs
The hide displacement diffs tool in the Step and Test editors toggles a mode that displays only differences arising from changed content, hiding differences that arise from content whose position on the page has changed. This feature is useful for example, where content is added or deleted, causing other elements on the page to be displaced and generating additional differences. When a large area of the page is impacted by such a change, the page is full of pink mismatched areas, and it can be hard to identify content that has changed. By using this tool you can hide content that has only moved and focus on mismatches caused by actual changes in the content. For more information see Hide displacement diffs tool
View Root Cause Analysis (RCA) data
Open the RCA panel by clicking the Root Cause Analysis button in the View toolbar. You can also open and close the RCA panel by using the I shortcut key.
The editor displays RCA information when you click on a pink area that flags a visual difference in the checkpoint or baseline image panels (called here "diff"). The editor compares the DOM and CSS information stored with the images and displays significant differences for any DOM elements that could impact the diff. RCA also allows you to manually select the elements whose DOM and CSS information will be compared.
For more information see Using the Root cause analysis feature.
View the test details
Open the Test details dialog box by clicking the drop-down menu in the View toolbar and then clicking Test details.
The Test details dialog box displays reference information on the Test and the Baseline to which the test belongs. Some of the information provided is general information, and other details can be used for troubleshooting.
For more information see Viewing test details.
Show the baseline and baseline history pages
The Show baseline and Show baseline history pages can be opened from options located in the View toolbar's drop-down menu .
Show baseline: Opens the Branch baselines page listing all the baselines of the test.
Show baseline history: Opens the Baseline history page listing all past revisions made to the baseline of the test.
Preview the step images using match level options
Use the Preview match level options to preview the result of matching the checkpoint and baseline image using a different match level.
To display the step baseline and checkpoint images as they would appear using any of the match level options, click the drop-down menu in the View toolbar, hover the mouse pointer over Preview match level and click one of the match level options in the list.
To run a test using a different match level you must set the match level in the SDK using the
set match level.
For more information on the Match levels see How to use Eyes match levels.
Undo changes in the test
Use the Undo changes in test option to undo changes that were not yet saved to the test baseline. As a result, the test status also reverts to the state which existed immediately after the most recent save.
Use the Diff Navigator to highlight diffs that appear in the step baseline and checkpoint images.
Click the radar button, and circles will flash wherever there are differences in the images. If a difference is positioned outside the field of view, then when you click , a circle flashes and a blurred pink strip appears on the edge of the view that indicates the direction in which to scroll to see the diff. Similarly, if a difference is positioned outside the field of view, grabbing and moving the step image causes the blurred pink strip to appear on the edge of the view to indicate that there are differences located beyond the field of view.
Click the button or type the . key repeatedly to step through all the differences by zooming on each difference in turn. Use the or the , key to navigate to the previous differences. After you see the last difference, the zoom will return to its previous zoom level.To add an issue or remark region:Click Issue , or Remark from the Annotations toolbar and then drag the crosshair pointer around the area of interest on the step images. In both cases you add a title in the comment box that opens, click Create and then type a comment or remark in the text edit field. The dialog also has tools that allow you to:Click Post to publish the remark.
You can apply special regions and match level regions to a step image to effect a specific change to how the default matching mechanism displays the test result.
Click from the Annotations toolbar to open the regions drop-down menu and select a region to apply to an image.
For more information see How to use Eyes match levels.
Set the Automated Maintenance scope
Setting the Automated test maintenance scope lets you control the extent that Automated maintenance operates over the steps in a batch. You can set the scope to default, batch, explicitly selected tests or steps in a batch, or the current step only.
Set the scope by selecting an option from the Auto Maintenance menu in the Step editor toolbar.
For more information see Setting the automated test maintenance scope.
Accept or reject changes made to the steps
Resolve differences in a step by accepting or rejecting the differences.
Click to accept the differences and checkpoint image of a test's step, and then advance to the next step that has differences.
Click to reject the differences and keep the baseline image of a test's step, and then advance to the next step that has differences.
Note that Accepting and Rejecting differences are Automated test maintenance operations and the range over which the selected function operates is dependent on the scope you set for Automated Maintenance.
For more information see Accepting and rejecting steps.
Zoom in and out of the step images
The Zoom controls allow you to change the size of the displayed image in the browser, so you can choose to see the entire image or to focus on the details in one part of the image.
For more details see Test editor zoom controls.