Update doc
This commit is contained in:
parent
e423bbf823
commit
fc69b88923
@ -24,7 +24,7 @@ We can run selenium by two ways:
|
||||
|
||||
###Run the acceptance tests
|
||||
|
||||
* In `nightwatch.conf.js` file inside the root directory of the project and inside the configuration file following environment variable has been specified. We can change the default values according to our local configuration.
|
||||
* In `nightwatch.conf.js` file inside the root directory of the project and inside the configuration file following environment variable has been specified. We can change the default values according to our local configuration.
|
||||
|
||||
```
|
||||
const admin_username = process.env.ADMIN_USERNAME || 'dolibarr';
|
||||
@ -33,24 +33,23 @@ We can run selenium by two ways:
|
||||
|
||||
const launch_url = process.env.LAUNCH_URL || 'http://localhost/dolibarr/htdocs/';
|
||||
```
|
||||
* You can run test using following commands
|
||||
|
||||
* You can run test using following commands
|
||||
|
||||
`yarn run test:e2e test/acceptance/features/<feature_file>`
|
||||
|
||||
For example: `yarn run test:e2e test/acceptance/features/addUsers.feature`
|
||||
For example: `yarn run test:e2e test/acceptance/features/addUsers.feature`
|
||||
|
||||
OR
|
||||
|
||||
`LAUNCH_URL='<launch_url>' ADMIN_USERNAME='<admin_username>' ADMIN_PASSWORD='<admin_password>' yarn run test:e2e test/acceptance/features/`
|
||||
Or: `LAUNCH_URL='<launch_url>'; ADMIN_USERNAME='<admin_username>'; ADMIN_PASSWORD='<admin_password>'; yarn run test:e2e test/acceptance/features/`
|
||||
|
||||
The full script to run the acceptance tests is specified in `scripts` object of `package.json` file inside the project's root directory as :
|
||||
The full script to run the acceptance tests is specified in `scripts` object of `package.json` file inside the project's root directory as :
|
||||
|
||||
`"test:e2e": "node_modules/cucumber/bin/cucumber-js --require test/acceptance/index.js --require test/acceptance/stepDefinitions -f node_modules/cucumber-pretty"`
|
||||
`"test:e2e": "node_modules/cucumber/bin/cucumber-js --require test/acceptance/index.js --require test/acceptance/stepDefinitions -f node_modules/cucumber-pretty"`
|
||||
|
||||
After you run the above command you can see the test running. For that :
|
||||
After you run the above command you can see the test running. For that :
|
||||
|
||||
* open `Remmina` (Remmina is a Remote Desktop Client and comes installed with Ubuntu)
|
||||
* open `Remmina` (Remmina is a Remote Desktop Client and comes installed with Ubuntu)
|
||||
|
||||
* choose `VNC` and enter `localhost` on the address bar
|
||||
* choose `VNC` and enter `localhost` on the address bar
|
||||
|
||||
* enter `secret` as the password
|
||||
* enter `secret` as the password
|
||||
|
||||
Loading…
Reference in New Issue
Block a user