2017 © Pedro Peláez
 

behat-extension oro-behat-extension

Behat extension for Oro Platform

image

indigophp/oro-behat-extension

Behat extension for Oro Platform

  • Friday, August 19, 2016
  • by mark.sagikazar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 209 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Oro Platform Behat extension

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads, (*1)

Behat extension for Oro Platform., (*2)

Install

Via Composer, (*3)

``` bash $ composer require indigophp/oro-behat-extension, (*4)



## Usage This package provides some utilities to ease writting [Functional Tests](https://www.orocrm.com/documentation/index/current/book/functional-tests) using [Behat](http://docs.behat.org) for [Oro Platform](https://www.orocrm.com/oro-platform) based applications. Supported features: - [Database Isolation](https://www.orocrm.com/documentation/index/current/book/functional-tests#database-isolation)* - [Database Reindex](https://www.orocrm.com/documentation/index/current/book/functional-tests#database-reindex)* - Setting WSSE header _* Unlike the original Oro behavior, transaction start-rollback and reindexing are done per scenario, not per feature (test case)_ First, you need to configure Behat and the [Symfony2 Extension](https://github.com/Behat/Symfony2Extension/blob/master/doc/index.rst): ``` yaml default: # ... extensions: Behat\Symfony2Extension: ~

After that, you need to configure a bundle and load the Oro Context:, (*5)

``` yaml default: suites: acme: type: symfony_bundle contexts: - Indigo\Oro\Behat\Context\OroContext - Acme\Bundle\AcmeBundle\Features\Context\FeatureContext bundle: AcmeBundle # ..., (*6)



You can now write your features:

@dbIsolation Feature: I do something In order to something As someone I should be able to do that thing, (*7)

@wsse
Scenario: I do the thing using the REST API
    Given I am someone
    When I do the thing using the REST API
    Then the thing should have been done

@dbReindex
Scenario: I search for something
    Given I am someone
    When I search for something
    Then I should see that thing


## Testing ``` bash $ composer test

Contributing

Please see our contributing guide on developers.indigophp.com., (*8)

Security

If you discover any security related issues, please contact us at security@indigophp.com., (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

19/08 2016

dev-master

9999999-dev http://indigophp.com

Behat extension for Oro Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Márk Sági-Kazár

behat oro

19/08 2016

v0.3.0

0.3.0.0 http://indigophp.com

Behat extension for Oro Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Márk Sági-Kazár

behat oro

26/03 2016

v0.2.0

0.2.0.0 http://indigophp.com

Behat extension for Oro Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Márk Sági-Kazár

behat oro

25/03 2016

v0.1.0

0.1.0.0 http://indigophp.com

Behat extension for Oro Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Márk Sági-Kazár

behat oro