Skip to content

mate-academy/qa_pw_allure_for_coffee_cart

Repository files navigation

Practice task: Setup Allure reporter for CoffeeCart test framework

Preparation:

  1. Open the forked repo in VSCode.
  2. Create a new branch: git checkout -b added_article_test
  3. Run the installation commands npm ci & npx playwright install.

Main task:

  1. Install the Allure adapter and command-line tool using the instructions from the topic.
  2. Add allure reporter to the playwright.config.js file.
  3. Add /allure-results/ to the .gitignore file.
  4. Trigger the tests with npx playwright test.
  5. Generate the report using allure serve allure-results.
  6. Pay attention to the tests hierarchy in the Suites, Behaviours and Packages tabs.
  7. Add allure hierarchy attributes: parentSuite, suite and subSuite for each test.
  8. Add severity attribute to each test.
  9. Delete the allure-results folder.
  10. Trigger the tests with npx playwright test.
  11. Generate the report using allure serve allure-results.
  12. Note that the hierarchy changed in the Suites tab, while Behaviours and Packages remains the same.
  13. Add allure hierarchy attributes: epic, feature and user story for each test.
  14. Delete the allure-results folder.
  15. Trigger the tests with npx playwright test.
  16. Generate the report using allure serve allure-results.
  17. Note that the hierarchy changed in the Behaviours tab, while Packages remains the same.
  18. Check that the tests' severities are displayed in the Graphs tab > Severity.

Task Reporting:

  1. Add and commit all your updates.
  2. Push the code to the origin.
  3. Create PR for your changes.
  4. Fix all the suggestions from the Code review until PR is approved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published