A Python-based tool that automatically generates test scenarios by function from natural language requirements. It leverages the GPT-4o-mini model to analyze requirements and outputs scenarios including preconditions and expected results in JSON and Excel formats.
- Parses natural language requirements based on the - delimiter
- Generates test scenarios using OpenAI GPT-4o-mini
- Automatically generates scenario IDs (e.g., SC-001)
- Saves results in Excel (.xlsx) formats
scenAIro/
├── deploy.bat
├── src/
│ ├── frontend/
│ │ └── assets
│ ├── api.py
│ ├── formatter.py
│ ├── json_to_excel.py
│ ├── main.py
│ ├── requirement_parser.py
│ └── scenario_generator.py
├── .env.example
├── .gitignore
└── requirement.txt- Python 3 (3.11+)
- Node.js 18
- OpenAI API Key
git clone https://github.com/yjeongdev/scenAIro.git
cd scenAIropython -m venv venv
venv\Scripts\activate # (Linux/macOS: source venv/bin/activate)
pip install -r requirements.txtCreate the .env file
OPENAI_API_KEY=sk-xxxxxxxcd scenAIro-ui
npm install
npm run dev
npm run build
xcopy /E /I /Y dist ..\src\frontend\uvicorn src.api:app --reload --port 8000Go to http://localhost:8000/ and enter your natural language requirements.
If you have multiple requirements, separate them with a hyphen (-).
- Log in as a user on the main screen.
- Create a post.When you click the Generate Scenario button, the test scenario for the requirements entered in natural language will be displayed at the bottom of the screen.
If there is anything you want to edit in the generated scenario, you can enter it directly.
However, the ID cannot be edited. (Sequence auto-generation)
When you click the Excel Download button, the “test_scenarios.xlsx” file will be downloaded to your local path.
- OpenAI GPT-4o-mini
- openai Official Python SDK (openai>=1.0.0)
MIT License. For details, please refer to the LICENSE file.
- Developer : @yjeongdev
- AI Development Assistant : Developed with OpenAI's ChatGPT (GPT-4o).