Download the PHP package baywa-re-lusy/behat-contexts without Composer
On this page you can find all versions of the php package baywa-re-lusy/behat-contexts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download baywa-re-lusy/behat-contexts
More information about baywa-re-lusy/behat-contexts
Files in baywa-re-lusy/behat-contexts
Package behat-contexts
Short Description BayWa r.e. Behat Contexts
License proprietary
Homepage https://baywa-re.com
Informations about the package behat-contexts
BayWa r.e. Behat Contexts
This repository provides you with different Behat Contexts containing common test steps that can be reused across different projects.
Installation
Install the package via Composer:
In your behat.yml
, add the following:
HalContext
A Context to parse & test API responses in HAL format:
- https://de.wikipedia.org/wiki/Hypertext_Application_Language
- https://stateless.group/hal_specification.html
In your FeatureContext
, add the following:
And when you receive a reponse from your API, pass it to the context:
You can add placeholders to your URL by writing:
And add the corresponding value with:
AuthContext
A Context to login to a generic Auth Server (OpenID Connect/OAuth2) with Login/Password or as a Machine-to-Machine client.
The HalContext
needs to be initialized first.
In your FeatureContext
, add the following:
SqsContext
A Context to use AWS SQS compatible queues like e.g. ElasticMQ
In your FeatureContext
, add the following:
To clear the queues before each Scenario, use the following code:
ConsoleContext
A Context containing steps to test console routes
In your FeatureContext
, add the following:
All versions of behat-contexts with dependencies
ext-curl Version *
ext-json Version *
ext-openssl Version *