serenity-bdd-skill
This skill generates Serenity BDD test automation code structured around the Screenplay pattern, enabling you to build maintainable step definitions and test scenarios. Leverage AI-assisted code generation to accelerate behavior-driven development and reduce manual test scripting overhead.
serenity-bdd-skill generates Serenity BDD test code structured around the Screenplay pattern, which models test interactions as actors performing tasks. Start by defining your test scenarios in Gherkin syntax, then use the skill to generate corresponding step definitions with @Steps annotations. Each step class encapsulates reusable test logic, and the Screenplay pattern ensures your tests remain readable and maintainable as they grow in complexity.
AI-generated summary based on this skill's SKILL.md
Install
LambdaTest/agent-skills/serenity-bdd-skill · repository language: Python
git clone https://github.com/LambdaTest/agent-skills
cp -r agent-skills/serenity-bdd-skill ~/.claude/skills/serenity-bdd-skillFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I write Serenity BDD tests in Java?
serenity-bdd-skill generates Serenity BDD test code structured around the Screenplay pattern, which models test interactions as actors performing tasks. Start by defining your test scenarios in Gherkin syntax, then use the skill to generate corresponding step definitions with @Steps annotations. Each step class encapsulates reusable test logic, and the Screenplay pattern ensures your tests remain readable and maintainable as they grow in complexity.
What is the Screenplay pattern and how does it work in serenity-bdd-skill?
serenity-bdd-skill implements the Screenplay pattern, which models test automation as actors performing tasks and asking questions about the system. Rather than exposing page objects directly, actors interact with the system through high-level tasks and abilities. This pattern makes tests more expressive and easier to maintain, separating concerns between what actors do (tasks), how they do it (abilities), and what they verify (questions).
How can serenity-bdd-skill help with Serenity BDD and Cucumber integration?
serenity-bdd-skill streamlines Serenity BDD Cucumber integration by generating step definitions that map Gherkin scenarios to executable Java code. The skill automates the creation of step libraries organized with @Steps annotations, reducing manual scripting overhead. It helps you structure acceptance tests so that Cucumber scenarios drive your test execution while Serenity handles reporting and evidence collection.
How do I structure and organize Serenity BDD tests with @Steps annotations?
serenity-bdd-skill generates well-organized step libraries using @Steps annotations to inject reusable step definitions into your test classes. Each @Steps-annotated class groups related actions—like login steps or navigation steps—into logical units. The skill helps you maintain a clean separation between step definitions, page objects, and test scenarios, making your test suite scalable and easier to refactor as requirements change.
How do I configure Serenity BDD for cloud execution and rich HTML reporting?
serenity-bdd-skill supports configuration for cloud execution platforms and generates test code compatible with Serenity's rich HTML reporting. You can configure remote WebDriver capabilities in serenity.conf to point to cloud providers, and the skill helps you structure tests to capture detailed evidence and screenshots. Serenity automatically generates living documentation and comprehensive HTML reports that include test outcomes, performance metrics, and visual evidence.
What does serenity-bdd-skill do to accelerate behavior-driven development?
serenity-bdd-skill accelerates behavior-driven development by using AI-assisted code generation to produce Serenity BDD test automation code automatically. Instead of manually scripting step definitions and test scenarios, the skill generates maintainable, Screenplay-pattern-based code that reduces manual test scripting overhead. This allows teams to focus on defining acceptance criteria and test logic rather than boilerplate code, speeding up test suite development and maintenance.
SKILL.md
rendered from the published skill — quoted content, verbatim
Serenity BDD Skill
Core Patterns
Step Library Pattern
```java import net.serenitybdd.annotations.Step; import net.serenitybdd.core.pages.PageObject;
public class LoginSteps extends PageObject {
@Step("Navigate to login page")
public void navigateToLogin() {
openUrl(getDriver().getCurrentUrl() + "/login");
}
@Step("Enter email: {0}")
public void enterEmail(String email) {
find(By.id("email")).sendKeys(email);
}
@Step("Enter password")
public void enterPassword(String password) {
find(By.id("password")).sendKeys(password);
}
@Step("Click login button")
public void clickLogin() {
find(By.cssSelector("button[type='submit']")).click();
}
@Step("Should see the dashboard")
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 3 files
serenity-bdd-skill/SKILL.md
serenity-bdd-skill/reference/advanced-patterns.md
serenity-bdd-skill/reference/playbook.md