Project to provide a new type of Driver for use with Substeps, that will enable the ability to testing of rest endpoints by creating requests and asserting the responses.
- Substeps Site: http://substeps.github.io
- Substeps Sources: https://github.com/Substeps
- Java 8
- Substeps 1.0.1
- Available substeps: docs/rest-driver-substeps.md
<dependency>
<groupId>uk.co.baconi.substeps</groupId>
<artifactId>restdriver-substeps</artifactId>
<version>0.0.6</version>
</dependency>
- XML Support
- Bug fixing
- Other enhancements
- Ability to extract data
- Ability to set named path parameters, both manual and extracted data
- Ability to assert based on extracted data
- Ability to send a list of json objects in the body
- Ability to send json loaded from a file or url in the body
- Moved to use the org.substeps fork of Substeps
- Setup project to generated and provide Substep implementation documentation
- More ways to configure urls
- Ways of asserting response times
- More finders
- More assertions
- Move to using rest assured for the requesting and asserting
- Corrections to the glossary metadata, without the fix we cannot build a glossary of the steps in projects that use this library.
- Build rest requests.
- Add headers in key value pairs.
- Add cookies in key value pairs.
- Add data to send in key/value pairs
- Choose either a simple JSON or Key Pair builders to produce a suitable request body.
- Set connect timeout, overriding defaults.
- Set socket timeout, overriding defaults.
- Set user agent, overriding defaults.
- Defaults are stored in Typesafe Config properties.
- Basic rest assertions:
- Status Code
- Status Code in Range
- Reason Phrase
- Basic JSON finding via JsonPath.
- Basic JSON asserting via JsonPath and very basic types.
- Object - only that it is one, haven't worked out best way to assert contents.
- Array - only that it is one, haven't worked out best way to assert contents.
- String - both finding and matching, ignoring whitespace
- Number - both finding and matching, including decimals
- Examples / documentation on how to use.
- Available in maven central
- Scopes - can be the following values, they are thread safe scopes where data can be stored during substep runs:
- SUITE
- FEATURE
- SCENARIO
- SCENARIO_BACKGROUND
- SCENARIO_OUTLINE
- SCENARIO_OUTLINE_ROW
- STEP