![]() param array $jsonType JsonType structure.Opposite to seeResponseJsonXpathEvaluatesTo dontSeeResponseMatchesJsonType Opposite to seeResponseJsonMatchesXpath dontSeeResponseJsonXpathEvaluatesTo Opposite to seeResponseJsonMatchesJsonPath() dontSeeResponseJsonMatchesXpath See #jsonpath for general info on JSONPath. ![]() Opposite to seeResponseContainsJson dontSeeResponseJsonMatchesJsonPath dontSeeResponseCodeIs ( 200 ) // preferred to use \Codeception\Util\HttpCode $I -> dontSeeResponseCodeIs ( \ Codeception\Util\HttpCode :: OK ) dontSeeResponseContainsĬhecks whether last response do not contain text. Its value, asserting that are not there dontSeeResponseCodeIsĬhecks that response code is not equal to provided value. Opposite to seeBinaryResponseEquals dontSeeHttpHeaderĬhecks over the given HTTP header and (optionally) Default md5.Ĭhecks if the hash of a binary response is not the same as provided. param string $algo the hash algorithm to use.param string $hash the hashed data response expected.$I -> deleteHeader ( 'X-Requested-With' ) $I -> sendPost ( 'some-other-page.php' ) dontSeeBinaryResponseEquals So that subsequent requests will not send it anymore.Įxample: haveHttpHeader ( 'X-Requested-With', 'Codeception' ) $I -> sendGet ( 'test-headers.php' ) //. param string $name the name of the header to delete.ĭeletes a HTTP header (that was originally added by haveHttpHeader()),.amNTLMAuthenticatedĪdds NTLM authentication via username/password.Įxample: amNTLMAuthenticated ( 'jon_snow', 'targaryen' ) deleteHeader amHttpAuthenticatedĪdds HTTP authentication via username/password. amDigestAuthenticatedĪdds Digest authentication via username/password. Xml - actions for validating XML responses (no Json responses)Ĭonflicts with SOAP module Actions amAWSAuthenticatedĪllows to send REST request using AWS AuthorizationĮxample Config: yml modules : enabled : - REST : aws : key : accessKey secret : accessSecret service : awsService region : awsRegionĬode: amAWSAuthenticated () amBearerAuthenticatedĪdds Bearer authentication via access token.Json - actions for validating Json responses (no Xml responses).headers - array of headers going to be sent.Here’s an Online JSONPath Expressions Tester Public Properties JSONPath is the equivalent to XPath, for querying JSON data structures. In case you need to configure low-level HTTP headers, that’s done on the PhpBrowser level like so: modules : enabled : - REST : depends : PhpBrowser url :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |