- Install Java 8 or higher on your local machine. To download Java 8 jdk click on that and install java for Windows.
- To set up JAVA_HOME follow next steps:
- Click left button of the mouse on the 'My computer' icon and choose 'Settings' in the drop-down list;
- In the 'System' window click 'Additional parameters of the system';
- Click on button 'Environment variables';
- In the modal window 'System variables' click button 'Add';
- In the field 'Variable name' fill 'JAVA_HOME';
- In the field 'Variable value' fill ;
- Click 'OK' button;
- Open 'PATH' in the 'System variables';
- In the bottom of the list add %JAVA_HOME%\lib, %JAVA_HOME%\bin and %JAVA_HOME%\jre;
- To check the acceptance of changes, open the command line of your machine and run the following 'path' command, at the end of the change you need to set \lib,\bin and \jre
- Install with Homebrew
- Install Homebrew using the command (if the homebrew already installed into you mac os skip that step)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- Install java 8 using command
brew tap adoptopenjdk/openjdk && brew cask install adoptopenjdk8
- Set JAVA_HOME using command
export JAVA_HOME=/path/to/java
(usually for homebrew install it would be /Library/Java/JavaVirtualMachines/jdk/Contents/Home) - Set JAVA_HOME to the patch using command
PATH=$JAVA_HOME/lib:$JAVA_HOME/bin:$JAVA_HOME/jre:$PATH
- Install Homebrew using the command (if the homebrew already installed into you mac os skip that step)
- Install
IntelliJ IDEA
IDE - Install Lombok Plugin:
IntelliJ IDEA > Preferences > Plugins > Browse repositories > Lombok Plugin
- Enable annotation processing:
IntelliJ IDEA > Preferences > Build, Execution, Deployment > Compiler > Annotation Processors > Enable annotation processing
- Checkout project from git
- Start import as
Maven
project - Go to the
src/test/resources/
click on the right button and clickRun 'Test' in 'ExpediteSuite.xml...'
- Checkout project from git
- Go to the checkout folder using
cd java-web-test-demo
- Start test using command for Windows:
mvnw.cmd clean test
for macOS:./mvnw clean test
- After test finished to generate the report using next command for Windows
mvnw.cmd allureReport && mvnw.cmd allureServe
for macOS:./mvnw allure:report && ./mvnw mvn allure:serve
- Go to the Team City server
- Login to the server (To get credential to the server please contact me)
- Open Web e2e test Build and Test under AFJ Solution project
- Click Run
- To see report go to
Open build with name API integration tests Build and Test > Artifacts > Collapse allure-report.zip > Click on the index.html