ScalaWebTest is a library for writing ScalaTest/Selenium based integration tests for web applications. It helps you with your basic setup and provides a new and very efficient approach to testing.
While the JSON specification generally allows to send more properties then expected by the receiver, asserting that only certain properties are part of a JSON response is useful sometimes.
Therefore the json.Gauge should be extend to provide the following additional tests.
jsonTestee completelyFits types of jsonGauge
jsonTestee completelyFits typesAndArraySizes of jsonGauge
jsonTestee completelyFits values of jsonGauge
jsonTestee completelyFits valuesIgnoringArrayOrder of jsonGauge
The keyword by has the same function as of, but it reads better when combined with ...HasOnlyPropertiesSpecified
While the JSON specification generally allows to send more properties then expected by the receiver, asserting that only certain properties are part of a JSON response is useful sometimes.
Therefore the json.Gauge should be extend to provide the following additional tests.
The keyword
by
has the same function asof
, but it reads better when combined with ...HasOnlyPropertiesSpecifiedExamples using the following jsonGauge
The following testees should fail, because they contain an unspecified property.