Package Exports
- pdq-qa-agent
- pdq-qa-agent/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pdq-qa-agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
๐ค PDQ QA Agent
Enterprise-grade automated web application testing with Playwright, PDF reports, and Jira integration
๐ Quick Start
Install Globally
npm install -g pdq-qa-agent
Run Tests
# Interactive mode (prompts for all parameters)
qa-agent test
# Direct command with all parameters
qa-agent test https://your-website.com --email your@email.com --password your-password --jira-project DATA
# Quick one-liner for PDQ team
qa-agent test https://recipe.prettydamnquick.ai --email tamir@prettydamnquick.com --password 'KaiZen&69!' --jira-project DATA
View Results
- PDF Report: Comprehensive report with screenshots and analysis
- Jira Issues: Automatically created for detected bugs (when configured)
- Terminal Output: Real-time test progress and summary
โจ Features
๐ฏ Comprehensive Testing
- Navigation Testing - Page structure, menus, breadcrumbs, browser controls
- Form Testing - Discovery, validation, submission, error handling
- Link Testing - Internal/external links, accessibility compliance
- Performance Testing - Load times, resource analysis, bottleneck identification
- Error Testing - Console errors, JavaScript exceptions, network failures
๐ Professional Reporting
- Enterprise PDF Reports with structured tables and visual evidence
- Test Case Traceability with TC-001, TC-002 format
- Embedded Screenshots for visual proof and debugging
- Executive Summary with metrics and recommendations
- Session Tracking with unique test identifiers
๐ Automatic Issue Management
- Jira Integration - Automatically creates bug tickets
- Detailed Bug Reports with steps to reproduce and environment info
- Priority Mapping based on error severity
- Test Traceability linking issues to specific test failures
๐ง Easy Configuration
- Command Line Interface with interactive prompts
- Environment Variables for CI/CD integration
- Configuration Files for project-based settings
- Global Installation for quick access anywhere
๐ Commands
Command | Description |
---|---|
qa-agent test |
Run comprehensive QA tests (interactive) |
qa-agent test <url> |
Test specific URL with options |
qa-agent test <url> --jira-project DATA |
Test with specific Jira project for tickets |
qa-agent init |
Initialize QA project in current directory |
qa-agent setup-jira |
Configure Jira integration |
qa-agent test-jira |
Test Jira connection |
๐ซ Jira Integration
Setup Steps
- Get API Token: Atlassian API Tokens
- Configure:
qa-agent setup-jira
- Test:
qa-agent test-jira
Automatic Issue Creation
The QA Agent automatically creates Jira issues for:
- โ Failed Tests โ Bug tickets with test details
- ๐ด Console Errors โ JavaScript error tickets
- ๐ Network Errors โ API failure tickets
Each issue includes:
- Detailed error information and stack traces
- Steps to reproduce with exact commands
- Environment details (URL, browser, timestamp)
- Test artifacts and screenshots
๐ Sample Report
The generated PDF reports include:
1. Executive Summary
๐ 1. Summary
| Metric | Count |
|--------------|-------|
| Total Tests | 5 |
| Passed | 4 |
| Failed | 1 |
| Pass Rate | 80.0% |
2. Test Cases Overview
๐งช 2. Test Cases Overview
| Test Case ID | Description | Expected Result | Actual Result | Status | Comments |
|--------------|-------------|-----------------|---------------|---------|----------|
| TC-001 | Navigation | Elements load | As expected | [PASS] | N/A |
| TC-002 | Forms | Validation works| As expected | [PASS] | N/A |
3. Defects Identified
๐ 3. Defects Identified
| Issue ID | Title | Severity | Status | Jira Link |
|----------|-------|----------|---------|-----------|
| PROJ-123 | Performance Test Failed | Medium | Created | PROJ-123 |
๐ง Configuration
Environment Variables (.env)
# Authentication
GMAIL_EMAIL=your-email@gmail.com
GMAIL_PASSWORD=your-app-password
# Target Configuration
QA_URL=https://your-webapp.com
QA_HEADLESS=false
QA_TIMEOUT=30000
QA_OUTPUT_PATH=qa-reports
# Jira Integration
JIRA_URL=https://company.atlassian.net
JIRA_EMAIL=your-jira-email@company.com
JIRA_API_TOKEN=your-api-token
JIRA_PROJECT_KEY=QA
Configuration File (qa-config.json)
{
"url": "https://your-website.com",
"credentials": {
"email": "your@email.com",
"password": "your-password"
},
"options": {
"headless": false,
"timeout": 30000
},
"outputPath": "./qa-reports"
}
๐ Usage Examples
Basic Testing
# Interactive setup
qa-agent test
# Direct command
qa-agent test https://myapp.com
# With authentication
qa-agent test https://myapp.com --email user@company.com --password secret
Advanced Configuration
# Custom output directory
qa-agent test https://myapp.com --output ./test-results
# Headless mode for CI/CD
qa-agent test https://myapp.com --headless
# Using configuration file
qa-agent test --config ./qa-config.json
CI/CD Integration
# Export environment variables
export QA_URL=https://staging.myapp.com
export GMAIL_EMAIL=$TEST_EMAIL
export GMAIL_PASSWORD=$TEST_PASSWORD
export QA_HEADLESS=true
# Run tests
qa-agent test
โก Quick Installation Options
Option 1: Global Installation (Recommended)
npm install -g @pdq/qa-agent
qa-agent test https://your-website.com
Option 2: One-time Usage
npx pdq-qa-agent test https://your-website.com
Option 3: Local Project
npm install pdq-qa-agent
npx qa-agent test https://your-website.com
๐๏ธ Architecture
PDQ QA Agent
โโโ ๐งช Test Modules
โ โโโ NavigationTest - Page structure & navigation
โ โโโ FormTest - Form discovery & validation
โ โโโ LinkTest - Link accessibility & validation
โ โโโ PerformanceTest - Load times & resources
โ โโโ ErrorTest - Console & network errors
โโโ ๐ Reporting
โ โโโ PDFReporter - Enterprise PDF generation
โ โโโ ScreenshotManager - Visual evidence capture
โโโ ๐ง Utilities
โ โโโ ConfigManager - Configuration handling
โ โโโ ErrorCollector - Error aggregation
โ โโโ JiraIntegration - Issue management
โโโ ๐ฏ Core
โโโ QAAgent - Test orchestration & execution
๐ For Jira Admins
As a Jira admin, here's what you need to know:
Required Permissions
- Create Issues in the target project
- Edit Issues for updating status/assignees
- View Project for project access
Project Setup
- Create a dedicated QA project (e.g., key:
QA
) - Ensure Bug issue type is available
- Configure appropriate workflows
- Set up default priorities (High, Medium, Low)
API Token Creation
- Go to Atlassian API Tokens
- Click "Create API token"
- Label it "QA Agent Automation"
- Copy the token securely
Team Setup
# Each team member runs:
qa-agent setup-jira
# Or configure environment variables:
export JIRA_URL=https://company.atlassian.net
export JIRA_EMAIL=qa-automation@company.com
export JIRA_API_TOKEN=your-token
export JIRA_PROJECT_KEY=QA
๐ Benefits
For QA Teams
- โ Automated Testing - Reduce manual testing effort
- โ Comprehensive Coverage - Test all critical functionality
- โ Professional Reports - Stakeholder-ready documentation
- โ Issue Tracking - Automatic bug detection and reporting
For Development Teams
- โ Early Bug Detection - Catch issues before production
- โ Detailed Reports - Clear reproduction steps
- โ CI/CD Integration - Automated testing in pipelines
- โ Performance Insights - Load time and resource analysis
For Project Managers
- โ Executive Dashboards - High-level quality metrics
- โ Test Traceability - Link issues to specific tests
- โ Progress Tracking - Pass/fail rates and trends
- โ Compliance Ready - Professional documentation
๐ Links
๐ License
MIT License - see LICENSE file for details.
PDQ QA Agent - Making enterprise-grade QA automation accessible to everyone.