承接 dennisdigital/phantomjscontext 相关项目开发

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

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

dennisdigital/phantomjscontext

Composer 安装命令:

composer create-project dennisdigital/phantomjscontext

包简介

Dennis PhantomJS Context.

README 文档

README

phantomjscontext starts and stops PhantomJS before and after each scenario. It enables each site to use it's own port for running PhantomJS. It utilises dennisdigital/phantomjs-extension which is a driver for PhantomJS: https://github.com/dennisinteractive/PhantomJs-Extension

Usage

In behat.yml:

Add the context under contexts: Behat\PhantomContext\Context\PhantomJsContext

Add the extension under extensions: Behat\PhantomJsExtension: ~

Change javascript_session to phantomjs

Add the configuration replacing the port number with the site specific one:

phantomjs:
        bin: phantomjs2
        wd_port: 60301
        wd_host: http://localhost:60301/wd/hub

The site specific port numbers are available from google docs.

Example behat.yml:

     contexts:
        - FeatureContext:
        - Drupal\DrupalExtension\Context\MinkContext
        - Drupal\DrupalExtension\Context\RawDrupalContext
        - Behat\PhantomContext\Context\PhantomJsContext
        - Behat\BDDCommonExtension\Context\BDDCommonContext:
            parameters:
              screen_shot_path: %paths.base%/captured/screenshot
              screen_shot_url: %mink.base_url%/sites/carbuyer/tests/captured/screenshot
              html_path: %paths.base%/captured/html
              html_url: %mink.base_url%/sites/carbuyer/tests/captured/html
              drupal_users:
                drupal:
                  'drupal'
                behat_editor:
                  'editor3'
  extensions:
    Behat\PhantomJsExtension: ~
    Behat\MinkExtension:
      base_url: 'http://carbuyer.vm.didev.co.uk/'
      default_session: goutte
      javascript_session: phantomjs
      phantomjs:
        bin: phantomjs2
        wd_port: 60301
        wd_host: http://localhost:60301/wd/hub
      goutte: ~

In composer.json

Under require add "dennisdigital/phantomjscontext": "1.0"

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 29
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-10-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固