Download the PHP package edno/codeception-gherkin-param without Composer

On this page you can find all versions of the php package edno/codeception-gherkin-param. 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 codeception-gherkin-param

Gherkin Param

Latest Version Build Status Coverage Status Mutation Score License FOSSA Status


The Codeception module for supporting parameter notation in Gherkin scenario.

Minimum Requirements

Installation

The module can be installed using Composer

Be sure to enable the module in codeception.yml as shown in configuration below.

Setup

Enabling Gherkin Param is done in codeception.yml.

Configuration

By default GherkinParam behavior is to keep the parameter string unchanged when the replacement value for a parameter cannot be found, i.e., the parameter does not exist or is not accessible.

onErrorThrowException

If true, then GherkinParam will throw an exception GherkinParam at runtime when a replacement value cannot be found for a parameter:

If onErrorThrowException is set then it will override onErrorNullable.

onErrorNullable

If true, then GherkinParam will set to null parameters for which a replacement value cannot be found:

Usage

Once installed, you will be able to access variables stored using Fixtures.

Simple parameters

In scenario steps, the variables can be accessed using the syntax {{param}}. While executing your features, the variables will be automatically replaced by their value.

Array parameters

You can refer to an element in an array using the syntax {{param[key]}}.

Test Suite Config parameters

You can refer to a test suite configuration parameter using the syntax {{config:param}}. Note that the keyword config: is mandatory.

Example

The steps definition in AcceptanceTester.php do not require any change

You can find more examples in the test folder.

Contributions

Contributions, issues, and feature requests are very welcome. If you use this package and have fixed a bug for yourself, please consider submitting a PR!

Made with contributors-img.


All versions of codeception-gherkin-param with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4 <9.0
codeception/codeception Version 3 - 5
composer-runtime-api Version ^2.0
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 edno/codeception-gherkin-param contains the following files

Loading the files please wait ....