@nbakka/mcp-appium 3.0.12 → 3.0.13
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/app_context.txt +3 -3
- package/lib/server.js +2 -2
- package/lib/testcases-generation-context.txt +10 -2
- package/package.json +1 -1
package/lib/app_context.txt
CHANGED
|
@@ -18,9 +18,9 @@ IMPORTANT: If the element you looking for is not present you can use swipe
|
|
|
18
18
|
- sendKeys("locator_key", "string_to_be_passed", Wait.SHORT)
|
|
19
19
|
Figure out dynamic paths like //android.widget.TextView[@text="View 180 Properties"] here 180 is not constant so create a xpath like //android.widget.TextView[contains(@text,"View") and contains(@text,"Properties")]
|
|
20
20
|
For repeating logic, create loops
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
** SAMPLE
|
|
21
|
+
No need to add comments in code and only mention locators that are new and not present in the locator sheet in comments at end of file as shown in sample code below.
|
|
22
|
+
Automation code has to be generated only for approved test cases
|
|
23
|
+
** SAMPLE TESTCASES Automation code has to be generated only for approved test cases**
|
|
24
24
|
/**
|
|
25
25
|
* Test Method for Nearby Properties Verification on New Project Dedicated Page
|
|
26
26
|
* Verifies that clicking on nearby properties opens the correct detail page
|
package/lib/server.js
CHANGED
|
@@ -149,9 +149,9 @@ const createMcpServer = () => {
|
|
|
149
149
|
|
|
150
150
|
tool(
|
|
151
151
|
"mobile_learn_current_app_context",
|
|
152
|
-
"Follow these instructions strictly to navigate through the app. This should be the first step after launching the app and before performing any tests.
|
|
152
|
+
"Follow these instructions strictly to navigate through the app. This should be the first step after launching the app and before performing any tests. Google Sheet name to fetch locatorName and androidLocator from the specified sheet. NOTE: Only use the locator data from the Google Sheet at the end while generating test cases, don't use to navigate through screens",
|
|
153
153
|
{
|
|
154
|
-
sheetName: zod_1.z.string().describe("The name of the Google Sheet to fetch locator data from"),
|
|
154
|
+
sheetName: zod_1.z.string().describe("The name of the Google Sheet to fetch locator data from").default("PDP"),
|
|
155
155
|
},
|
|
156
156
|
async ({ sheetName }) => {
|
|
157
157
|
try {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
When asked to generate automation test cases for a jira ticket, the flow is as follows (Should not ask for user input till the last step):
|
|
2
|
+
by using mcp tools
|
|
3
|
+
1. Read the jira summary and description to understand the changes made in the feature.
|
|
4
|
+
2. Look at the figma design link provided in the jira ticket to understand the UI changes
|
|
5
|
+
3. Based on the changes mentioned in the jira summary and description, and the figma design, generate test cases
|
|
6
|
+
4. Approval from user is needed for the generated test cases
|
|
7
|
+
5. Once the test cases are approved by user, learn mobile app context
|
|
8
|
+
6. Generate automation code for the approved test cases or modify existing for linked test files
|
|
1
9
|
generate test cases using jira summary, description and figma image,
|
|
2
10
|
don't wait for extra user input,
|
|
3
11
|
test cases scope should be only for the changes mentioned in jira summary and description,
|
|
@@ -20,6 +28,6 @@ for review_testcases and update_testcases_to_tcms tool data should be in this fo
|
|
|
20
28
|
{"testCases":[["Verify that brochure section is visible under overview tab","Verify brochure section is removed from property tour tab","Modify","SCRUM-TC-1"],
|
|
21
29
|
["Verify similar properties section is visible under over tab in pdp section","Remove","SCRUM-TC-2"],
|
|
22
30
|
["Verify Project Brochure section appears above the 'Explore on map' section in Overview tab","New"]]}
|
|
23
|
-
|
|
24
31
|
for update_testcases_to_tcms tool, send only test cases approved by user
|
|
25
|
-
NOTE: keep polling continously for 10 times max till the test cases are approved by user
|
|
32
|
+
NOTE: keep polling continously for 10 times max till the test cases are approved by user, don't wait for user input
|
|
33
|
+
Automation code has to be generated only for approved test cases
|