@nuxeo/nuxeo-web-ui-ftest
A framework to develop functional tests for [Nuxeo Web UI](https://github.com/nuxeo/nuxeo-web-ui), using [WebDriverIO](https://webdriver.io/) and [Cucumber](https://cucumber.io/).
Last updated 15 days ago by nuxeo .
Apache-2.0 · Original npm · Tarball · package.json
$ cnpm install @nuxeo/nuxeo-web-ui-ftest 
SYNC missed versions from official npm registry.

Nuxeo Web UI Functional Testing Framework

A framework to develop functional tests for Nuxeo Web UI, using WebDriverIO and Cucumber.

Getting Started

Installation

You can install the latest Nuxeo Web UI Functional Testing framework via:

npm install @nuxeo/nuxeo-web-ui-ftest

Please keep in mind that the framework version must match the version of Web UI that needs to be tested:

# for the latest hotfix of Web UI 2.4 (for 10.10)
npm install @nuxeo/nuxeo-web-ui-ftest@^2.4.0

# for the latest hotfix of Web UI 2.2 (for 9.10)
npm install @nuxeo/nuxeo-web-ui-ftest@^2.2.0

Project Structure

Cucumber tests are written in Gherkin, which are then translated into JavaScript instructions that run commands using the WebDriver protocol. Tests are written in feature files (ending with the .feature extension), which are composed by a set of Scenarios with one or more Steps. Step definitions are instructions defined in JavaScript files that match the steps used in the feature files, which can run WebdriverIO commands and make assertions.

The framework reads feature files, step definitions and resources by convention, so your project needs to follow a particular structure. Features files are read from the test/features folder, step definitions from test/features/step_definitions, and test resources (e.g. test images) are loaded from test/resources.

.
├── package.json
└── test
    ├── features
    │   ├── myfeature1.feature
    │   ├── myfeature2.feature
    │   ├── ...
    │   └── step_definitions
    │       ├── myfeature1.js
    │       ├── myfeature2.js
    │       └── ...
    └── resources
        ├── image.png
        └── ...

Running Tests

We recommend adding the following script to your package.json file to run the functional tests on your project:

"scripts": {
  "test": "nuxeo-web-ui-ftest --report --screenshots"
},

With this in place, npm run test will run the functional tests against Web UI, which is expected to be hosted on a nuxeo server running on the 8080 port.

Examples

Please check the Nuxeo DAM's marketplace project for an example on how to use the functional testing framework to test contributions to Web UI.

Documentation

Please check out the Web UI functional testing documentation.

License

Apache License 2.0 Copyright (c) Nuxeo SA

About Nuxeo

Nuxeo dramatically improves how content-based applications are built, managed and deployed, making customers more agile, innovative and successful. Nuxeo provides a next generation, enterprise ready platform for building traditional and cutting-edge content oriented applications. Combining a powerful application development environment with SaaS-based tools and a modular architecture, the Nuxeo Platform and Products provide clear business value to some of the most recognizable brands including Verizon, Electronic Arts, Sharp, FICO, the U.S. Navy, and Boeing. Nuxeo is headquartered in New York and Paris. More information is available at www.nuxeo.com.

Current Tags

  • 2.2.44                                ...           latest (15 days ago)

22 Versions

  • 2.2.44                                ...           15 days ago
  • 2.2.43                                ...           2 months ago
  • 2.2.42                                ...           3 months ago
  • 2.2.41                                ...           3 months ago
  • 2.2.40                                ...           4 months ago
  • 2.2.39                                ...           5 months ago
  • 2.2.38                                ...           6 months ago
  • 2.4.18                                ...           7 months ago
  • 2.4.17                                ...           7 months ago
  • 2.2.37                                ...           8 months ago
  • 2.4.16                                ...           8 months ago
  • 2.4.15                                ...           8 months ago
  • 2.2.36                                ...           8 months ago
  • 2.4.14                                ...           8 months ago
  • 2.4.13                                ...           9 months ago
  • 2.2.35                                ...           9 months ago
  • 2.4.12                                ...           9 months ago
  • 2.4.11                                ...           10 months ago
  • 2.2.34                                ...           10 months ago
  • 2.4.10                                ...           a year ago
  • 2.2.33                                ...           a year ago
  • 2.4.9                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 13
Dependencies (19)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |