Quickstart
The below steps would help you get a feel of Restel by running a demo server and test it with a pre-written excel file.
You can quick start by either:
You can edit the sample sheet to play around with the tests being executed.
Cloning the git repository
Pre-requisite
- JDK 11
- Docker
- JsonBox
Steps to follow
*nix
- Go to the root folder of the project and run
make setup
to install the dependencies for reporting in your machine. - Start Jsonbox by running
docker-compose up
. - To execute the test, go to the home folder and run,
make demo-run
.
Windows
- Refer Setup section on steps to manually setup JDK11 and allure.
- Start Jsonbox by running
docker-compose up
- To execute the test, go to the home directory and run,
.\scripts\run.bat quickstart\jsonbox_test.xlsx
Note
If
docker-compose
is not working for JsonBox, please refer to the instruction in jsonbox to have it up & running.
Downloading the required files from repo (without entire setup)
Pre-requisite
- JRE 11
- Restel Jar
- Quickstart spreadsheet
- Docker + JsonBox
- Allure CLI
Steps to follow
- Download the Restel JAR and quickstart Excel file into a directory.
- Verify that Jsonbox is running.
- Execute the JAR, passing the test sheet as argument.
- Generate Allure report with the test result
- View the allure report in browser
*nix:
java -jar restel-0.1-all.jar jsonbox_test.xlsx && \
allure generate build/reports/allure-results -o build/reports/allure-report --clean && \
allure open -p 37004 build/reports/allure-reportWindows Powershell:
java -jar .\restel-0.1-all.jar .\jsonbox_test.xlsx && `
allure generate .\build\reports\allure-results\ -o .\build\reports\allure-report\ --clean && `
allure open -p 37004 .\build\reports\allure-report
Note
Use the appropriate file path separator based on your OS. *nix uses forward slash
/
while Windows uses backward slash\
.