Integration Test Generation
RoostGPT generates integration tests that validate end-to-end workflows by combining your API specification with Gherkin feature files. Each Gherkin scenario becomes a complete integration test with supporting test data.
How It Works
- Inputs required — An API specification (OpenAPI/Swagger) and a Gherkin
.featurefile (typically produced by the Functional Test phase) - Scenario parsing — RoostGPT extracts each
ScenarioorScenario Outlinefrom the feature file - Test generation — For each scenario, a complete integration test is generated using the API spec as the service contract
- Data generation — CSV test data files are automatically created for data-driven testing
- Output — A structured test suite with one file per scenario
Inputs
| Input | Source |
|---|---|
| API Specification | Generated by Functional Test phase, or your own Swagger/OpenAPI file |
| Gherkin Feature File | Generated by Functional Test phase, or your own .feature file |
Supported Frameworks
- Karate
- Rest Assured
- Postman
Using the Web UI
- Navigate to Create Test → Integration Test
- Select Test Framework (e.g., Karate)
- Configure your AI Provider and Git Repository
- Set Business Requirement Source to your Jira ticket or upload a Gherkin file directly
- In Gherkin Setup, choose the source:
- File Upload: Upload your
.featurefile - URL: Link to Gherkin spec
- Git Path: Repository path to the
.featurefile
- File Upload: Upload your
- Save and execute
Using the VS Code Plugin
- Right-click on your Swagger/OpenAPI spec file
- Select "Generate Test using RoostGPT" → "Integration Test using API spec and gherkin feature"
- Select your output framework
- Browse to and select your Gherkin
.featurefile - Click Generate
RoostGPT parses each scenario from the feature file and generates corresponding test files.
Output Structure
integration-tests/
├── CreateCard_scenario.feature ← per-scenario test file
├── CreateCard_scenario_data.csv ← test data for data-driven testing
├── RetrieveCard_scenario.feature
├── RetrieveCard_scenario_data.csv
└── ...
AI Provider Recommendations
- Claude Sonnet 4 — best for understanding complex Gherkin scenarios
- GPT-4o — reliable for most integration test workloads
- Gemini 2.5 Pro — handles large feature files well (1M context)
Next Steps
- Multiple Test Flow — See the complete four-phase pipeline in action
- API Tests — Generate API tests from the same OpenAPI spec