![]() It is also still possible to access them via the creation or edition of a Keyword. The PDF and Image Comparison editors can be accessed from the dedicated view “Document Compare Masks” as already described in section running a simple web-based test. This section contains instructions regarding the design of masks and manual testing from Step’s GUI. The text located within the region of an Exclude can be extracted and made available automatically as Keyword output named after the region itself.Īs explained in the introduction the OCR feature for images is only provided as an optional beta feature which is disabled by default. Multiple masks can be passed as an input of the PDF Compare or Image Compare Keywords (as a list). Masks are the container for anchors and excludes. For instance, you could define an Anchor-Excludes combination on page 2 using a list of 2 Anchors and 4 Excludes, and an Anchor-Excludes combination on page 4 with an empty list of Anchors and 2 Excludes thus using the all page 4 as Anchor for the corresponding Excludes on page 4. It is possible to define an Anchor-Excludes combination per page. A list of Anchors on a specific page and the corresponding Excludes define an Anchor-Excludes combination.At execution time the corresponding Excludes will only apply to a page if that page has exactly the same layout as the page of the mask where these Excludes are defined If no Anchor is defined on a specific page of the mask, the entire page of the mask will be used as Anchor.If Anchors are defined on a specific page of the mask, at execution time the corresponding Excludes (the Excludes defined on the same page of the mask) will only apply to a page if the Anchors are found within that page.This can be very useful to create modular Exclude-sets for a specific document page type which can occur on different pages: In connection with this anchor type users can select specific rectangular areas called Anchors that use image patterns to define whether or not Excludes have to be applied, independently of the page number. Image based: this is an advanced anchor type.In this case the Anchor is a kind of wildcard. This can be useful to exclude an header that appears on every page. Applies to all pages: when selecting this anchor type, all the Excludes defined in the mask will apply to all pages independently of page content and page numbers.For instance: if a set of Excludes is defined on page 2, these Excludes will only apply to the page 2 of the actual document. In this case the page number serve as Anchor. Page number based: when selecting this anchor type, at execution time the Excludes defined in the mask will only apply to pages having the same page number as the page where these Excludes are defined.AnchorsĪnchors serve a conditional purpose: they are used to decide whether or not Excludes have to be applied.Ĭurrently 3 different anchor types are supported: Users can add and remove areas from the list in order to alter the comparison conditions of their test case. This means that multiple areas can be defined and applied simultaneously during a test. Drag-and-drop functionality allows for highly intuitive interactions with the document and the effortless selection of excluded zones.Įxcludes are provided in the form of a list. While this is less relevant in case of images, an optional and beta OCR feature has been made available and could be enabled.Īs you can see on the screenshot below, the PDF and Image Comparison plugins come with a comprehensive design environment which is directly embedded into Step’s web application. ![]() This mechanism allows users to focus their tests on the important area of the document and to ignore areas which may vary for reasons which are not relevant to the test strategy.Īnother important point of focus for PDF document is the ability to extract text strings and match them against other pre-defined expected strings, allowing users to not base their test cases solely on image comparisons but also on the thorough inspection of the business information which is actually contained within the documents. One of the key features of these plugins is the ability for users to define conditions (currently called Anchors) upon which parts of the document (called Excludes) will be ignored during comparisons. Step’s PDF and Image comparison plugins allows user to respectively validate the exactness of a rendered PDF or image file (called actual) when compared against a model (called expected document).Īs the PDF default comparison is an image-based comparison of every page of the actual document against that of the expected document, and as image types with multiple pages (such as tiff) are supported, both plugins works in a very similar manner.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |