Skip to content

fix: use test_case_steps instead of steps in updateTestCase#228

Open
cocosar wants to merge 1 commit intobrowserstack:mainfrom
cocosar:fix/test-case-steps-and-get-testcase
Open

fix: use test_case_steps instead of steps in updateTestCase#228
cocosar wants to merge 1 commit intobrowserstack:mainfrom
cocosar:fix/test-case-steps-and-get-testcase

Conversation

@cocosar
Copy link

@cocosar cocosar commented Feb 19, 2026

The updateTestCase function was sending 'steps' in the request body, but the BrowserStack API expects 'test_case_steps'. This caused the steps to never be saved/updated.

Changed line 80 in update-testcase.ts:

  • Before: testCaseBody.steps = params.test_case_steps;
  • After: testCaseBody.test_case_steps = params.test_case_steps;

feat: add getTestCase tool to retrieve specific test cases by ID

Added new tool to fetch a specific test case by ID from BrowserStack Test Management via GET /api/v2/projects/{project_id}/test-cases?id={test_case_id}

Returns:

  • Complete test case details (title, type, priority, status)
  • Description and preconditions
  • Steps with expected results
  • Tags, owner, folder_id
  • Direct URL to BrowserStack
  • Full JSON data

The updateTestCase function was sending 'steps' in the request body,
but the BrowserStack API expects 'test_case_steps'. This caused the
steps to never be saved/updated.

Changed line 80 in update-testcase.ts:
- Before: testCaseBody.steps = params.test_case_steps;
- After:  testCaseBody.test_case_steps = params.test_case_steps;

feat: add getTestCase tool to retrieve specific test cases by ID

Added new tool to fetch a specific test case by ID from BrowserStack
Test Management via GET /api/v2/projects/{project_id}/test-cases?id={test_case_id}

Returns:
- Complete test case details (title, type, priority, status)
- Description and preconditions
- Steps with expected results
- Tags, owner, folder_id
- Direct URL to BrowserStack
- Full JSON data
@cocosar cocosar force-pushed the fix/test-case-steps-and-get-testcase branch from 2c5c431 to fbdc4ea Compare February 19, 2026 21:20
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

Comments