Skip to content
Update Testing Guide authored by Julian Rausch's avatar Julian Rausch
......@@ -62,25 +62,23 @@ For starting Cypress Tests a cypress.env.json file is needed. This file should c
"operator_username": "otp",
"operator_password": "otp",
"user_username": "dave",
"user_password": "otp"
"user_password": "otp",
"departmentHead_username": "goofy",
"departmentHead_password": "otp"
}
```
To define an individual baseUrl use the following command:
```export CYPRESS_BASE_URL=https://localhost:8080```
Before running cypress tests create an empty otp instance, then run the following scripts:
- ```initialize/demoImports/CreateExampleData.groovy```
- ```initialize/demoImports/CreateExampleWorkflowData.groovy```
Deactivate backdoor user, therefore modify .otp.properties
- `otp.security.useBackdoor=false`
- `otp.security.ldap.enabled=true`
All Cypress tests can be run with ```./gradlew runCypressTests```
For Individual testing and to use the gui run the command ```./gradlew runCypressTestsInWindow```
#### Gradle Commands ####
- ```./gradlew runCypressTests```: Run all Cypress tests
- ```./gradlew runCypressTests -Pspec="cypress/e2e/departmentConfiguration.spec.js"``` or ```./gradlew runCypressTests -Dspec="cypress/e2e/departmentConfiguration.spec.js"```: run individual Test in headless browser
- ```./gradlew runCypressTestsInWindow```: Open Cypress UI for testing with recordings
Unit Testing (With Fake Objects)
--------------------------------
......
......