This project automates Naver search tests based on Jira (QAlity) issues using Playwright and Python. Test results are posted as Jira comments and issue statuses can be transitioned automatically.
qality_test/
├── tests/
│ └── test_portal_site.py # Playwright test cases
├── jira/
│ ├── jira_helper.py # Low-level Jira API utilities
│ └── jira_reporter.py # High-level test result handling
├── data/
│ └── jira_config.py # Environment variable configuration
├── conftest.py # Pytest environment setup
├── .env # Jira credentials
├── requirements.txt
└── README.md- Python 3.11+
uv(optional but recommended)- Jira Cloud (with API access enabled)
- Playwright
git clone https://github.com/james-kanghj/qality_test.git
cd qality_testUsing uv (recommended):
uv venv .venv
source .venv/bin/activateOr using built-in Python venv:
python3 -m venv .venv
source .venv/bin/activateuv pip install -r requirements.txtIn the root directory, create a file named .env with the following:
JIRA_BASE_URL=https://your-domain.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=your-jira-api-token✅ This file is used to securely load Jira credentials for API access.
- Go to: https://id.atlassian.com/manage-profile/security/api-tokens
- Click Create API token
- Enter a label and confirm
- Copy the generated token and add it to your
.env
pytest -s tests/Tests will automatically:
- Launch a Chromium browser (UI visible if configured)
- Perform search actions on Naver
- Report results as Jira comments
- Transition Jira issue status (e.g., "To Do" → "Done")
To enable browser visibility during tests:
# In conftest.py or test setup
browser = p.chromium.launch(headless=False, slow_mo=300)- Post Playwright test results to Jira issues using ADF (Atlassian Document Format)
- Log failed test results to
test_failures.log - Auto-transition Jira issue statuses based on outcome
- QAP-1: Validate keyword input (e.g., "날씨")
- QAP-2: Force failure to test Jira integration
- QAP-3: Check redirected URL for query string
- Failures are recorded in
test_failures.logat the project root
- Author: James Kang
- Company: James Company — Empowering QA Engineers