aibdd.auto.csharp.it.handlers.success-failure

Assert HTTP status codes and parse error payloads in Gherkin integration tests.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-csharp-it-handlers-success-failure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aibdd.auto.csharp.it.handlers.success-failure
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/aibdd.auto.csharp.it.handlers.success-failure
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-csharp-it-handlers-success-failure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured approach to asserting HTTP operation outcomes in integration tests, ensuring consistent verification of success and failure cases and clear error reporting.

Core Features & Use Cases

  • Verifies HTTP status categories (2xx success, 4xx/5xx failures) in integration tests.
  • Parses common error payloads (detail, message, error, title) to produce meaningful assertion messages.
  • Enables reuse across features by introducing Steps/CommonThen with ThenOperationSucceeds/ThenOperationFails.

Quick Start

Create and reuse ThenOperationSucceeds and ThenOperationFails steps in your feature to validate HTTP response codes.

Frequently Asked Questions about aibdd.auto.csharp.it.handlers.success-failure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I assert HTTP status codes in SpecFlow integration tests?

You can assert HTTP status codes in SpecFlow integration tests by using reusable Then steps to verify 2xx success or 4xx/5xx failure response paths. These steps check status code ranges and parse error payloads to produce actionable failure reports.

How do I validate ProblemDetails error payloads in Gherkin feature tests?

To validate ProblemDetails error payloads in Gherkin feature tests, use ThenOperationFails steps to parse common error fields such as detail, message, or title. This generates meaningful assertion messages for failed HTTP operations.

What is the best way to reuse HTTP outcome assertions across Gherkin features?

The best way to reuse HTTP outcome assertions across Gherkin features is to implement common Then steps like ThenOperationSucceeds and ThenOperationFails. This ensures consistent verification of success and failure cases throughout your integration tests.

Does this approach support checking both 2xx success and 4xx failure paths?

Yes, this approach supports checking both 2xx success and 4xx failure paths in integration tests. It validates HTTP operation outcomes by asserting status code ranges and optional error messages for comprehensive coverage.

Why are my HTTP integration tests failing without clear error messages?

HTTP integration tests often fail without clear error messages when assertions lack structured payload parsing. Using steps that extract detail, message, or title fields from ProblemDetails produces meaningful failure reports for debugging.