Skip to content

Latest commit

 

History

History

example

Example

This example shows how to use scenarioo-js in a Protractor (WebDriverJS) environment.

example/app contains a very simple AngularJS application, which can be used for demonstration purposes and also for contributing to scenarioo-js.

Build the scenarioo-js writer library (in scenarioo-js root) and run the example application:

npm install
npm run build
npm run serve-example

Now in a second terminal change to the example directory. Install the dependencies and run the tests like this:

npm install
npm run e2e

Don't be alarmed when this fails with errors, this is expected!

You should see following in the output:

17 specs, 5 failures, 5 pending specs

This is for testing and demonstrating how test failures and also pending tests are reported in scenarioo.

Afterwards you'll find the generated scenarioo documentation inside /scenariooReports.

This generated documentation can be browsed by using the Scenarioo Viewer Webapp.