承接 froggdev/behat-installer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

froggdev/behat-installer

Composer 安装命令:

composer require froggdev/behat-installer

包简介

Easy Behat installation with new features and multiple reports options.

README 文档

README

Latest Stable Version Latest Unstable Version Total Downloads License

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
  • (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

  • Install without stability dev required
  • 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.php

           behat/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

Specials thanks

Mouncef ZAGHRAT

Copyright

Copyright (c) 2019 Frogg admin@frogg.fr.

统计信息

  • 总下载量: 41
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固