Download the PHP package jordigiros/minkfieldrandomizer without Composer

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

Behat Mink Field Randomizer

MinkFieldRandomizer is a random (with sense) information generator for filling form fields in Behat Mink tests. It brings the option to run your tests in a more realistic way changing the information you use to fill in the forms in every test you run.

CircleCI

Installing with Composer

How to use

MinkFieldRandomizer includes a trait FieldRandomizerTrait that has some extra methods that will permit you to randomize your features involving forms.

You only need to add that trait to your main FeatureContext Behat Context as follows:

This way you can use the new steps added by the trait directly in the gherkin feature.

Steps added by MinkFieldRandomizer

Documentation

Common methods

Generate and fill with new random values

Fill in with previously generated random values

Note: If you didn't generate the random information previously (Generate and fill with new random information) they won't work.

Filling multiple fields with a TableNode object:

Gherkin: `

PHP:

Checking that a field has an specific previous random generated information:

Gherkin:

PHP:

It will fail if field contains a value different than the one given.

Filling a field with a custom random value

Gherkin:

PHP:

It brings the option to customize some properties of the random values.

Values and customization

Name Value Comment
Email {RandomEmail}
{RandomEmail(domain)}
RandomEmail accepts at most a parameter, the domain for the random email address - if none is given gmail.com is provided.
Name {RandomName} RandomName does not accept parameters
Surname {RandomSurname} RandomSurname does not accept parameters
Number {RandomNumber}
{RandomNumber(N,M)}
RandomNumber accepts at most two parameters, returns a random number between the two given or between 0 and 9 if no params given.
Phone {RandomPhone}
{RandomPhone(N)}
RandomPhone accepts at most a parameter, the number of numbers in the string. If no parameter is given, it will return a 15 digits number.
Text {RandomText}
{RandomText(N)}
RandomText accepts at most a parameter, the number of characters in the string.If no parameter is given, it will return a 15 chars string.
LoremIpsum {RandomLoremIpsum}
{RandomLoremIpsum(N)}
RandomLoremIpsum accepts at most a parameter, the number of paragraphs in the string. If no parameter is given, it will return a 2 paragraphs string.

Copyright

Copyright (c) 2016 Jordi Girós Guerrero. See LICENSE for details. Contributors: Jordi Bisbal, Alex Skrypnyk.


All versions of minkfieldrandomizer with dependencies

PHP Build Version
Package Version
Requires behat/behat Version ~3.0
behat/mink-extension Version ~2.0
behat/mink-goutte-driver Version 1.2.x
behat/mink-selenium2-driver Version ^1.4
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 jordigiros/minkfieldrandomizer contains the following files

Loading the files please wait ....