Issue Details (XML | Word | Printable)

Key: SFOS-1121
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Steve Loughran
Reporter: Steve Loughran
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
SmartFrog

subclass Condition interface with one that provides a reason for a condition failing

Created: 23/Feb/09 01:40 PM (GMT)   Updated: 20/Mar/09 04:24 PM (GMT)
Component/s: .sfCore
Affects Version/s: None
Fix Version/s: 3.17.010

Time Tracking:
Not Specified

Compatibility: backwards compatible


 Description  « Hide
The TestCompound and Waitfor both skip actions when a condition fails/is not reached in a period of time. for both of these, it would help users if the reason for failure were included in an error message.

-the Condition interface could be extended with a ConditionWithCause interface that returned an explanation (and optionally, an exception?)

-the standard conditions could explain their failure, the web page condition would return the error code and failing page, etc.

-the not/and/or would return the nested causes with the relevant boolean logic operations applied.

The WaitFor and TestCompound components would include the reason when failing

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Steve Loughran added a comment - 23/Feb/09 02:37 PM (GMT)
targeting 4.x

Steve Loughran added a comment - 19/Mar/09 05:21 PM (GMT)
Also: have the component add the entire exception and exception string as a property, for other things to use

Steve Loughran added a comment - 20/Mar/09 04:24 PM (GMT)
done. the WaitFor and EvaluateCondition components both extract this cause and add it to their attributes before running any failure actions