WebApiExtension icon indicating copy to clipboard operation
WebApiExtension copied to clipboard

Improved: Now you can pass * at theResponseShouldContainJson()

Open igormukhingmailcom opened this issue 10 years ago • 0 comments

Now you can write scenarios like this (with wildcards at etalon json):

Scenario: I can get the list via API
        When I set header "Accept" with value "application/json"
         And I send a GET request to "/api/endpoint"
        Then the response code should be 200
         And response should contain json:
            """
                [{
                    "id": "*",
                    "updated_at":"*",
                    "downloaded_at":"*",
                    "_links": "*"
                }]
            """

igormukhingmailcom avatar Nov 30 '15 00:11 igormukhingmailcom