Jan-Christoph Borchardt 91d9d45c6c correct delete-icon to icon-delete, fix #11128 | %!s(int64=10) %!d(string=hai) anos | |
---|---|---|
.. | ||
screenshots | 50ae19cc5c add bunch of acceptance tests | %!s(int64=10) %!d(string=hai) anos |
tests | 91d9d45c6c correct delete-icon to icon-delete, fix #11128 | %!s(int64=10) %!d(string=hai) anos |
.gitignore | b0e0893a1a gitignore for node modules | %!s(int64=10) %!d(string=hai) anos |
package.json | 41c5327fca bump version of protractor in package.json | %!s(int64=10) %!d(string=hai) anos |
protractor_conf.js | 56eedca2c3 Added acceptance tests for enabling apps | %!s(int64=10) %!d(string=hai) anos |
readme.md | 47c3a5c3b1 Fixed readme for acceptance tests | %!s(int64=10) %!d(string=hai) anos |
Install node.js and run the following to install the dependencies
npm install
Install the webdriver
./node_modules/protractor/bin/webdriver-manager update
Install protractor as global command ( optional )
npm install -g protractor
Run the tests with protractor
protractor protractor_conf.js
Run only a specific test suite or spec
protractor protractor_conf.js --suite install
protractor protractor_conf.js --params.baseUrl="http://127.0.0.1/ownClouds/test-community-7.0.1/" --suite=login
protractor protractor_conf.js --params.baseUrl="http://127.0.0.1/ownClouds/test-community-7.0.1/" --specs tests/login/newUser_spec.js
You can find and define suites in protractor_conf.js
Install suite: Run this suite on a not yet installed ownCloud, it will install during the tests
After installation tests should run without the "First Run Wizard" app because of timing issues. Disable the app on the server with
php occ app:disable firstrunwizard
The tests/pages
folder contains page objects.
A page object describes a webpage, gathers selectors and provides functions for actions on the page.
In the specs these higher level functionality can be reused and the tests become nice and readable.
A good starting point is the login suite in the login folder and the login page object.
If you want to start only a single test (it) or collection of tests (describe) use:
You can also use
For deeper insights and api docs have a look at