Generate Cucumber/Gherkin feature files from requirements or user stories. Convert natural language descriptions into Given-When-Then steps, suggest scenario outlines for data-driven tests, and ensure step reusability. Use when user asks to "write cucumber test cases", "create feature file for login", "convert this story to Gherkin", or "add negative scenarios to existing feature".
Generate Cucumber/Gherkin feature files from requirements or user stories. Convert natural language descriptions into Given-When-Then steps, suggest scenario outlines for data-driven tests, and ensure step reusability. Use when user asks to "write cucumber test cases", "create feature file for login", "convert this story to Gherkin", or "add negative scenarios to existing feature".
Feature: User Login
As a registered user
I want to log into the system
So that I can access my dashboard
Background:
Given the user is on the login page
Scenario: Successful login with valid credentials
When the user enters valid username and password
And clicks the login button
Then the user should be redirected to the dashboard
And the welcome message should be displayed
Scenario: Login fails with invalid password
When the user enters valid username and invalid password
And clicks the login button
Then the user should see an error message "Invalid credentials"
And the user should remain on the login page