Download the PHP package lexsoft/drupal-behat-contexts without Composer

On this page you can find all versions of the php package lexsoft/drupal-behat-contexts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package drupal-behat-contexts

Drupal Behat Contexts

Contexts that we use with Behat 3.x tests on Drupal sites.

How?

Installation

Prerequisites

This extension requires:

Through composer

The easiest way to keep your suite updated is to use Composer:

Install with composer:

Install using composer.json

Add DrupalBehatContexts to the list of dependencies inside your composer.json.

Then simply install it with composer:

You can read more about Composer on its official webpage.

Configure

Each context may have its own configuration, see each context section.

Contexts

DebugContext

Simple context to help debugging tests with some steps. Additionally, it hooks in the after step event to add a step that generates an error report on failed steps.

This report includes:

Steps

Configuration

Add DebugContext to your suite.

This is an example when bootstrap directorty is in DRUPALROOT/sites/all/tests/behat/bootstrap.

Parameters

BrowserSizeContext

This contexts allows to resize the browser to a given set of sizes. It should be used with a real browser driver like Selenium. Its main purpose is to ease tests that depends on window size.

Keep in mind that browser window size may not change between scenarios or features, even differnet test execution. For example, if you use PhantomJS the same browser is used for all tests execution (given that PhantomJS is not terminated and executed again). So if a test changes the window size next tests with the @javadcript tag will be performed with that window size.

Steps

Configuration

Add BrowserSizeContext to your suite.

To declare sizes and make them available use the context params:

The context has some default values. If a size is defined with same name as one of the default sizes the dimensions are overwritten. If a completely new size is defined is simply added to the available size.

DrupalExtendedContext

This context extends DrupalRawContext with steps related to Drupal and its modules.

Steps

Configuration

No configuration needed.

IUContext

This context provides steps for certain UI elements.

Steps

Configuration

No configuration needed.


All versions of drupal-behat-contexts with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
twig/twig Version ~1.0
behat/behat Version ~3.0
drupal/drupal-extension Version ~3.4.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lexsoft/drupal-behat-contexts contains the following files

Loading the files please wait ....