npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

qcumberbatch

v0.2.3

Published

Integration wrapper between qcumber and webdriverjs.

Downloads

12

Readme

qcumberbatch

A variety of bridge steps between cucumberjs and webdriverjs.

The approach taken here I'm calling 'Selenium Mappings Model'. Read about it!

Getting Started

For local testing, you will need Firefox to test Firefox, Chrome and the Chrome Driver to test Chrome, and the Selenium Standalone Server to test Safari, IE, or [Opera][op]. (The qcumberbatch cucumber grunt task works well with a standalone grunt task.)

For Browserstack testing, you will need a Browserstack account with time on the Automate product.

Cucumber task

Run this task with the grunt cucumber command.

Task targets, files and options may be specified according to the Grunt Configuring tasks guide.

Options

matrix

Type: Object Default: {}

Specify the list of OS and Browser versions to test. The keys of the object are strings specifying "<os> [version] [resolution]". The values are an array of strings, each entry being one of "browser [version]".

Each of the properties' values are constrained by the Browserstack and Selenium Webdriver configuration and documentation. To run local tests, specify local for the OS, and no version or resolution. To run tests against browserstack, specify OSX or Windows for the OS, a Browserstack version for the os version (XP, 8.1, Mountain Lion, Mavericks, etc). Locally, browsers can be anything loaded from selenium-webdriver/Capabilities. On Browserstack, specify an appropriate name and version. To test on a mobile device, set os as one of android or ios; set resolution to landscape or portrait; and put the entire device name in the browser array.

A complete example:

matrix:
    "Windows 8.1 1280x1024": [
        'IE 11.0'
        'Chrome 36.0'
    ]
    "Windows XP 1024x768": [
        'Firefox 31.0'
    ]
    "OS X Mavericks 1920x1080": [
        'Safari 7.0'
        'Firefox 31.0'
        'Chrome 36.0'
    ]
    "ios portrait": [
        'iPad 4th Gen'
    ]
    "android landscape": [
        'Google Nexus 7'
    ]

failHard

Type: boolean Default: false

If true, stop the grunt task after the first error in a selenium test. Otherwise, will run tests on the entire device matrix, and only fail after all tests have completed.

tags

steps

format

Type: string Default: ""

These have the same meanings as their cucumberjs CLI counterparts.

Release History

  • 0.2.3 2015-01-27 Expose selenium-webdriver.By on world.
  • 0.2.2
  • 0.1.2 2014-09-24 Better handling of capabilities list.
  • 0.1.1 2014-09-24 Expose cucumber task.
  • 0.1.0 2014-09-24 Matrix browser spec and Browserstack intertie.
  • 0.0.4 2014-06-18 SELENIUM_BROWSER flag.
  • 0.0.3 2014-04-24 Added findAll to world.
  • 0.0.2 2013-11-29 Documentation release.
  • 0.0.1 2013-10-30 Initial release; some basic steps, and screenshot handing.