Capture Images with Autoscan

The Autoscan feature in Eggplant Functional determines all the areas on the screen of a system under test (SUT) that you might want to capture as images, highlights them, and enables you to quickly edit and save those images.

New Feature: Autoscan is available in Eggplant Functional 18.1 and later.

You can also generate Autosnippets using Autoscan. These are short pieces of code that can be used as snippets in Eggplant AI.

Tip: Autoscan can't capture images between screens on a SUT. Rapid Image Capture is better suited for users who need a limited number of images, need to capture images between screens of a SUT, or don't need to generate snippets.

Step by Step: Autoscan Sessions

Autoscan sessions work differently in Live Mode than in Capture Mode. In Live Mode, Eggplant Functional scans the entire SUT window to find potential images. In Capture Mode, the Capture Area defines the portion of the SUT screen that Eggplant Functional scans. The menu option for Autoscan changes depending on which mode you're in.

  1. Connect to a SUT. When you've connected, the SUT appears in the Viewer window. If you're working in Capture Mode, adjust the Capture Area to include the parts of the SUT screen that you want scanned.
  2. Start an Autoscan session:
    • From the main menu, select Control > Start Session > Autoscan Entire Screen (in Live Mode) or Control > Start Session > Autoscan in Capture Area (in Capture Mode).
    • From the Viewer window, click Start Session > Autoscan Entire Screen (in Live Mode) or Start Session > Autoscan in Capture Area (in Capture Mode).
  3. Eggplant Functional scans the SUT screen. The area of the screen you searched opens in the Autoscan window, with potential images highlighted in blue. The element highlighted in green is the currently selected element.
  4. Drag the lower right corner of a highlight box to adjust its size. Click the X in the upper left corner of a highlight box to delete it. Click anywhere on the SUT screen in the Viewer window to create a new highlight box. Zoom in and out on the scanned area using the magnifying glass icons.

    An Eggplant Functional Auto Scan session done in Capture Mode, with potential images highlighted

    An Autoscan session performed in Capture Mode. Click image to view larger

    The highlight box on an element identified in an Auto Scan session

    A suggested image from an Autoscan session.

    To move the hot spot in an image, Ctrl+click or Ctrl+drag the red crosshairs in the image (Cmd+click or Cmd+drag on Mac).

    You can add and create Tags for ease of organization. Click the tag icon to the right of the Tags field to apply the selected tags to all of the images created in the session.

    Images are saved in the Images folder of your suite by default; you can change that location using the Where drop-down menu. You can choose to create an image collection here, as well.

    If any of the elements Eggplant Functional finds can be read using optical character recognition (OCR), the Use OCR checkbox appears in the session window. Select the checkbox to use an OCR search instead of an image search for individual images. To use OCR as the default search type for an entire session, Shift+click the Use OCR checkbox.

    Note: This setting is session-specific. It is not saved in your defaults or between sessions. This setting also does not persist if you close a session and then return to that same session.
    Tip: You should use OCR only if you plan to generate Autosnippets from an Autoscan session.
  5. Select, adjust, and name all the images you want to generate. At this point, you can choose to generate Autosnippets.
  6. When you've defined all of the images you want to add to your suite, select the Images checkbox and click Generate. Eggplant Functional saves the images with the names you chose.

Advanced Properties

Eggplant Functional has advanced features to fine-tune the Autoscan process. Click the down arrow at the bottom of the Autoscan session screen to open the Advanced Properties window.

Autoscan Advanced Properties window in Eggplant Functional

You can adjust the following properties:

  • Dilation: Increases or decreases the size of the boxes around the suggested images. Can be used to combine adjoining boxes to capture elements of different sizes.
  • Adaptive Constant: Adjusting this setting can help filter out noise in blurrier images or in images that have less contrast.
  • Min Size: Sets a minimum size (in pixels) for the width or height of a suggested image. Any possible images found that are smaller than this size are ignored.
  • Max Size: Sets a maximum size (in pixels) for the width of height of a suggested image. Any possible images found that are larger than this size are ignored.

 

This topic was last updated on 2月 01, 2019, at 11:13:23 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant