Skip to content

Shobhit-core/JulesPlaywrightFrameWork

Repository files navigation

Jules AI – QA Automation Assignment

A complete QA automation framework for Jules AI, combining UI automation with Playwright and API testing using Postman + Newman. Integrated with GitHub Actions for a full CI/CD pipeline experience.


πŸ”— Live Repository

πŸ“ GitHub Repository


πŸ“‚ Project Structure

jules-ai-qa-assignment/
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ ui/                 # UI automation tests (Playwright)
β”‚   └── api/
β”‚       β”œβ”€β”€ newman/         # Newman runner script
β”‚       └── postman/        # Postman collection and environment
β”œβ”€β”€ reports/                # Test reports (UI & API)
β”œβ”€β”€ .github/workflows/ci.yml  # GitHub Actions workflow
β”œβ”€β”€ playwright.config.js    # Playwright configuration
β”œβ”€β”€ BUG-REPORT.md           # Logged bugs during testing
└── README.md
βœ… Features
🎯 UI Automation (Playwright + JavaScript)
Valid login/logout flow

Dashboard navigation verification

Data-driven form validation using external JSON

HTML & JUnit report generation

Global setup/teardown for authentication and cleanup

πŸ”Œ API Automation (Postman + Newman)
GraphQL login success and failure validation

API ↔ UI data consistency checks

Error code validation for edge cases (400, 401, 500)

HTML report generation using newman-reporter-htmlextra

πŸ” CI/CD Integration
GitHub Actions pipeline with two parallel jobs:

ui-tests: Runs Playwright tests and uploads reports

api-tests: Executes Newman tests and uploads reports

Test artifacts (reports) uploaded to GitHub Actions

🐞 Bug Report
ID	Title	Severity	Priority
JULES-001	Email format not validated on UI	Medium	High
πŸ“„ Details available in: BUG-REPORT.md

πŸš€ Getting Started
πŸ›  Prerequisites
Node.js >= 16.x

npm

Newman (npm install -g newman)

Postman (optional, for editing collections)

πŸ“¦ Install Dependencies
bash
Copy
Edit
npm install
▢️ Run UI Tests (Playwright)
bash
Copy
Edit
npx playwright test
Or run a specific test:

bash
Copy
Edit
npx playwright test tests/ui/login.spec.js
πŸ” Run API Tests (Postman + Newman)
bash
Copy
Edit
node tests/api/newman/run-api-tests.js
πŸ“Έ Reports
UI Report: reports/ui/html-report/index.html

API Report: reports/api/html-report.html

Reports are also uploaded to GitHub Actions as artifacts.

πŸ§ͺ CI/CD Workflow
Located at: .github/workflows/ci.yml

yaml
Copy
Edit
name: CI Tests

jobs:
  ui-tests:
    # Playwright UI Tests
  api-tests:
    # Newman API Tests
Runs on push/pull request to main, generates reports, and uploads them to GitHub.

πŸ‘€ Author
Shobhit
Automation Test Engineer
πŸ”— [LinkedIn](https://www.linkedin.com/in/shobhit-budhlakoti-34492b161)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published