Skip to content

Page Object Model automation testing solution implemented using Playwright

License

Notifications You must be signed in to change notification settings

Harshith2695/Playwright---LumaMagentoDemoSiteTest

Repository files navigation

Playwright---LumaMagentoDemoSiteTest

Page Object Model automation testing solution implemented using Playwright

image

About

This is a personal project to develop automated testing solution for demo e-commerce website Luma Magento (https://magento.softwaretestingboard.com).

Built using Node.JS and Playwright with POM approach.

The website is divided into pages as below:

-Homepage 
-Product Listing Page
-Product Description Page
-Cart Page
-Checkout Page

The methods to interact with the elements and element locators are present in each page object class.

Refer https://playwright.dev/docs/intro for more details

Pre Requisites

Below softwares or tools needs to be installed to execute the tests

Software/Tool Version
Visual Studio Code 1.35 icon Latest
Node.js logo Latest Stable Version

Test Execution commands

Run all the tests

npx playwright test --headed

Run single test

npx playwright test <filepath> --headed --project "<browser>"

file path is path to test script

Ex: ./tests/addToCartAndOrder.spec.ts

browser can be one of below

Google Chrome icon (2011) Google Chrome
Firefox logo, 2019 Firefox
Microsoft Edge logo (2019) Microsoft Edge
Safari browser logo Safari

Reports

Test report can be viewed by executing

npx playwright show-report

image

Attribution

Browser and tools/software images are obtained via Wikimedia Commons (https://commons.wikimedia.org/wiki/Main_Page)

About

Page Object Model automation testing solution implemented using Playwright

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published