Failing steps could be assigned a unique failure-context that could to a) name screenshots, and b) be used in HTML reports

Description

This affects 'core' and 'web'

Say an element is not found in a webpage, and WebDriver throws whatever exception it needs, presuming that fails a step, then JBehave could set a failure-context (lets say that a GUID).

Later, when the FailingScreenShotThing picks up the fact that a step failed, it could use the failure-context in the name of the screen-shot jpeg.

Later, in the rendering of the reports, the HTML one at least could link to the jpeg.

Maybe instead of GUID, this could be the Object Identity of the StepResult or Failed instance.

Assignee

Paul Hammant

Reporter

Paul Hammant

Labels

None

Components

Fix versions

Priority

Minor
Configure