AbtPictureCheckManagement

This class is the central point for interacting with a picture check’s information.

Note:
This class and its associated methods are currently supported only by the C# harness.

Workflow Implementation

In general, a basic workflow involves the following steps:

  1. Initialize an AbtPictureCheckManagement object.
  2. Retrieve a specific picture check by using the GetPictureCheck method. An AbtPictureCheck object is then returned.
  3. Depending on your needs
    1. apply various methods belonging to AbtPictureCheck to retrieve a specific baseline image or all baselines of a picture check. An AbtBaselinePicture object is then returned.
    2. finally, apply methods belonging to AbtBaselinePicture to further process the returned baseline(s).

Example

Suppose that you’d like to save a baseline image, “Baseline {1}”, which belongs to a shared picture check, “Yellow Chevrolet”, into a given folder.

Your snippet of code might resemble the following:

//Initialize AbtPictureCheckManagement object
AbtPictureCheckManagement mgn = new AbtPictureCheckManagement();

//Retrieve a shared picture check "Yellow Chevrolet"
AbtPictureCheck pictureCheck = mgn.GetPictureCheck("/Yellow Chevrolet");

//Retrieve a baseline image "Baseline {1}"
AbtBaselinePicture baseline = pictureCheck.GetBaselineByName("Baseline {1}");

//Save the baseline to a location
int exportResult = baseline.Save("D:\Images");

GetPictureCheck


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400