【发布时间】:2020-04-03 10:45:36
【问题描述】:
我的场景是
Scenario Outline: Verify if the user can create an response if user posts a request with invalid payload
Given User had specified name <name> description <description> in create application request
And User had specified tenantId id <tenantId> in header of createApplication request
When User sends a create request to application service with invalidPayload
Then User should get an error code <errorCode> in the createApplication response with error message as <errorMessage>
Examples:
| description| name | errorCode | errorMessage|tenantid|
| testdescription| DummyApplication| 857 | Application named ${name} already exists for a given tenant | mock|
在上面的部分中,我想验证错误消息,但使用 name 参数,其值已在示例表中定义。 我期望作为参数传递的错误消息是, “给定租户已存在名为 'DummyApplication' 的应用程序。”
【问题讨论】:
标签: c# api automation bdd specflow