Loading...
Please wait a moment
Please wait a moment
AI-powered test case generator that automatically creates manual test cases from software requirement documents using OpenAI GPT or Google Gemini.
Powerful AI-driven test case generation with comprehensive coverage
Read requirements from PDF, DOCX, and TXT files with intelligent text extraction
Use OpenAI GPT-4 or Google Gemini for intelligent test case generation
Generate structured test cases in professional Excel format with proper columns
Easy configuration via YAML file for AI engines, models, and output settings
Generate positive, negative, and edge case scenarios for complete test coverage
Lightweight Python CLI tool that integrates seamlessly into your workflow
git clone https://github.com/huynhminhvangit/Spec2Test.git
pip install -r requirements.txt
Copy config_example.yaml to config.yaml and add your API keys
# Install dependencies
pip install -r requirements.txt
# Basic usage
python main.py requirements.pdf
# Advanced usage with custom output
python main.py requirements.docx -o my_testcases.xlsx
# Use custom config file
python main.py requirements.txt -c custom_config.yaml
Easy setup with YAML configuration file
ai_engine: openai # or 'gemini'
openai:
api_key: "your-openai-api-key-here"
model: "gpt-4"
gemini:
api_key: "your-gemini-api-key-here"
model: "gemini-pro"
Professional Excel file with structured test case information
Column | Description |
---|---|
Test ID | Unique test identifier (TC001, TC002, etc.) |
Feature | Feature/functionality being tested |
Test Case Title | Descriptive title of the test case |
Test Steps | Step-by-step instructions |
Expected Result | Expected outcome |
Priority | Test priority (High/Medium/Low) |
Status | Test execution status |
Actual Result | Space for actual test results |
Notes | Additional notes |
Spec2Test is completely free and open source under MIT License. Contribute to the project or support its development!