Traditional test automation is built on rigid patterns—hardcoded assertions, brittle locators, and endless maintenance cycles. What if your tests could understand intent instead of just matching exact strings?
I built AI.Powered.Reqnroll.Nunit to explore this idea: bringing AI intelligence directly into BDD testing workflows.
What It Does
The framework offers three AI-powered capabilities that transform how you write and maintain tests:
Smart Test Data Generation
Stop maintaining complex data factories. Simply describe what you need, and AI generates realistic, contextually appropriate test data on demand. Need a user for registration? Just ask.
Natural Language API Assertions
Instead of parsing JSON and writing verbose assertions, validate API responses using plain language. The framework understands business requirements, not just technical specifications.
Semantic Web Validation
Describe what you expect to see on a page rather than hunting for CSS selectors. The AI interprets your intent and validates accordingly.
See It In Action
Given I generate a user for "registration test"
Then generated user should have email
Given I open "https://www.wikipedia.org"
Then page should have "Wikipedia logo visible"
When I GET "https://api.example.com/users/1"
Then response should be "Status code is 200"
Setup takes minutes:
export OPENAI_API_KEY=sk-your-key
dotnet test
Why It Matters
This isn't about replacing testers or automating everything blindly. It's about removing tedious maintenance work while keeping strategic thinking where it belongs—with you.
Tests become more readable for non-technical stakeholders. Maintenance becomes less brittle. You spend less time chasing broken selectors and more time ensuring actual quality.
Built on Reqnroll and NUnit with OpenAI integration, the framework is open source and ready to use today.
AI.Powered.Reqnroll.Nunit
Test automation with AI-powered features.
Features
#
Feature
Tests
1
Test Data Generator
5
2
API Assertions
5
3
Web Assertions
3
Setup
export OPENAI_API_KEY=sk-your-key
dotnet test
Project Structure
AI.Powered.Reqnroll.Nunit/
├── Helpers/
├── Models/
├── Utilities/
├── Features/
├── StepDefinitions/
└── Support/
Feature Examples
Test Data Generator
Given I generate a user for "registration test"
Then generated user should have email
Web Assertions
Given I open "https://www.wikipedia.org"
Then page should have "Wikipedia logo visible"
And page should have "Search input box present"
API Assertions
When I GET "https://jsonplaceholder.typicode.com/users/1"
Then response should be "Status code is 200"
Run Tests
dotnet test
Tech Stack: C# • NUnit • Reqnroll • OpenAI API • BDD
Top comments (0)