Validator Test Points

Validator test points are specialized test actions which produce test artifacts which are later qualified as PASS/FAIL by Storyboard.

Capture Screen

Capture the full screen. Supports a list of rectangular regions to ignore during comparison between result and reference images.

Arguments:

  • Threshold: The percent of pixels that are allowed to be different while still being considered a passing result. From 0-100%.

  • Tolerance: The amount of color difference per pixel for it to be considered a match. From 0.0-0.999.

  • Exclusion Regions The exclusion region string can contain multiple rectangles to ignore, a rectangle is defined by two points, a top-left and a bottom-right point.

    • LEFT,TOP RIGHT,BOTTOM [LEFT,TOP RIGHT,BOTTOM ...]

      For example:

      25,100 125,200 375,100 500,225

Capture Region

Capture a rectangular region of the screen.

  • X: The X coordinate for the top-left corner of the region to capture.

  • Y: The Y coordinate for the top-left corner of the region to capture.

  • W: The width of the region to capture.

  • H: The height of the region to capture.

  • Threshold: The percent of pixels that are allowed to be different while still being considered a passing result. From 0-100%.

  • Tolerance: The amount of color difference per pixel for it to be considered a match. From 0.0-0.999.

Capture FQN

Capture a model object by fully qualified name. The area on screen containing the specified model object will be included in a screen capture.

Arguments:

  • Fqn: The fully qualified name of the model object.

  • Threshold: The percent of pixels that are allowed to be different while still being considered a passing result. From 0-100%.

  • Tolerance: The amount of color difference per pixel for it to be considered a match. From 0.0-0.999.

Capture Data

Arguments:   

  • Variable arguments, one for each data key specified.

Lua

Execute a Lua function and process the returned value.

Arguments:

  • Function A global Lua function to call

  • Variable arguments, one for each additional mapargs member specified.

Was this article helpful?
0 out of 0 found this helpful