@nbakka/mcp-appium 2.0.73 → 2.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.js +18 -16
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -614,7 +614,7 @@ tool(
|
|
|
614
614
|
|
|
615
615
|
tool(
|
|
616
616
|
"fetch_testcases_from_tcms",
|
|
617
|
-
"
|
|
617
|
+
"Before generating ticket for a jira ticket, always fetch existing test cases from TCMS tool for a specific folder",
|
|
618
618
|
{
|
|
619
619
|
projectKey: zod_1.z.string().describe("The project key (e.g., SCRUM)"),
|
|
620
620
|
folderName: zod_1.z.string().describe("The folder name to filter test cases (e.g., PDP)")
|
|
@@ -657,11 +657,13 @@ tool(
|
|
|
657
657
|
folderName: testCase.folder.name
|
|
658
658
|
}));
|
|
659
659
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
660
|
+
// Format as string response
|
|
661
|
+
const result = `✅ Found ${extractedTestCases.length} test cases in folder: ${folderName}\n\n` +
|
|
662
|
+
extractedTestCases.map(tc =>
|
|
663
|
+
`Key: ${tc.key}\nTitle: ${tc.title}\nFolder: ${tc.folderName}\n---`
|
|
664
|
+
).join('\n');
|
|
665
|
+
|
|
666
|
+
return result;
|
|
665
667
|
|
|
666
668
|
} catch (err) {
|
|
667
669
|
if (err.response) {
|
|
@@ -672,14 +674,14 @@ tool(
|
|
|
672
674
|
}
|
|
673
675
|
);
|
|
674
676
|
|
|
675
|
-
|
|
676
|
-
"generate_testcases_from_ticket_data",
|
|
677
|
-
"Generate manual test cases by analyzing PNG design with JIRA requirements",
|
|
678
|
-
{
|
|
679
|
-
jiraSummary:
|
|
680
|
-
jiraDescription:
|
|
681
|
-
},
|
|
682
|
-
async ({ jiraSummary, jiraDescription }) => {
|
|
677
|
+
const generateTestcasesFromTicketData = {
|
|
678
|
+
name: "generate_testcases_from_ticket_data",
|
|
679
|
+
description: "Generate manual test cases by analyzing PNG design with JIRA requirements",
|
|
680
|
+
inputSchema: z.object({
|
|
681
|
+
jiraSummary: z.string().describe("Jira issue summary"),
|
|
682
|
+
jiraDescription: z.string().describe("Jira issue description")
|
|
683
|
+
}),
|
|
684
|
+
handler: async ({ jiraSummary, jiraDescription }) => {
|
|
683
685
|
try {
|
|
684
686
|
// Clear the generated test cases file before starting
|
|
685
687
|
const testCasesFilePath = path.join(__dirname, 'generated-testcases.txt');
|
|
@@ -688,7 +690,7 @@ tool(
|
|
|
688
690
|
// Load OpenAI API key from Desktop/openai.json
|
|
689
691
|
const openaiConfigPath = path.join(os.homedir(), "Desktop", "openai.json");
|
|
690
692
|
const configContent = await fs.readFile(openaiConfigPath, "utf-8");
|
|
691
|
-
const { apiKey } = JSON.parse(configContent);
|
|
693
|
+
const { apiKey } = JSON.parse(configContent.trim());
|
|
692
694
|
|
|
693
695
|
// Load test case generation guidelines
|
|
694
696
|
const guidelinesPath = path.join(__dirname, 'testcases-generation-context.txt');
|
|
@@ -751,7 +753,7 @@ ${guidelines}`
|
|
|
751
753
|
return `❌ Error starting test case generation: ${err.message}`;
|
|
752
754
|
}
|
|
753
755
|
}
|
|
754
|
-
|
|
756
|
+
};
|
|
755
757
|
|
|
756
758
|
tool(
|
|
757
759
|
"check_testcases_status",
|