@nbakka/mcp-appium 2.0.74 → 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 +10 -10
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -674,14 +674,14 @@ tool(
|
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
676
|
|
|
677
|
-
|
|
678
|
-
"generate_testcases_from_ticket_data",
|
|
679
|
-
"Generate manual test cases by analyzing PNG design with JIRA requirements",
|
|
680
|
-
{
|
|
681
|
-
jiraSummary:
|
|
682
|
-
jiraDescription:
|
|
683
|
-
},
|
|
684
|
-
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 }) => {
|
|
685
685
|
try {
|
|
686
686
|
// Clear the generated test cases file before starting
|
|
687
687
|
const testCasesFilePath = path.join(__dirname, 'generated-testcases.txt');
|
|
@@ -690,7 +690,7 @@ tool(
|
|
|
690
690
|
// Load OpenAI API key from Desktop/openai.json
|
|
691
691
|
const openaiConfigPath = path.join(os.homedir(), "Desktop", "openai.json");
|
|
692
692
|
const configContent = await fs.readFile(openaiConfigPath, "utf-8");
|
|
693
|
-
const { apiKey } = JSON.parse(configContent);
|
|
693
|
+
const { apiKey } = JSON.parse(configContent.trim());
|
|
694
694
|
|
|
695
695
|
// Load test case generation guidelines
|
|
696
696
|
const guidelinesPath = path.join(__dirname, 'testcases-generation-context.txt');
|
|
@@ -753,7 +753,7 @@ ${guidelines}`
|
|
|
753
753
|
return `❌ Error starting test case generation: ${err.message}`;
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
|
|
756
|
+
};
|
|
757
757
|
|
|
758
758
|
tool(
|
|
759
759
|
"check_testcases_status",
|