Menu
Lumberyard
Legacy Reference

FeatureTest Nodes

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

You can use the following flow graph nodes to configure feature test settings.

FeatureTest node

Used to control automated feature tests.

Inputs

Port Type Description
Name String Name of the feature test
Description String Description of the feature test
MaxTime Float How long in game time the test is allowed to run before it fails
Camera Any (Optional) Camera entity used for the test
Ready Boolean Indicates whether all dependencies have been met and the test is ready to run
Succeeded Any Trigger to indicate the feature test has passed
Failed Any Trigger to indicate the feature test has failed

Outputs

Port Type Description
Start Any Trigger to start running the feature test

Screenshot node

Used to take a screenshot.

Inputs

Port Type Description
Trigger Any Trigger to capture a screenshot
Name String Name of the screenshot

Outputs

Port Type Description
Succeeded Any Triggers when the image is captured
Failed Any Triggers if the image is not captured

ScreenshotCompare node

Used to take a screenshot and compare it with a reference image.

Inputs

Port Type Description
Trigger Any Trigger to capture a screenshot
Reset Any Resets the current screenshot number back to 0
PSNR Float Picture signal to noise ratio used during comparison with the reference image to determine success of failure

Outputs

Port Type Description
Succeeded Any Triggers when the captured image matches the reference image
Failed Any Triggers when the captured image does not match the reference image