The Ensure Non-Empty Result assertion checks the return value from the step to verify that some value has been returned. If there is no response (timeout) or the return value has a length of 0, the return value is considered empty. When the If field is set to True, this assertion fails the test unless it receives an empty response. When the If field is set to False, this assertion fails the test when it receives an empty response.
If the result is NULL, a Fail event is raised and the assertion's evaluate() method returns. Therefore, the If/then logic of the assertion is never reached.
Complete the following fields:
Defines the name of the assertion.
Specifies the behavior of the assertion from the drop-down list.
Specifies the step to which to redirect if the assertion fires.
Identifies event text to print if the assertion fires.
Click Run Assertion to execute the assertion.
No other attributes are required.
Note: Use this assertion carefully, because it does not have any content validation.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|