fix: use test_case_steps instead of steps in updateTestCase#228
Open
cocosar wants to merge 1 commit intobrowserstack:mainfrom
Open
fix: use test_case_steps instead of steps in updateTestCase#228cocosar wants to merge 1 commit intobrowserstack:mainfrom
cocosar wants to merge 1 commit intobrowserstack:mainfrom
Conversation
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
2c5c431 to
fbdc4ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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: