Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/froggdev/behat-installer
Install Behat with additionnal contexts, functionnalities and Selenium
https://github.com/froggdev/behat-installer
additionnal-contexts bdd behat behat-installer context frogg html-report scenarios selenium symfony
Last synced: 25 days ago
JSON representation
Install Behat with additionnal contexts, functionnalities and Selenium
- Host: GitHub
- URL: https://github.com/froggdev/behat-installer
- Owner: FroggDev
- License: mit
- Created: 2019-10-10T12:40:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-17T16:38:29.000Z (about 5 years ago)
- Last Synced: 2024-12-19T21:24:24.209Z (25 days ago)
- Topics: additionnal-contexts, bdd, behat, behat-installer, context, frogg, html-report, scenarios, selenium, symfony
- Language: PHP
- Homepage:
- Size: 31.3 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Latest Stable Version](https://poser.pugx.org/froggdev/behat-installer/v/stable.svg)](https://packagist.org/packages/froggdev/behat-installer)
[![Latest Unstable Version](https://poser.pugx.org/froggdev/behat-installer/v/unstable.svg)](https://packagist.org/packages/froggdev/behat-installer)
[![Total Downloads](https://poser.pugx.org/froggdev/behat-installer/downloads.svg)](https://packagist.org/packages/froggdev/behat-installer)
[![License](https://poser.pugx.org/froggdev/behat-installer/license.svg)](https://packagist.org/packages/froggdev/behat-installer)# behat-installer
**This package install BeHat to your symfony projet (or a new symfony project) configured to work with Selenium directly after installing this package.**
Adding additionnal contexts & functionnalities to Behat
- Advanced demo with Selenium navigation
- Demo with Internet Explorer using BeHat Profile configuration
- Demo with Environment options
- Lot of new contexts
- possibility to define and use variables in scenarios
- HTML report using [emuse/behat-html-formatter](https://packagist.org/packages/emuse/behat-html-formatter)
- (optional) copy the html report and zip it if no error occured
- (optional) sending mail once test are done## Installation
**Symfony**
Using symfony.exe
```
Symfony new ./myProject --version=4.4
```
Or with composer create-project command
```
composer create-project symfony/skeleton ./myProject 4.4.99
```
**Package**
```
composer require --dev froggdev/behat-installer
```
**Installation & configuration**
```
php bin\console behat:install
```
**Run BeHat**command to run BeHat advanced demo with Selenium
```
vendor\bin\behat
```## Todo list
- [x] Install without stability dev required
- [x] Remove package remove bootstrap.php ( was in symfony extension recipies)
- [ ] symfony 5.0```
behat/behat/Testwork/src/ServiceContainer/Configuration/ConfigurationTree.php
// Symfony <= 4.4
$tree = new TreeBuilder();
$root = $tree->root('testwork');
// Symfony >= 5.0
$tree = new TreeBuilder('testwork');
$root = $tree->getRootNode();
```
```
// Symfony <= 4.4
Symfony\Component\EventDispatcher\Event
// Symfony >= 5.0
Symfony\Contracts\EventDispatcher\Event
``````
// Symfony >= 5.0
mink-drivers/src/BrowserKitDriver.php
public function __construct($client
behat/Behat/src/Output/Node/Printer/CounterPrinter.php
public function __construct(
ResultToStringConverter $resultConverter,
ExceptionPresenter $exceptionPresenter,
$translator,
$basePath
behat/Behat/src/Output/Node/Printer/ListPrinter.php
public function __construct(ResultToStringConverter $resultConverter, $translator)
behat/Behat/src/Gherkin/Cli/SyntaxController.php
public function __construct(KeywordsDumper $dumper, $translator)
behat/Behat/src/Definition/Translator/DefinitionTranslator.php
public function __construct($translator)
behat/Behat/src/Context/Cli/ContextSnippetsController.php
public function __construct(ContextSnippetGenerator $generator, $translator)
behat/Behat/src/Snippet/Printer/ConsoleSnippetPrinter.php
public function __construct(OutputInterface $output, $translator)
behat/Behat/src/Transformation/Transformer/RepositoryArgumentTransformer.php
public function __construct(
TransformationRepository $repository,
CallCenter $callCenter,
PatternTransformer $patternTransformer,
$translator
behat/Behat/src/Context/Cli/InteractiveContextIdentifier.phpbehat/Testwork/src/EventDispatcher/Tester/EventDispatchingExercise.php
$this->eventDispatcher->dispatch( $event,$event::BEFORE);
$this->eventDispatcher->dispatch( $event,$event::AFTER_SETUP);
behat/Testwork/src/EventDispatcher/TestworkEventDispatcher.php
// Symfony <= 4.4
//$this->doDispatch($this->getListeners($eventName), $eventName, $event);
// Symfony >= 5.0
$this->callListeners($this->getListeners($eventName), $eventName, $event);
behat/Testwork/src/EventDispatcher/Tester/EventDispatchingSuiteTester.php
$this->eventDispatcher->dispatch( $event,$event::BEFORE);
$this->eventDispatcher->dispatch( $event,$event::AFTER_SETUP);
behat/Behat/src/EventDispatcher/Tester/EventDispatchingFeatureTester.php
$this->eventDispatcher->dispatch($event,$event::BEFORE);
$this->eventDispatcher->dispatch($event,$event::AFTER_SETUP);
behat/Behat/src/EventDispatcher/Tester/EventDispatchingScenarioTester.php
$this->eventDispatcher->dispatch($event,$this->beforeEventName);
$this->eventDispatcher->dispatch($event,$this->afterSetupEventName);
$this->eventDispatcher->dispatch($event,$this->beforeTeardownEventName);
$this->eventDispatcher->dispatch($event,$this->afterEventName);
behat/Behat/src/EventDispatcher/Tester/EventDispatchingStepTester.php
$this->eventDispatcher->dispatch($event,$event::BEFORE);
$this->eventDispatcher->dispatch($event,$event::AFTER_SETUP);
$this->eventDispatcher->dispatch($event,$event::BEFORE_TEARDOWN);
$this->eventDispatcher->dispatch($event,$event::AFTER);
behat/Behat/src/EventDispatcher/Tester/EventDispatchingFeatureTester.php
$this->eventDispatcher->dispatch( $event,$event::BEFORE_TEARDOWN);
$this->eventDispatcher->dispatch($event,$event::AFTER);
+ other $this->eventDispatcher->dispatch( ...
+ todo $this->translator->transChoice( ...
```
- [ ] Work with IE
- [ ] Remove ralouphie package
- [ ] Script behat:config
- [ ] add uservar to user feature
- [ ] Bug result ok is based only on 1st scenario
- [ ] Replace :value to RegExp
- [ ] Do more advanced scenario
- [ ] Add demo with BeHat TAG sample
- [ ] Linux version
- [ ] Translation## Credits
**Maintainers**
[Frogg FroggDev](https://github.com/FroggDev)
**Specials thanks**
[Mouncef ZAGHRAT](https://github.com/Mouncef)
**Copyright**
Copyright (c) 2019 Frogg [email protected].