- Git should be installed
- Node should be installed
- Visual Studio IDE should be installed
- Playwright
- Cucumber
First of all, you need clone the repository
Open the project on the Visua Studio Code and go to terminal, from the root of the project execute the next command to install the dependecies:
API documentation URL
npm installBy default the url configured is AXA page, if you want change the URL you need:
From the root of the project
export BASEURL='environmetURL'By default the test are launched in heandless mode true , if you want change this you need:
From the root of the project
export HEADLESS=falseBy default the playwright traces and har are disable, if you want change this you need:
From the root of the project
export TRACE='true'
export HAR='true'Once you configure all the correct execution parameters you can execute the test with the next command:
From the root of the project
npm run testE2EWe are going to use the Notes Test API, please check the documetation. By default the url configured is Notes API, if you want change the URL you need:
From the root of the project
export BASE_URL_API ='environmetURL'By default the playwright traces and har are disable, if you want change this you need:
From the root of the project
export TRACE='true'
export HAR='true'Once you configure all the correct execution parameters you can execute the test with the next command:
From the root of the project
npm run testAPIAfter the execution of the test the cucumber_report.json resports are generated on the reports folder, in order obtain the html report on the same folder you should execute the next command:
npm run report