- Download
JDK1.8
(from https://www.oracle.com) orOpenJDK1.8
from official website.- Config user environment of JDK:
JAVA_HOME
, and add JDK binary directory toPATH
- Download
Maven
from Maven official Website- Add maven binary directory to
PATH
.
If you have downloaded source from repository, you can run test cases easily by typing the
Maven
command in CLI:
mvn test
When you have finished the test, you can find test report in
json
format intarget/cucumber-report/api-test-report.json
; And you also can find theHTML
test report intarget/cucumber-report/html
directory. This framework also support Allure-report. Run maven goal in CLI:
mvn allure:report
You can also generate report site server using maven:
mvn allure:serve
- I didn't add the Log module to collect important logs in runtime, as this is just a simple test framework and I don't need the logs to help me for debugging.
- I did't add the
variables pool
to solve therelative
between requests.(some important variables from the previous response is needed for the next request)