Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmedkhaled14/playwrightts
🔖 Web GUI Test Automation for sauce Labs website using playwright & Type Script
https://github.com/ahmedkhaled14/playwrightts
github-actions playwright playwright-typescript test-automation typescript
Last synced: 3 months ago
JSON representation
🔖 Web GUI Test Automation for sauce Labs website using playwright & Type Script
- Host: GitHub
- URL: https://github.com/ahmedkhaled14/playwrightts
- Owner: ahmedkhaled14
- Created: 2024-09-13T13:39:35.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T16:35:41.000Z (4 months ago)
- Last Synced: 2024-09-26T15:22:08.039Z (3 months ago)
- Topics: github-actions, playwright, playwright-typescript, test-automation, typescript
- Language: TypeScript
- Homepage: https://www.linkedin.com/posts/ahmed-khaled-317377255_playwright-typescript-automation-activity-7240417681181429760-xk0E?utm_source=share&utm_medium=member_desktop
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎭 Microsoft Playwright 🎭### 🌐 **[saucedemo website](https://www.saucedemo.com/)**
### 📝 Framework & language:
* Microsoft Playwright
* Type Script
### 🎨 Project Design:* Page Object Model design pattern (POM)
* read all test data from external json files* integrated with allure report
* CI/CD pipeline using github actions (create workflows that build and test every pull request)
#### 🔊 this project included:#### 📦️ folder for github workflows
#### 📦️ folder for all pages
#### 📦️ folder for all tests
#### 📦️ folder for all test data
#### ⚗️ playwright config file
* **[Test configuration file](https://playwright.dev/docs/test-configuration)**
### 🗃️ Documentation
* **[Microsoft Playwright](https://playwright.dev/docs/intro)**
### 🚧 Requirements* **[install Node JS](https://nodejs.org/en/download/package-manager)**
* **[install VS code](https://code.visualstudio.com/download)**
* **[install playwright](https://playwright.dev/docs/getting-started-vscode)**### 🚀 Running Tests
1. first of all clone the project
2. open a terminal on the project root path
3. Run all tests:
`npx playwright test` for more command line refer to **[playwright Run Command line](https://playwright.dev/docs/test-cli)**### 📈 Generate reports
1. HTML report will open after execute the test cases or run this command `npx playwright show-report`
2. list Report
3. Json Report![html report](https://github.com/user-attachments/assets/9f90c484-19a0-4762-957e-a49f271581d4)
### 📄 Allure Report:
1. `npm i -D allure-playwright`
2. `allure generate ./allure-results -o ./allure-report --clean`
3. `allure open ./allure-report`![allure Report](https://github.com/user-attachments/assets/adf51a14-c6b8-4afd-a19a-fb4586bf5116)