This repository demonstrates how to integrate Playwright, a powerful end-to-end testing framework, with Bugasura, a bug tracking tool. The integration streamlines the process of reporting and tracking bugs found during automated testing.
- Introduction
- Features
- Prerequisites
- Installation
- Configuration
- Usage
- Reporting Bugs to Bugasura
- Project Structure
- Contributing
- License
This project provides an example of how Playwright test results can be integrated with Bugasura to automatically create bug reports for failed test cases, improving QA workflow efficiency.
- Automated end-to-end testing using Playwright
- Automatic bug reporting to Bugasura from test failures
- Example test cases for demonstration
- Easy configuration and setup
- Single command to run all tests, generate reports, and upload failures to Bugasura
- Node.js (v14 or above)
- npm or yarn package manager
- Bugasura account (for API integration)
- (Optional) Playwright browsers installed
Clone the repository and install the dependencies:
git clone https://github.com/Codingnaveen46/playwright_integration_bugasura.git
cd playwright_integration_bugasura
npm install
# or
yarn install-
Bugasura API Setup:
Create a.envfile in the root directory and add your Bugasura API credentials:BUGASURA_API_KEY=your_bugasura_api_key BUGASURA_PROJECT_ID=your_project_id
-
Playwright Configuration:
Modifyplaywright.config.jsas needed for your application under test.
To run all tests, generate the report, and upload failures to Bugasura in a single command, use:
npm testNote:
- The
testscript in yourpackage.jsonis configured to execute all tests, generate a test report, and automatically upload failed test details as bug reports to Bugasura. - Check the terminal output or logs for Bugasura ticket IDs linked to failed test cases.
When a test fails, the integration script will automatically:
- Collect the failed test details
- Format the bug data
- Send a request to Bugasura's API to log the bug
Check the logs/output for Bugasura ticket IDs.
playwright_integration_bugasura/
├── tests/ # Playwright test files
├── utils/ # Utility scripts (e.g., Bugasura integration)
├── playwright.config.js # Playwright config file
├── package.json
├── .env # Environment variables (not committed)
└── README.md
Contributions are welcome! Please open an issue or submit a pull request with improvements or bug fixes.
This project is licensed under the MIT License.
Note: Replace API credentials and configuration details with your actual values. For Bugasura API documentation, visit Bugasura API Docs (if available).