Automated release tests for PNC through Web UI
npm
npm install
The following paramaters can be set:
Parameter | Description |
---|---|
seleniumAddress | The address of the selenium server to execute on |
pncUiAddress | The address of the PNC UI to test |
pncRestAddress | The PNC REST API backing the above UI (necessary for verifying some tests) |
pncUser | The username to run tests as |
pncPassword | the password to login with |
To set the parameters use:
npm config set pnc-ui-release-tests:<key> <value>
Example:
npm config set pnc-ui-release-tests:seleniumAddress http://localhost:4444
Set parameters as described above except seleniumAddress - ignore that param.
Update selenium webdriver:
npm run webdriver:update
Start selenium server (you will want to run this in a separate terminal, or run in background):
npm run webdriver:start
Execute the release test suite by:
npm run test-suite:release
An suite of tests are available to ensure the test environment is nominal:
npm run test-suite:environment
Executing individual tests:
npm run test-suite --specs=<path_to_spec_file(s)>
Example:
npm run test-suite --specs=tests/release/scenario1.spec.js,tests/environment.spec.js
In your CI script you will want to:
Set all params as described above
Execute the release test suite:
npm run test-suite:release
You can also use the environment tests to check compatibility of the CI environment:
npm run test-suite:environment
To be added later