Is there any way to share the data between beforetestrun hook and aftertestrun hooks(hooks are present in two different classes/files)?. #557
Unanswered
satishmarisetti123
asked this question in
SpecFlow migration Q&A
Replies: 1 comment
-
Could you use the Feature Context? https://docs.reqnroll.net/latest/automation/feature-context.html?
This is very vague. What data? Why does it need to be in beforetestrun / aftertestrun ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions