Skip to content

Is there any way to share the data between beforetestrun hook and aftertestrun hooks(hooks are present in two different classes/files)?. #556

@satishmarisetti123

Description

@satishmarisetti123

Related Documentation Page

No response

Type of the problem

Incorrect information

Problem Description

There are existing BDD tests written using specflow which is now being migrated to reqnroll. In existing implementation beforetestrun and aftertestrun hooks use TestThreadContext to share the data. serviceprovider object is saved to TestThreadContext and will be retrieve in aftertestrunhooks to resolve some services registered.Now with reqnroll, beforetestrun hook does not allow TestThreadContext. How can this be achieved using reqnroll?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions