Skip to content

In reports, adapter types show up as the "PerformableType" #242

@craigfowler

Description

@craigfowler

In (for example) this report, we see the adapter types instead of the real performable types. Note the lines which mention PerformableType. In both of these cases, the wrapped performable type should be displayed in the report and not the adapter type. The adapter type isn't very useful in the report.

I think I'll need a pass-through mechanism for these adapters, so that they don't record their own types in the report.

{
    "Type": "PerformableReport",
    "PerformableType": "CSF.Screenplay.Selenium.Actions.SingleElementPerformableAdapter",
    "PerformancePhase": "When",
    "Result": null,
    "HasResult": false,
    "Exception": null,
    "ExceptionIsFromConsumedPerformable": false,
    "Assets": [],
    "Reportables": [],
    "Report": "Webster enters the text \u0027Hello World\u0027 into the input area",
    "ActorName": "Webster"
},
{
    "Type": "PerformableReport",
    "PerformableType": "CSF.Screenplay.Selenium.Questions.SingleElementPerformableWithResultAdapter\u00601[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]",
    "PerformancePhase": "Then",
    "Result": "Hello World",
    "HasResult": true,
    "Exception": null,
    "ExceptionIsFromConsumedPerformable": false,
    "Assets": [],
    "Reportables": [],
    "Report": "Webster reads the contained text from the displayable text",
    "ActorName": "Webster"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions