Skip to content

Feat: Add Test Management Tools for Project, Folder, and Test Case Creation #8

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

ruturaj-browserstack
Copy link

  • Added utility to create projects and folders in BrowserStack Test Management (createProjectOrFolder).
  • Implemented tool to create test cases programmatically (createTestCase).
  • Integrated tools into MCP server registration.
  • Added input sanitization for optional fields.
  • Added unit tests.

@ruturaj-browserstack ruturaj-browserstack marked this pull request as ready for review April 29, 2025 12:40
},
},
);
return response.data;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw error if response.data.success is not true

project_identifier: z
.string()
.describe(
"The ID of the BrowserStack project in which to create the test case. Ask User if he want to create a new project if no project ID is provided using createProjectOrFolder tool.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to reword this, can't understand.

let projId = project_identifier;

// Step 1: Create project if project_name provided
if (project_name) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if project already exists.

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants