You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, can you let me know how I make a negative test as displayed below that I need to put nothing for "productKey" inside the path parameter in the Examples. Once I put "" or '' or just space, they do not work. In the Postman, it works when I delete only the part of the product key in the path parameter. FYI, space works in payload, not as in path parameter. Thanks in advance.
Feature: User should Get Account with ProductKey and Agent Token
Background:
.
.
.
# negative
Scenario Outline: Get Product with invalid ProductKey and Agent Token Negative Test
And header Authorization =
And path '/v1/products/agent/'++'/account'
When method GET
Then status
And match response..description contains ""
Examples:
| number | Authorization | productKey | status | error |
| 1 | agentToken | "" | 400 | must not be blank |
| 2 | agentToken | invalidProductKey | 400 | Product key must be 36 characters |
| 3 | agentToken | productKeyNotIncluded | 404 | No account found for product key. |
The text was updated successfully, but these errors were encountered:
there was some discussion around path parameters here, see if that makes sense: #1561
and I recommend if you have a "special case" PLEASE write a new Scenario and DON'T mix it with Examples etc, it just lands you in trouble. take some time and read this please, maybe that is your solution: https://stackoverflow.com/a/54126724/143475
Hi there,
Please, can you let me know how I make a negative test as displayed below that I need to put nothing for "productKey" inside the path parameter in the Examples. Once I put "" or '' or just space, they do not work. In the Postman, it works when I delete only the part of the product key in the path parameter. FYI, space works in payload, not as in path parameter. Thanks in advance.
Feature: User should Get Account with ProductKey and Agent Token
Background:
.
.
.
# negative
Scenario Outline: Get Product with invalid ProductKey and Agent Token Negative Test
And header Authorization =
And path '/v1/products/agent/'++'/account'
When method GET
Then status
And match response..description contains ""
The text was updated successfully, but these errors were encountered: