我想知道是否有人让下面的黄瓜与specflow一起工作。
Feature: testing different user types
Scenario Outline:Validate User RBAC
Given I have a new User
And The new user can login <username> and <password>
Examples:
|username|password|
|xxxxxxxx|yyyyyyyy|
Scenario:Test 1
Then something
Scenario:Test 2
Then something else
Scenario:Test 3
Then some other thing我可以让场景大纲工作起来。然而,我想对不同的用户进行一系列测试,为每个测试创建不同的用户会减慢我的测试速度。
有这个例子,但我认为代码中可能有错误,如果我错了,很抱歉。请参阅:http://toolsqa.com/specflow/data-driven-testing-using-examples-keyword-in-specflow/
发布于 2017-09-29 01:29:54
如果您想让不同的用户执行相同的场景,则必须为每个用户使用场景大纲,并在示例表中定义它们。
https://stackoverflow.com/questions/46471786
复制相似问题