Internal command-line tool (CLI) to help the QA team manage their work, especially during the transition to test automation.
Developed at Runtime Revolution.
- Python 3.x
- pip
1. Clone or copy the project to your machine
2. Navigate to the project folder:
cd qa-agent3. Create and activate the virtual environment:
python3 -m venv venv
source venv/bin/activate4. Install dependencies:
pip install clickpython agent/cli.py list-testspython agent/cli.py show TC-001python agent/cli.py update-state TC-001 PassedAvailable states: Active Passed Failed Blocked In Progress
python agent/cli.py add-testpython agent/cli.py roadmappython agent/cli.py historypython agent/cli.py export-historyGenerates file: knowledge_base/history.md
📁 qa-agent/ ├── 📁 agent/ │ └── 📄 cli.py ← CLI source code ├── 📁 knowledge_base/ │ ├── 📁 test_cases/ │ │ └── 📄 test_cases.json ← test cases database │ ├── 📁 roadmap/ │ │ └── 📄 roadmap.md ← team roadmap │ ├── 📁 guidelines/ │ │ └── 📄 guidelines.md ← QA best practices │ ├── 📄 history.json ← history in JSON (internal use) │ ├── 📄 history.md ← exported change history │ └── 📄 test_cases_history.md ← exported test cases history └── 📁 venv/ ← virtual environment (do not share)
- Always activate the virtual environment before using the tool:
source venv/bin/activate - Never delete a test case — change the state to
Blockedif no longer applicable - Update
roadmap.mdwhenever a step is completed - The
venv/folder should not be shared or pushed to Git
- 2026-06-30 — Initial project setup
Already listed above, but for AI integration add:
- Ollama installed and running
- Llama 3.2 model pulled locally
1. Install Ollama:
curl -fsSL https://ollama.com/install.sh | sh2. Start the Ollama server:
ollama serve3. Pull the Llama 3.2 model:
ollama pull llama3.24. Install the Python Ollama library:
pip install ollamaNote: The
ollama serveterminal must remain active while using theaskcommand.
python agent/cli.py ask "Your question here"The agent reads the entire Knowledge Base (test cases, roadmap, guidelines) before answering, ensuring responses are always contextualised to your project.
Examples:
python agent/cli.py ask "What should I test next?"
python agent/cli.py ask "What test cases do we have for the Login module?"
python agent/cli.py ask "What are the team guidelines for automation?"Checks that everything the QA Agent needs is installed and configured on your computer, and tells you how to fix anything that is missing. Run it right after installing the QA Agent, or whenever something is not working as expected.
python -m agent.cli doctorIt is also available in the interactive menu under 🩺 Check Installation.
| Icon | Meaning |
|---|---|
| ✅ | Everything is fine |
| The QA Agent works, but some features are limited | |
| ❌ | Must be fixed before the QA Agent can work |
| Check | If it fails |
|---|---|
| Python version (3.10 or newer) | ❌ The QA Agent cannot run |
config.json exists and is valid |
❌ The QA Agent cannot read its settings |
| Git is installed | ❌ Branch and PR features cannot work |
| GitHub CLI is installed and logged in | |
| AI provider is ready (for Ollama: installed, running and model downloaded) |
- All checks live in
agent/doctor.py. Each check is a small function that returns a status (ok,warningorerror) and a message. - Installed programs are detected with
shutil.which, and commands are run withsubprocessusing a 10-second timeout, so the checks work the same way on macOS and Windows. - The AI check reads
ai_providerandai_modelfromconfig.jsonthroughload_config(), so it always follows each person's configuration. - To add a new check, write a new function in
agent/doctor.pyand add it to the list inrun_doctor().
Instead of typing commands manually, you can use the interactive menu:
python agent/menu.pyNavigate with the arrow keys and press Enter to select an option. Available options:
- 📋 View Test Cases — lists all test cases
- ➕ Create Test Case — adds a new test case interactively
- 🗺️ View Roadmap — shows the team roadmap
- 📜 View History — shows the change history
- 📤 Export History — exports change history to Markdown
- 📤 Export Test Cases History — exports test cases history to Markdown
- 🤖 Ask AI — asks a question to the AI agent
- 🩺 Check Installation — checks that everything the QA Agent needs is installed and configured
- ❌ Exit — exits the menu