Download the PHP package fesor/behat-stepler without Composer

On this page you can find all versions of the php package fesor/behat-stepler. 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 behat-stepler

Behat Stepler

Simple behat extension which lets you run just specific gherkin step form CLI.

Why?

Gherkin gives us unified way to describe business requirements, but what if we want E2E tests? Let's pretend that we have project with several components: iOS application, Android application, single-page application frontend and API on backend. For all listed components there is a great tools: cucumber.js, calabash, behat. But if you'll start implement E2E tests you'll face a little problem: most of scenarios have some preconditions, which should be set on backend.

So... what does this extension? It just provide you a way to execute specific step anytime you want. For example, you can implement steps required by preconditions in behat, and then just call this steps from your cucumber.js suites for example.

Usage

You can install this extension via composer:

Then you'll need to add extension into your behat.yml:

That's it. Now you can call just single step:

Step execution results

Sometime useful to get results of executed step. Given you have step definition, which creates new user. Often you need to get ID of created user (for interaction with API for example). This step definition would looks something like this:

Then, if we run this step with --return-step-results option:

We will get something like this:

Data will be serialized with json_encode, so you should return some kind of DTO, which can be easly serialized into JSON (arrays, simple objects of objects which implements JsonSerializable interface).

Hooks

Please not that only BeforeStep and AfterStep hooks are available. If you want to clear your database for example, the workaround for this will be specific step that will purge all test data.

Contribution

Feel free to contribute! Any help or ideas will be useful!


All versions of behat-stepler with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
behat/behat Version ^3.0.12
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 fesor/behat-stepler contains the following files

Loading the files please wait ....