Behat / WebApiExtension

Behat extension to test web APIs
http://extensions.behat.org
MIT License
111 stars 114 forks source link

Improved: Now you can pass * at theResponseShouldContainJson() #46

Open igormukhingmailcom opened 8 years ago

igormukhingmailcom commented 8 years ago

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": "*"
                }]
            """