问题 1
What is the purpose of the 'Scenario Context' in Cucumber?
Scenario Context is used to share data between steps within the same scenario, allowing you to pass information between steps.
Example:
Scenario: Sharing data between steps
Given a variable is initialized
When the variable is modified
Then the modified value should be accessible in subsequent steps
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗?
添加评论
查看评论