- Base repository with Test Automation framework for backend testing.
- Version 1.0.0
-
Configuration
- What is needed:
- Java 1.8
- Maven - https://maven.apache.org/download.cgi?Preferred=ftp://ftp.osuosl.org/pub/apache/
- Allure CLI - https://docs.qameta.io/allure/#_get_started (For windows https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/)
- Sourcetree or any other GIT client - https://www.sourcetreeapp.com/
- Intellij Community - https://www.jetbrains.com/idea/download/#section=windows
- Configuration
- Add Java path to Windows environment variables.
- Add Maven path to folder with maven to Windows environment variables.
- Add Allure CLI path to folder to Windows environment variables.
- Using CMD check java version using
java -version
- Using CMD check java home using
echo JAVA_HOME
- Using CMD check maven version using
mvn -version
- Using CMD check allure version using
allure --version
- Plugins (File > Settings > Plugins)
- Cucumber for Java
- Gherkin
- Lombok (should be bundled)
- Intellij config
- File > Settings > Annotation Processors > Enable annotation processing (Select checkbox)
- What is needed:
-
How to run tests
- Use run configuration API All to execute all test from Suite or API @dev to execute single tests. Using @dev requires tag to be added before scenario. For different suites different run configuration need to be created.
- run from maven command
mvn -Denv.URL="https://api.publicapis.org" -Ddataproviderthreadcount=1 test
- Writing tests - WIP
- Code review - WIP
- Other guidelines - WIP
- Go to Intellij Terminal (can be found on the bottom or View>Tool Windows>Terminal)
- Move to target folder
cd target
- Use command
allure generate --clean
it will generate allure-report folder. - Use command
allure serve
it will start web server with Allure report. - In terminal server can be stopped with key shortcut CTRL + C
- Author: Paweł Borkowski