Skip to content

cemkul/AXA-UI-API-Testing

Repository files navigation

qa-interview-exercise

Required Setup:

Stack & Libraries

IDE Extensions

  • Playwright
  • Cucumber

Contributing

First of all, you need clone the repository

Installing dependencies

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 install

Running fontend tests

By 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=false

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 testE2E

Running api tests

We 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 testAPI

Test reports

After 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

About

AXA Digital Platform automation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors