Skip to content

feat(testmanagement): add optional test_case_bdd field for BDD/Gherkin template support#225

Open
tadeorosochackinx wants to merge 1 commit intobrowserstack:mainfrom
tadeorosochackinx:feature/add-bdd-template-support
Open

feat(testmanagement): add optional test_case_bdd field for BDD/Gherkin template support#225
tadeorosochackinx wants to merge 1 commit intobrowserstack:mainfrom
tadeorosochackinx:feature/add-bdd-template-support

Conversation

@tadeorosochackinx
Copy link

Summary

Adds an optional test_case_bdd parameter to createTestCase and updateTestCase tools, enabling BDD/Gherkin template support.

Changes

  • create-testcase.ts: Added test_case_bdd to interface, Zod schema, and function body
  • update-testcase.ts: Same pattern

How it works

When test_case_bdd is provided (with feature, scenario, and optional background), the fields are flattened into the API body with template: "test_case_bdd". When omitted, behavior is 100% unchanged.

…n template support

Add test_case_bdd as an optional parameter to createTestCase and updateTestCase.
When provided, the BDD fields (feature, scenario, background) are flattened into
the API body with template set to test_case_bdd. Fully backwards-compatible —
no existing fields or behavior changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant