@smartbear/mcp 0.41.3 → 0.43.0
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/README.md +5 -0
- package/dist/bearq/api.js +16 -0
- package/dist/bearq/client.js +9 -1
- package/dist/bearq/tool/tasks/stop-task.js +6 -3
- package/dist/bearq/tool/workflows/get-workflow-run.js +31 -0
- package/dist/bearq/tool/workflows/list-workflows.js +28 -0
- package/dist/bearq/tool/workflows/run-workflow.js +57 -0
- package/dist/bearq/tool/workflows/stop-workflow-run.js +33 -0
- package/dist/bugsnag/client.js +1 -0
- package/dist/common/analytics.js +341 -0
- package/dist/common/initialize.js +1 -0
- package/dist/common/jwt.js +83 -0
- package/dist/common/register-clients.js +16 -18
- package/dist/common/server.js +36 -0
- package/dist/common/transport-http.js +48 -7
- package/dist/package.json.js +1 -1
- package/dist/pactflow/client/admin-api.js +3 -8
- package/dist/pactflow/client/ai.js +34 -0
- package/dist/pactflow/client/contract-api.js +2 -0
- package/dist/pactflow/client/http-client.js +7 -2
- package/dist/pactflow/client/pacticipant-api.js +37 -0
- package/dist/pactflow/client/pagination.js +1 -1
- package/dist/pactflow/client/schemas/admin.js +799 -0
- package/dist/pactflow/client/schemas/common.js +201 -0
- package/dist/pactflow/client/schemas/contract.js +444 -0
- package/dist/pactflow/client/schemas/environment.js +94 -0
- package/dist/pactflow/client/schemas/output.js +55 -0
- package/dist/pactflow/client/schemas/pacticipant.js +290 -0
- package/dist/pactflow/client/schemas/webhook.js +164 -0
- package/dist/pactflow/client/tools.js +32 -1
- package/dist/pactflow/client/utils.js +1 -1
- package/dist/pactflow/client.js +21 -3
- package/dist/qmetry/client/ai-agent.js +3 -0
- package/dist/qmetry/client/api/error-handler.js +7 -2
- package/dist/qmetry/client/auto-resolve.js +5 -0
- package/dist/qmetry/client/handlers.js +2 -1
- package/dist/qmetry/client/project.js +19 -1
- package/dist/qmetry/client/testsuite.js +207 -2
- package/dist/qmetry/client/tools/ai-agent-tools.js +13 -0
- package/dist/qmetry/client/tools/issue-tools.js +7 -3
- package/dist/qmetry/client/tools/project-tools.js +34 -1
- package/dist/qmetry/client/tools/testcase-tools.js +43 -296
- package/dist/qmetry/client/tools/testsuite-tools.js +49 -19
- package/dist/qmetry/client/udf.js +14 -2
- package/dist/qmetry/client.js +2 -1
- package/dist/qmetry/config/constants.js +1 -0
- package/dist/qmetry/config/rest-endpoints.js +2 -1
- package/dist/qmetry/types/ai-agent.js +3 -0
- package/dist/qmetry/types/common.js +40 -2
- package/dist/qmetry/types/udf.js +1 -20
- package/dist/qtm4j/client.js +1 -1
- package/dist/swagger/client/api.js +5 -1
- package/dist/swagger/client/portal-types.js +11 -5
- package/dist/swagger/client/registry-types.js +12 -5
- package/dist/swagger/client/tools.js +3 -3
- package/dist/zephyr/tool/issue-link/get-test-cases.js +1 -1
- package/dist/zephyr/tool/issue-link/get-test-cycles.js +1 -1
- package/dist/zephyr/tool/issue-link/get-test-executions.js +1 -1
- package/dist/zephyr/tool/test-case/update-test-case.js +1 -1
- package/dist/zephyr/tool/test-cycle/update-test-cycle.js +1 -1
- package/package.json +4 -3
- package/plugin/README.md +42 -0
- package/dist/pactflow/client/base.js +0 -488
|
@@ -625,72 +625,27 @@ const TESTCASE_TOOLS = [
|
|
|
625
625
|
"- When creating version 2 from version 1: Send tcVersionID=5514384 (source), tcVersion=1 (current), withVersion=true",
|
|
626
626
|
"",
|
|
627
627
|
"HOW TO DETERMINE WHICH MODE:",
|
|
628
|
-
"
|
|
629
|
-
"
|
|
630
|
-
"
|
|
631
|
-
"- User says 'update test case VKMCP-TC-10 summary' → MODE 2 (no withVersion, update existing version)",
|
|
632
|
-
"- User says 'update version 2 summary' → MODE 2 (no withVersion, update existing version 2)",
|
|
633
|
-
"- User says 'change priority of version 1' → MODE 2 (no withVersion, update version 1)",
|
|
634
|
-
"- If ambiguous, ask user: 'Do you want to create a new version or update the existing version?'",
|
|
628
|
+
" 'create new version' / 'create version 2' / 'update with new version' → MODE 1 (withVersion=true)",
|
|
629
|
+
" 'update test case' / 'change priority' / 'modify version X' (no mention of new version) → MODE 2",
|
|
630
|
+
" Ambiguous → ask: 'Do you want to create a new version or update the existing version?'",
|
|
635
631
|
"",
|
|
636
|
-
"VERSION CREATION WORKFLOW
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
" - tcID (test case ID)",
|
|
641
|
-
" - tcVersionID (source version ID to create from)",
|
|
642
|
-
" - tcVersion (current version number)",
|
|
643
|
-
" - withVersion: true (CRITICAL flag)",
|
|
644
|
-
" - versionComment (recommended: describe what changed)",
|
|
645
|
-
" - Updated fields (name, description, priority, steps, etc.)",
|
|
646
|
-
" - notruncurrent: true (recommended)",
|
|
647
|
-
" - notrunall: true (recommended)",
|
|
648
|
-
"Step 4: Call update API - a new version will be created with incremented version number",
|
|
649
|
-
"Step 5: New version inherits all fields from source version, with your specified updates applied",
|
|
632
|
+
"VERSION CREATION WORKFLOW: fetch tcID + latest tcVersionID + tcVersion → build payload → call API.",
|
|
633
|
+
" New version inherits all source fields; only explicitly passed fields are overridden.",
|
|
634
|
+
" Recommended: include versionComment. Steps: use tcStepID to preserve, omit to add, use removeSteps to delete.",
|
|
635
|
+
" Set isStepUpdated:true if steps are added, modified, or removed.",
|
|
650
636
|
"",
|
|
651
|
-
"
|
|
652
|
-
"
|
|
653
|
-
"
|
|
654
|
-
" - tcID (test case ID)",
|
|
655
|
-
" - tcVersionID (version ID to update)",
|
|
656
|
-
" - DO NOT include withVersion, versionComment, or tcVersion",
|
|
657
|
-
" - Only include fields you want to change",
|
|
658
|
-
"Step 3: Call update API - specified version is updated in-place",
|
|
659
|
-
"Step 4: No new version is created, only specified fields are modified",
|
|
660
|
-
"",
|
|
661
|
-
"FIELD MAPPING FOR VERSION CREATION:",
|
|
662
|
-
"When creating a new version, include ALL fields you want the new version to have:",
|
|
663
|
-
"- name: Test case summary (required if different from source)",
|
|
664
|
-
"- description: Test case description (required if different from source)",
|
|
665
|
-
"- priority: Priority ID (get from project info customListObjs.priority[index].id)",
|
|
666
|
-
"- testcaseOwner: Owner ID (get from project info customListObjs.owner[index].id)",
|
|
667
|
-
"- testCaseState: State ID (get from project info customListObjs.testCaseState[index].id)",
|
|
668
|
-
"- testCaseType: Type ID (get from project info customListObjs.testCaseType[index].id)",
|
|
669
|
-
"- testingType: Testing type ID (get from project info customListObjs.testingType[index].id)",
|
|
670
|
-
"- component: Array of component IDs (get from project info customListObjs.component[index].id)",
|
|
671
|
-
"- estimatedTime: Time in seconds (e.g., 7200 for 2 hours)",
|
|
672
|
-
"- steps: Array of step objects (include tcStepID from source version to preserve steps)",
|
|
673
|
-
"- folderPath: Folder path or folder ID",
|
|
674
|
-
"- scope: Usually 'project'",
|
|
675
|
-
"",
|
|
676
|
-
"STEPS HANDLING IN VERSION CREATION:",
|
|
677
|
-
"When creating a new version WITH steps:",
|
|
678
|
-
"- To PRESERVE existing steps: Include them with their original tcStepID values",
|
|
679
|
-
"- To ADD new steps: Include them WITHOUT tcStepID",
|
|
680
|
-
"- To MODIFY steps: Include them with tcStepID and updated description/data",
|
|
681
|
-
"- To REMOVE steps: Include them in removeSteps array",
|
|
682
|
-
"- Set isStepUpdated: true if any steps are modified, added, or removed",
|
|
683
|
-
"- If no steps are included, new version may inherit steps from source (verify with QMetry docs)",
|
|
637
|
+
"FIELD IDs for version creation — all from project info customListObjs.<field>[].id:",
|
|
638
|
+
" priority | testcaseOwner (→owner list) | testCaseState | testCaseType | testingType | component (array of IDs)",
|
|
639
|
+
" estimatedTime in seconds | scope:'project' | folderPath: string path or numeric ID",
|
|
684
640
|
"",
|
|
685
641
|
"If user provides entityKey (e.g., MAC-TC-1684), first call FETCH_TEST_CASES with a filter on entityKeyId to resolve the tcID and tcVersionID.",
|
|
686
642
|
"To get valid values for priority, owner, component, etc., call the project info tool and use the returned customListObjs IDs.",
|
|
687
|
-
"
|
|
688
|
-
"If
|
|
689
|
-
"
|
|
690
|
-
"If
|
|
691
|
-
"
|
|
692
|
-
"
|
|
693
|
-
`Example: If user says 'Update test case with title "High priority test case" and set priority to "Blocker"', first call project info, map 'Blocker' to its ID, and use that ID for the priority field in the update payload. If user says 'set priority to "Urgent"' and 'Urgent' is not found, skip the priority field and show: 'Test case updated without priority, as given priority is not available in the current project.'`,
|
|
643
|
+
"NAMED FIELD RESOLUTION (priority, component, owner, testCaseState, testCaseType, testingType):",
|
|
644
|
+
" If user provides a name instead of an ID: look up ID from project info customListObjs.<field>[].name.",
|
|
645
|
+
" Field→key map: priority→priority | component→component | owner→testcaseOwner | state→testCaseState | type→testCaseType | testingType→testingType.",
|
|
646
|
+
" If not found after a fresh project info fetch: skip the field (it is not required) and show:",
|
|
647
|
+
" 'Test case updated without <field>, as given <field> is not available in the current project.'",
|
|
648
|
+
"",
|
|
694
649
|
"CRITICAL: To update test case steps without **Duplication**, use the following rules:",
|
|
695
650
|
"- ANTI-DUPLICATION RULE: The tcStepID field is THE KEY to prevent duplication:",
|
|
696
651
|
" * WITH tcStepID = UPDATE existing step (QMetry modifies the existing step in place)",
|
|
@@ -738,241 +693,33 @@ const TESTCASE_TOOLS = [
|
|
|
738
693
|
"All IDs (priority, owner, etc.) must be valid for your QMetry instance.",
|
|
739
694
|
"If a custom field is mandatory, include it in the UDF object.",
|
|
740
695
|
"",
|
|
741
|
-
"
|
|
742
|
-
"-
|
|
743
|
-
"
|
|
744
|
-
"-
|
|
745
|
-
"
|
|
746
|
-
"
|
|
747
|
-
"
|
|
748
|
-
"",
|
|
749
|
-
"
|
|
750
|
-
|
|
751
|
-
"
|
|
752
|
-
"
|
|
753
|
-
"
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
"",
|
|
758
|
-
"
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
"
|
|
762
|
-
"
|
|
763
|
-
"→
|
|
764
|
-
"",
|
|
765
|
-
"
|
|
766
|
-
"
|
|
767
|
-
"
|
|
768
|
-
"- Pitfall 3: Not fetching current tcVersionID before update → Updating wrong version or causing error",
|
|
769
|
-
"- Pitfall 4: Using tcVersion for normal updates → tcVersion only needed when withVersion=true",
|
|
770
|
-
"- Pitfall 5: Not including tcStepID for steps when creating version → Steps may duplicate instead of preserving",
|
|
771
|
-
"- Pitfall 6: Confusing tcVersionID (version identifier) with tcVersion (version number) → Wrong API payload",
|
|
772
|
-
"",
|
|
773
|
-
"CRITICAL ERROR HANDLING: TC.VERSION_NOT_SYNCED FOR LINKED TEST CASES",
|
|
774
|
-
"",
|
|
775
|
-
"PROBLEM: Test cases linked to test suites or with existing executions cannot be updated directly",
|
|
776
|
-
"TRIGGERS:",
|
|
777
|
-
" ✓ Test case is linked to one or more test suites",
|
|
778
|
-
" ✓ Test case has execution history (test runs exist)",
|
|
779
|
-
" ✓ Test case is part of a release/cycle with test runs",
|
|
780
|
-
" ✓ Any step modification when test case has associations",
|
|
781
|
-
"",
|
|
782
|
-
"ERROR CODE: TC.VERSION_NOT_SYNCED",
|
|
783
|
-
"ERROR MESSAGE: 'This Test Case has been associated. Create a new version to save modifications.'",
|
|
784
|
-
"",
|
|
785
|
-
"AUTOMATIC RETRY STRATEGY (IMPLEMENT THIS PATTERN):",
|
|
786
|
-
"When you receive TC.VERSION_NOT_SYNCED error, AUTOMATICALLY retry with version creation:",
|
|
787
|
-
"DO NOT ask user for confirmation - this is expected behavior for associated test cases",
|
|
788
|
-
"",
|
|
789
|
-
"1. FIRST ATTEMPT (Normal Update):",
|
|
790
|
-
" - Try updating with isStepUpdated=true (for step changes) or without withVersion flag",
|
|
791
|
-
" - If error code is TC.VERSION_NOT_SYNCED, proceed to step 2",
|
|
792
|
-
" - If error is different, report the error to user",
|
|
793
|
-
"",
|
|
794
|
-
"2. AUTOMATIC RETRY (Version Creation):",
|
|
795
|
-
" - Use the SAME tcID, tcVersionID, and steps array from first attempt",
|
|
796
|
-
" - Add these flags to payload:",
|
|
797
|
-
" * withVersion: true (CRITICAL - enables version creation)",
|
|
798
|
-
" * tcVersion: <current version number> (get from test case details or executions)",
|
|
799
|
-
" * notrunall: false (use false, not true)",
|
|
800
|
-
" * notruncurrent: false (use false, not true)",
|
|
801
|
-
" * scope: 'project' (always required)",
|
|
802
|
-
" * versionComment: 'Auto-created version due to test suite association' (or custom message)",
|
|
803
|
-
" - Set isStepUpdated: true whenever you modify steps (including when withVersion=true)",
|
|
804
|
-
" - IMPORTANT: Include ALL existing steps with tcStepID + new steps without tcStepID",
|
|
805
|
-
"",
|
|
806
|
-
"3. VERIFICATION:",
|
|
807
|
-
" - Check response for new tcVersionID (will be different from source)",
|
|
808
|
-
" - Verify tcVersion incremented (e.g., 1→2, 2→3)",
|
|
809
|
-
" - Confirm success message: 'Test Case <entityKey> updated successfully'",
|
|
810
|
-
"",
|
|
811
|
-
"UI BEHAVIOR COMPARISON:",
|
|
812
|
-
"QMetry UI shows a popup: 'Save as new version?' with optional comment field",
|
|
813
|
-
"API equivalent: Automatic retry with withVersion=true after detecting TC.VERSION_NOT_SYNCED",
|
|
814
|
-
"",
|
|
815
|
-
"REAL-WORLD EXAMPLE FROM UI PAYLOADS:",
|
|
816
|
-
"",
|
|
817
|
-
"First Attempt (FAILS with TC.VERSION_NOT_SYNCED):",
|
|
818
|
-
"```pseudo",
|
|
819
|
-
"{",
|
|
820
|
-
' "tcID": 4594140,',
|
|
821
|
-
' "tcVersionID": 5536696,',
|
|
822
|
-
' "withVersion": false,',
|
|
823
|
-
' "notrunall": false,',
|
|
824
|
-
' "steps": [',
|
|
825
|
-
" // ... 5 existing steps with tcStepID ...",
|
|
826
|
-
" // ... 1 new step without tcStepID (orderId: 6) ...",
|
|
827
|
-
" ],",
|
|
828
|
-
' "removeSteps": [],',
|
|
829
|
-
' "isStepUpdated": true',
|
|
830
|
-
"}",
|
|
831
|
-
"```",
|
|
832
|
-
"Response: 400 - TC.VERSION_NOT_SYNCED error",
|
|
833
|
-
"",
|
|
834
|
-
"Second Attempt (SUCCEEDS - Creates Version 2):",
|
|
835
|
-
"```pseudo",
|
|
836
|
-
"{",
|
|
837
|
-
' "withVersion": true, // NEW: Version creation flag',
|
|
838
|
-
' "notrunall": false,',
|
|
839
|
-
' "notruncurrent": false,',
|
|
840
|
-
' "steps": [',
|
|
841
|
-
" // SAME steps array as first attempt",
|
|
842
|
-
" // ... 5 existing steps with tcStepID ...",
|
|
843
|
-
" // ... 1 new step without tcStepID ...",
|
|
844
|
-
" ],",
|
|
845
|
-
' "removeSteps": [],',
|
|
846
|
-
' "scope": "project",',
|
|
847
|
-
' "tcID": 4594140, // SAME tcID',
|
|
848
|
-
' "tcVersion": 1, // NEW: Current version number',
|
|
849
|
-
' "tcVersionID": 5536696, // SAME tcVersionID (source version)',
|
|
850
|
-
' "versionComment": "test", // NEW: Version comment (optional)',
|
|
851
|
-
" // NOTE: isStepUpdated field is NOT included when withVersion=true",
|
|
852
|
-
"}",
|
|
853
|
-
"```",
|
|
854
|
-
"Response: 200 - Success, new tcVersionID created (e.g., 5536697), tcVersion=2",
|
|
855
|
-
"",
|
|
856
|
-
"IMPLEMENTATION PSEUDO-CODE:",
|
|
857
|
-
"```typescript",
|
|
858
|
-
"try {",
|
|
859
|
-
" // First attempt: Normal update",
|
|
860
|
-
" const response = await updateTestCase({",
|
|
861
|
-
" tcID, tcVersionID, steps, isStepUpdated: true",
|
|
862
|
-
" });",
|
|
863
|
-
"} catch (error) {",
|
|
864
|
-
" if (error.code === 'TC.VERSION_NOT_SYNCED') {",
|
|
865
|
-
" // Automatic retry with version creation",
|
|
866
|
-
" const testCaseDetails = await fetchTestCaseDetails(tcID);",
|
|
867
|
-
" // CRITICAL: Use the LATEST version number from system",
|
|
868
|
-
" const latestVersion = testCaseDetails.tcVersion; // e.g., 2 if v2 exists",
|
|
869
|
-
" const response = await updateTestCase({",
|
|
870
|
-
" tcID,",
|
|
871
|
-
" tcVersionID, // Same source version",
|
|
872
|
-
" tcVersion: latestVersion, // Use latest version number (not always 1!)",
|
|
873
|
-
" steps, // Same steps array",
|
|
874
|
-
" // DO NOT include isStepUpdated when withVersion=true",
|
|
875
|
-
" withVersion: true, // Enable version creation",
|
|
876
|
-
" notrunall: false, // Use false (verified working value)",
|
|
877
|
-
" notruncurrent: false, // Use false (verified working value)",
|
|
878
|
-
" scope: 'project', // Always required",
|
|
879
|
-
" versionComment: 'Auto-created version due to test suite association'",
|
|
880
|
-
" });",
|
|
881
|
-
" } else {",
|
|
882
|
-
" throw error; // Different error, report to user",
|
|
883
|
-
" }",
|
|
884
|
-
"}",
|
|
885
|
-
"```",
|
|
886
|
-
"",
|
|
887
|
-
"KEY INSIGHTS:",
|
|
888
|
-
"- DO NOT ask user for confirmation - auto-retry is expected behavior",
|
|
889
|
-
"- Use SAME tcVersionID in both attempts (source version for creation)",
|
|
890
|
-
"- Second attempt creates NEW version (tcVersionID changes in response)",
|
|
891
|
-
"- Steps array is IDENTICAL in both attempts",
|
|
892
|
-
"- tcVersion parameter is ONLY in second attempt (withVersion=true)",
|
|
893
|
-
"- This matches QMetry UI behavior where popup auto-triggers version creation",
|
|
894
|
-
"",
|
|
895
|
-
"CRITICAL: INCREMENTAL tcVersion SELECTION RULE",
|
|
896
|
-
"",
|
|
897
|
-
"PROBLEM: When multiple versions exist, which tcVersion should you use?",
|
|
898
|
-
"SOLUTION: Use the VERSION NUMBER of the version you are creating FROM (the latest existing version)",
|
|
899
|
-
"",
|
|
900
|
-
"RULE: When creating a new version, tcVersion must equal the CURRENT LATEST VERSION in the system",
|
|
901
|
-
"",
|
|
902
|
-
"EXAMPLES:",
|
|
903
|
-
"- If only version 1 exists: Use tcVersion: 1 (creates version 2 from v1)",
|
|
904
|
-
"- If version 1 and 2 exist: Use tcVersion: 2 (creates version 3 from v2)",
|
|
905
|
-
"- If version 1, 2, and 3 exist: Use tcVersion: 3 (creates version 4 from v3)",
|
|
906
|
-
"",
|
|
907
|
-
"WORKFLOW TO DETERMINE CORRECT tcVersion:",
|
|
908
|
-
"1. Call FETCH_TEST_CASE_DETAILS or FETCH_TEST_CASE_EXECUTIONS",
|
|
909
|
-
"2. Check the highest tcVersion number in the system",
|
|
910
|
-
"3. Use that number as your tcVersion parameter in the update payload",
|
|
911
|
-
"4. This ensures you're creating from the latest version, not an old one",
|
|
912
|
-
"",
|
|
913
|
-
"REAL-WORLD SCENARIO:",
|
|
914
|
-
"Scenario: Test case VKMCP-TC-43 has version 2 already created in UI",
|
|
915
|
-
"Wrong Approach (will fail): tcVersion: 1, withVersion: true → TC.VERSION_NOT_SYNCED error",
|
|
916
|
-
"Correct Approach (will succeed): tcVersion: 2, withVersion: true → Creates version 3 successfully",
|
|
917
|
-
"",
|
|
918
|
-
"VERIFIED WORKING PAYLOAD (from user's Postman testing):",
|
|
919
|
-
"```json",
|
|
920
|
-
"{",
|
|
921
|
-
' "notrunall": false,',
|
|
922
|
-
' "notruncurrent": false,',
|
|
923
|
-
' "scope": "project",',
|
|
924
|
-
' "tcID": 4594145,',
|
|
925
|
-
' "tcVersion": 2, // KEY: Use version 2 because v2 already exists',
|
|
926
|
-
' "tcVersionID": 5536706, // Source version ID (stays same)',
|
|
927
|
-
' "versionComment": "Added new steps", // Describes what changed',
|
|
928
|
-
' "withVersion": true, // Enable version creation',
|
|
929
|
-
' "steps": [',
|
|
930
|
-
" // 5 existing steps with tcStepID (preserved from source)",
|
|
931
|
-
" // 2 new steps without tcStepID (to be added)",
|
|
932
|
-
" ]",
|
|
933
|
-
"}",
|
|
934
|
-
"```",
|
|
935
|
-
"Result: New version 3 created successfully with 7 total steps",
|
|
936
|
-
"",
|
|
937
|
-
"DEFAULT VALUES FOR TC.VERSION_NOT_SYNCED RETRIES (THIS PATTERN):",
|
|
938
|
-
"- notrunall: false - For this retry pattern, override any usual `true` default",
|
|
939
|
-
"- notruncurrent: false - For this retry pattern, override any usual `true` default",
|
|
940
|
-
'- scope: "project" - Always use this',
|
|
941
|
-
"- withVersion: true - Required when creating a new version (both initial and retries)",
|
|
942
|
-
"",
|
|
943
|
-
"WHEN TO APPLY THIS PATTERN:",
|
|
944
|
-
"✓ Adding steps to test case linked to test suite",
|
|
945
|
-
"✓ Editing steps in test case with existing executions",
|
|
946
|
-
"✓ Removing steps from associated test case",
|
|
947
|
-
"✓ Any modification to steps when TC.VERSION_NOT_SYNCED occurs",
|
|
948
|
-
"✓ When creating new versions from existing versions (always check latest version number)",
|
|
949
|
-
"",
|
|
950
|
-
"WHEN NOT TO APPLY:",
|
|
951
|
-
"✗ Test case is NOT linked to test suite (normal update works)",
|
|
952
|
-
"✗ Only updating metadata (name, priority, etc.) without steps",
|
|
953
|
-
"✗ Different error codes (handle appropriately)",
|
|
954
|
-
"",
|
|
955
|
-
"BENEFITS OF THIS APPROACH:",
|
|
956
|
-
"1. Seamless UX - LLM handles version creation automatically",
|
|
957
|
-
"2. Matches UI behavior - no manual intervention needed",
|
|
958
|
-
"3. Preserves test history - creates proper version trail",
|
|
959
|
-
"4. Maintains test suite linkage - version creation preserves associations",
|
|
960
|
-
"5. Handles incremental versions correctly - uses latest version as source",
|
|
961
|
-
"",
|
|
962
|
-
"🎯 GRACEFUL HANDLING SUMMARY:",
|
|
963
|
-
"",
|
|
964
|
-
"When adding/editing/removing steps from test cases:",
|
|
965
|
-
"1. Always TRY normal update first (without withVersion flag)",
|
|
966
|
-
"2. If TC.VERSION_NOT_SYNCED error received:",
|
|
967
|
-
" - Fetch latest version number from test case details/executions",
|
|
968
|
-
" - Automatically retry with withVersion=true + correct tcVersion",
|
|
969
|
-
" - Use notrunall=false, notruncurrent=false, scope='project'",
|
|
970
|
-
" - Include version comment describing the changes",
|
|
971
|
-
"3. Report success with new version details to user",
|
|
972
|
-
"4. NEVER ask for confirmation - handle it transparently",
|
|
973
|
-
"",
|
|
974
|
-
"This ensures test cases with executions or suite associations are handled gracefully",
|
|
975
|
-
"without user intervention, matching the QMetry UI experience exactly.",
|
|
696
|
+
"VERSION CREATION NOTES:",
|
|
697
|
+
"- notruncurrent + notrunall: default true for regular version creation; use false only in TC.VERSION_NOT_SYNCED retry.",
|
|
698
|
+
"- folderPath: string path or numeric ID; inherited from source version if omitted.",
|
|
699
|
+
"- attachments: use ADD/REMOVE arrays to manage attachments on create or update.",
|
|
700
|
+
"",
|
|
701
|
+
"PITFALL: tcVersionID (numeric version identifier, stays same across creation) ≠ tcVersion (version number 1/2/3, only used when withVersion=true).",
|
|
702
|
+
"",
|
|
703
|
+
"TC.VERSION_NOT_SYNCED — AUTO-RETRY (transparent, no user confirmation needed):",
|
|
704
|
+
"TRIGGER: Test case linked to test suites or has existing executions — direct step updates are blocked.",
|
|
705
|
+
"ERROR CODE: TC.VERSION_NOT_SYNCED | MESSAGE: 'This Test Case has been associated. Create a new version to save modifications.'",
|
|
706
|
+
"",
|
|
707
|
+
"RETRY FLOW:",
|
|
708
|
+
" 1. First attempt — normal update (no withVersion). If TC.VERSION_NOT_SYNCED → go to step 2. Different error → report and stop.",
|
|
709
|
+
" 2. Fetch test case details to get LATEST tcVersion number.",
|
|
710
|
+
" CRITICAL: use the highest existing version (e.g. v2 exists → tcVersion=2, not 1). Wrong value triggers the error again.",
|
|
711
|
+
" 3. Retry with SAME tcID, tcVersionID, steps[] PLUS these additional fields:",
|
|
712
|
+
" withVersion: true | tcVersion: <latest> | notrunall: false | notruncurrent: false | scope: 'project'",
|
|
713
|
+
" versionComment: 'Auto-created version due to test suite association'",
|
|
714
|
+
" NOTE: omit isStepUpdated when withVersion=true.",
|
|
715
|
+
" 4. Verify new tcVersionID in response (different from source) and report new version details to user.",
|
|
716
|
+
"",
|
|
717
|
+
"tcVersion RULE: always equals the LATEST version in the system.",
|
|
718
|
+
" Only v1 exists → tcVersion:1 (creates v2) | v1+v2 exist → tcVersion:2 (creates v3) | etc.",
|
|
719
|
+
"",
|
|
720
|
+
"VERIFIED PAYLOAD SHAPE (retry attempt):",
|
|
721
|
+
" { tcID, tcVersionID, tcVersion:<latest>, withVersion:true, notrunall:false, notruncurrent:false,",
|
|
722
|
+
" scope:'project', versionComment:'...', steps:[...same as first attempt...] }",
|
|
976
723
|
"",
|
|
977
724
|
"executionMinutes time is in minutes (legacy field).",
|
|
978
725
|
"estimatedTime is in seconds (preferred for version creation).",
|
|
@@ -800,16 +800,17 @@ const TESTSUITE_TOOLS = [
|
|
|
800
800
|
"This tool is essential for test execution analysis and reporting",
|
|
801
801
|
"Critical for monitoring test suite performance and execution trends",
|
|
802
802
|
"Use for compliance reporting and execution audit trails",
|
|
803
|
-
"Essential for test execution planning and resource optimization"
|
|
803
|
+
"Essential for test execution planning and resource optimization",
|
|
804
|
+
"LINKED DEFECTS/ISSUES: Each execution record can expose TWO separate defect counts - 'linkedDfCount' is the count of defects/issues linked to the TEST EXECUTION itself, and 'linkedStepDfCount' is the count of defects/issues linked to that execution's TEST STEP executions. Whenever asked about linked defects/issues for an execution, report BOTH counts (linkedDfCount and linkedStepDfCount) - do not report only one."
|
|
804
805
|
],
|
|
805
|
-
outputDescription: "JSON object with executions array containing execution details, status, platforms, releases, and execution metadata",
|
|
806
|
+
outputDescription: "JSON object with executions array containing execution details, status, platforms, releases, and execution metadata. Each execution entry may include 'linkedDfCount' (defects linked to the test execution) and 'linkedStepDfCount' (defects linked to the test step executions) - report both when linked defects are asked about.",
|
|
806
807
|
readOnly: true,
|
|
807
808
|
idempotent: true
|
|
808
809
|
},
|
|
809
810
|
{
|
|
810
811
|
title: "Fetch Test Case Runs by Test Suite Run",
|
|
811
812
|
toolset: "Test Suites",
|
|
812
|
-
summary: "Get test case runs under a specific test suite run execution in QMetry, including Test Run UDF values. ALWAYS present results as a unified table: Test Case Key | Test Case Summary | Executed Version | Execution Status | <UDF Label columns…>. NEVER show a separate type+value breakdown — always combine identification fields and UDF values in one table per run.",
|
|
813
|
+
summary: "Get test case runs under a specific test suite run execution in QMetry, including Test Run UDF values. ALWAYS present results as a unified table: Test Case Key | Test Case Summary | Executed Version | Execution Status | Linked Defects (Execution) | Linked Defects (Steps) | <UDF Label columns…>. NEVER show a separate type+value breakdown — always combine identification fields and UDF values in one table per run. Linked defects are TWO separate counts, never combine them into one 'Issues Linked' column.",
|
|
813
814
|
handler: QMetryToolsHandlers.FETCH_TESTCASE_RUNS_BY_TESTSUITE_RUN,
|
|
814
815
|
inputSchema: TestCaseRunsByTestSuiteRunArgsSchema,
|
|
815
816
|
formatResponse: (result) => {
|
|
@@ -851,7 +852,7 @@ const TESTSUITE_TOOLS = [
|
|
|
851
852
|
})
|
|
852
853
|
};
|
|
853
854
|
},
|
|
854
|
-
purpose: "Retrieve detailed test case run information for a specific test suite run execution. This tool provides comprehensive test case run data including execution status, test results, tester information, execution dates, Test Run UDF values, and other run metadata. Supports filtering by standard fields, test case UDFs (udfFilter), and Test Run UDFs (tcrUdfFilter). Essential for detailed execution analysis, test run reporting, UDF value inspection, and execution audit trails. IMPORTANT: Every response row contains key identification fields — Test Case Key (entityKey), Test Case Summary (summary), Executed Version (latestVersion), Execution Status (runStatus), and Test Run UDF values (testRunUdfs). These MUST always be shown in the response so users can identify which test case run each record represents.",
|
|
855
|
+
purpose: "Retrieve detailed test case run information for a specific test suite run execution. This tool provides comprehensive test case run data including execution status, test results, tester information, execution dates, Test Run UDF values, and other run metadata. Supports filtering by standard fields, test case UDFs (udfFilter), and Test Run UDFs (tcrUdfFilter). Essential for detailed execution analysis, test run reporting, UDF value inspection, and execution audit trails. IMPORTANT: Every response row contains key identification fields — Test Case Key (entityKey), Test Case Summary (summary), Executed Version (latestVersion), Execution Status (runStatus), and Test Run UDF values (testRunUdfs). These MUST always be shown in the response so users can identify which test case run each record represents. IMPORTANT — LINKED DEFECTS ARE TWO SEPARATE COUNTS: 'linkedDfCount' (defects/issues linked to the test case run/execution itself) and 'linkedStepDfCount' (defects/issues linked to that run's test step executions). Whenever the user asks for linked defects/issues, ALWAYS report BOTH counts separately — never merge them into a single 'Issues Linked' value.",
|
|
855
856
|
useCases: [
|
|
856
857
|
"Get all test case runs under a specific test suite run execution",
|
|
857
858
|
"Fetch Test Run UDF values for all test case executions in a test suite run — always show Test Case Key, Summary, and Execution Status alongside UDFs",
|
|
@@ -1013,18 +1014,21 @@ const TESTSUITE_TOOLS = [
|
|
|
1013
1014
|
" ❌ Do NOT show raw UDF field keys (e.g. 'TRString', '8260LUP') as column headers — use human-readable labels",
|
|
1014
1015
|
"",
|
|
1015
1016
|
"REQUIRED OUTPUT — ONE unified table, all runs as rows:",
|
|
1016
|
-
"| Test Case Key | Test Case Summary | Executed Version | Execution Status | <UDF Label 1> | <UDF Label 2> | ... |",
|
|
1017
|
-
"
|
|
1018
|
-
"| VKMCP-TC-1 | Login test | v1 | Not Run | varis | chrome, edge | ... |",
|
|
1019
|
-
"| VKMCP-TC-2 | Invalid password | v2 | Not Run | john | firefox | ... |",
|
|
1017
|
+
"| Test Case Key | Test Case Summary | Executed Version | Execution Status | Linked Defects (Execution) | Linked Defects (Steps) | <UDF Label 1> | <UDF Label 2> | ... |",
|
|
1018
|
+
"|---------------|-------------------|------------------|------------------|-----------------------------|-------------------------|---------------|---------------|-----|",
|
|
1019
|
+
"| VKMCP-TC-1 | Login test | v1 | Not Run | 1 | 0 | varis | chrome, edge | ... |",
|
|
1020
|
+
"| VKMCP-TC-2 | Invalid password | v2 | Not Run | 0 | 2 | john | firefox | ... |",
|
|
1020
1021
|
"",
|
|
1021
1022
|
"MANDATORY COLUMNS (always first, in this order):",
|
|
1022
|
-
" 1. Test Case Key
|
|
1023
|
-
" 2. Test Case Summary
|
|
1024
|
-
" 3. Executed Version
|
|
1025
|
-
" 4. Execution Status
|
|
1026
|
-
" 5.
|
|
1027
|
-
" 6
|
|
1023
|
+
" 1. Test Case Key → entityKey (e.g. 'VKMCP-TC-1')",
|
|
1024
|
+
" 2. Test Case Summary → summary (test case name)",
|
|
1025
|
+
" 3. Executed Version → latestVersion (e.g. 'v1', 'v2')",
|
|
1026
|
+
" 4. Execution Status → runStatus (e.g. 'Not Run', 'Passed', 'Failed')",
|
|
1027
|
+
" 5. Linked Defects (Execution) → linkedDfCount (defects/issues linked to the test case run itself)",
|
|
1028
|
+
" 6. Linked Defects (Steps) → linkedStepDfCount (defects/issues linked to that run's test step executions)",
|
|
1029
|
+
" 7. Tested By → testedBy/executedBy when present",
|
|
1030
|
+
" 8+. One column per UDF field — use the human-readable label as header, the value as the cell.",
|
|
1031
|
+
" NEVER combine columns 5 and 6 into a single 'Issues Linked' count — they are always reported separately, defaulting to 0 when absent.",
|
|
1028
1032
|
"",
|
|
1029
1033
|
"Null UDF values → show as '-' in the cell.",
|
|
1030
1034
|
"If testRunUdfs is empty or hasTcRunUdf is false, still show columns 1-5.",
|
|
@@ -1220,17 +1224,17 @@ const TESTSUITE_TOOLS = [
|
|
|
1220
1224
|
"Use for compliance reporting and execution audit trails",
|
|
1221
1225
|
"Essential for test execution quality assurance and trend analysis"
|
|
1222
1226
|
],
|
|
1223
|
-
outputDescription: "JSON object with test case runs array. Each row ALWAYS contains these mandatory identification fields: 'entityKey' (Test Case Key, e.g. 'MAC-TC-123'), 'summary' (Test Case Summary/name), 'latestVersion' (Executed Version, e.g. 'v1', 'v2'), 'runStatus' (Execution Status label, e.g. 'Passed', 'Failed', 'Not Run'), 'runStatusID' (numeric status ID), 'tcRunID' (numeric Test Run ID), and 'testRunUdfs' (object with Test Run UDF field keys mapped to their values, parsed from the raw 'udfjson' field; HTML stripped from rich text). UDF values can also be fetched in enriched form via FETCH_TEST_RUN_UDF_VALUES or field metadata via FETCH_TEST_RUN_UDF_METADATA. The top-level response includes 'hasTcRunUdf' (boolean), 'total' (count), and pagination metadata.",
|
|
1227
|
+
outputDescription: "JSON object with test case runs array. Each row ALWAYS contains these mandatory identification fields: 'entityKey' (Test Case Key, e.g. 'MAC-TC-123'), 'summary' (Test Case Summary/name), 'latestVersion' (Executed Version, e.g. 'v1', 'v2'), 'runStatus' (Execution Status label, e.g. 'Passed', 'Failed', 'Not Run'), 'runStatusID' (numeric status ID), 'tcRunID' (numeric Test Run ID), 'linkedDfCount' (defects/issues linked to the test case run itself) and 'linkedStepDfCount' (defects/issues linked to that run's test step executions) — these are TWO SEPARATE counts and must always be reported separately when linked defects are asked about, and 'testRunUdfs' (object with Test Run UDF field keys mapped to their values, parsed from the raw 'udfjson' field; HTML stripped from rich text). UDF values can also be fetched in enriched form via FETCH_TEST_RUN_UDF_VALUES or field metadata via FETCH_TEST_RUN_UDF_METADATA. The top-level response includes 'hasTcRunUdf' (boolean), 'total' (count), and pagination metadata.",
|
|
1224
1228
|
readOnly: true,
|
|
1225
1229
|
idempotent: true
|
|
1226
1230
|
},
|
|
1227
1231
|
{
|
|
1228
1232
|
title: "Bulk Update Test Case Execution Status",
|
|
1229
1233
|
toolset: "Test Suites",
|
|
1230
|
-
summary: "Update execution status for individual or multiple test case runs in bulk",
|
|
1234
|
+
summary: "Update execution status for individual or multiple test case runs in bulk, enforcing mandatory Test Run UDFs",
|
|
1231
1235
|
handler: QMetryToolsHandlers.BULK_UPDATE_EXECUTION_STATUS,
|
|
1232
1236
|
inputSchema: BulkUpdateExecutionStatusArgsSchema,
|
|
1233
|
-
purpose: "Update the execution status (Pass, Fail, Blocked, Not Run, WIP, etc.) for one or more test case runs. This tool enables both single and bulk status updates for test executions, providing flexibility for manual test execution management, automated test result updates, and test execution tracking. Essential for maintaining accurate test execution records and execution status reporting.",
|
|
1237
|
+
purpose: "Update the execution status (Pass, Fail, Blocked, Not Run, WIP, etc.) for one or more test case runs. This tool enables both single and bulk status updates for test executions, providing flexibility for manual test execution management, automated test result updates, and test execution tracking. Essential for maintaining accurate test execution records and execution status reporting. For TCR updates, the status is only changed when every target run has all mandatory Test Run UDFs populated; missing values can be supplied per run via 'udfValuesByRun' and are written before the status update.",
|
|
1234
1238
|
useCases: [
|
|
1235
1239
|
"Update single test case run status to Pass, Fail, Blocked, or Not Run",
|
|
1236
1240
|
"Bulk update multiple test case run statuses in a single operation",
|
|
@@ -1239,7 +1243,8 @@ const TESTSUITE_TOOLS = [
|
|
|
1239
1243
|
"Set execution status based on automated test results",
|
|
1240
1244
|
"Update test execution status across different test environments",
|
|
1241
1245
|
"Track test execution progress and completion",
|
|
1242
|
-
"Manage test execution status for compliance and reporting"
|
|
1246
|
+
"Manage test execution status for compliance and reporting",
|
|
1247
|
+
"Fill mandatory Test Run UDFs per run and update the execution status in one call"
|
|
1243
1248
|
],
|
|
1244
1249
|
examples: [
|
|
1245
1250
|
{
|
|
@@ -1324,11 +1329,36 @@ const TESTSUITE_TOOLS = [
|
|
|
1324
1329
|
isBulkOperation: true
|
|
1325
1330
|
},
|
|
1326
1331
|
expectedOutput: "Execution 1/4 updated. The MCP Agent will automatically repeat this operation for executions 2733205, 2733306, and 2733407 using their corresponding entityIDs."
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
description: "Retry after MANDATORY_TEST_RUN_UDF_MISSING: fill mandatory Test Run UDF 'test_env' per run, then mark both runs Passed",
|
|
1335
|
+
parameters: {
|
|
1336
|
+
entityIDs: "66095069,66095075",
|
|
1337
|
+
entityType: "TCR",
|
|
1338
|
+
qmTsRunId: "2720260",
|
|
1339
|
+
runStatusID: 123268,
|
|
1340
|
+
isBulkOperation: true,
|
|
1341
|
+
udfValuesByRun: {
|
|
1342
|
+
"66095069": { test_env: { value: "QA" } },
|
|
1343
|
+
"66095075": { test_env: { value: "UAT" } }
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
expectedOutput: "{ success: true, udfUpdates: [{ tcRunIDs: [66095069], ... }, { tcRunIDs: [66095075], ... }], statusUpdate: {...} }"
|
|
1327
1347
|
}
|
|
1328
1348
|
],
|
|
1329
1349
|
hints: [
|
|
1330
1350
|
"CRITICAL: entityIDs, entityType, qmTsRunId, and runStatusID are REQUIRED parameters",
|
|
1331
1351
|
"",
|
|
1352
|
+
"MANDATORY TEST RUN UDF GATE (entityType 'TCR', applies to EVERY target status including Not Run):",
|
|
1353
|
+
"- Before updating, the tool checks each run's Test Run UDFs; fields with allowBlank=false are mandatory.",
|
|
1354
|
+
"- If ANY run is missing a mandatory value, NOTHING is updated and the tool returns code 'MANDATORY_TEST_RUN_UDF_MISSING' with runsMissingFields[{ tcRunID, entityKey, missingFields[{ name, label, fieldID, fieldType, listName? }] }].",
|
|
1355
|
+
"- On that response: show the missing fields per run to the user, ask for the values (never invent them), then call this tool again with the same arguments plus 'udfValuesByRun'.",
|
|
1356
|
+
"- 'udfValuesByRun' format: { '<tcRunID>': { '<udf name>': { value } } }. Keys are tcRunIDs from entityIDs; inner keys are the UDF 'name' (not the 'FLD.' fieldKey). fieldID is optional (auto-filled).",
|
|
1357
|
+
"- Value formats: DATETIMEPICKER 'MM-DD-YYYY'; LOOKUPLIST option id (from lookupOptions[listName][].id); MULTILOOKUPLIST array of ids; CASCADINGLIST { parent, child }.",
|
|
1358
|
+
"- Supplied UDF values are written first (Bulk Update Test Run UDFs), then the status is updated. Non-mandatory UDFs can also be set this way.",
|
|
1359
|
+
"- entityType 'TCSR' (step runs) skips the gate; 'udfValuesByRun' is rejected for TCSR.",
|
|
1360
|
+
"- viewId is auto-resolved (latestViews.TE.viewId); do not pass it unless you have a specific one.",
|
|
1361
|
+
"",
|
|
1332
1362
|
"CRITICAL - ALWAYS FETCH STATUS IDs FROM PROJECT INFO:",
|
|
1333
1363
|
"NEVER use hardcoded or memorized status IDs. Status IDs are PROJECT-SPECIFIC and must be fetched dynamically.",
|
|
1334
1364
|
"MANDATORY WORKFLOW BEFORE USING runStatusID:",
|
|
@@ -1444,7 +1474,7 @@ const TESTSUITE_TOOLS = [
|
|
|
1444
1474
|
"Use for manual test execution updates and automated test result integration",
|
|
1445
1475
|
"Essential for test execution audit trails and compliance requirements"
|
|
1446
1476
|
],
|
|
1447
|
-
outputDescription: "
|
|
1477
|
+
outputDescription: "On success: { success: true, udfUpdates: [{ tcRunIDs, response }], statusUpdate: <API response> }. When mandatory Test Run UDFs are missing: { success: false, code: 'MANDATORY_TEST_RUN_UDF_MISSING', statusUpdated: false, runsMissingFields, lookupOptions?, _note }.",
|
|
1448
1478
|
readOnly: false,
|
|
1449
1479
|
idempotent: false
|
|
1450
1480
|
},
|
|
@@ -14,6 +14,16 @@ const TEST_RUN_UDF_DISPLAY_COLUMNS = {
|
|
|
14
14
|
header: "Execution Status",
|
|
15
15
|
fields: ["runStatus", "runStatusName", "executionStatus"]
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
header: "Linked Defects (Execution)",
|
|
19
|
+
fields: ["linkedDfCount"],
|
|
20
|
+
defaultValue: 0
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
header: "Linked Defects (Steps)",
|
|
24
|
+
fields: ["linkedStepDfCount"],
|
|
25
|
+
defaultValue: 0
|
|
26
|
+
},
|
|
17
27
|
{
|
|
18
28
|
header: "Tested By",
|
|
19
29
|
fields: ["testedBy", "executedBy", "executionCreatedByLoginAlias"]
|
|
@@ -150,7 +160,7 @@ function buildUnifiedTableRows(rows, sourceContext) {
|
|
|
150
160
|
const tableRow = {};
|
|
151
161
|
for (const column of contextColumns) {
|
|
152
162
|
tableRow[column.header] = formatTableValue(
|
|
153
|
-
readFirstAvailable(row, column.fields)
|
|
163
|
+
readFirstAvailable(row, column.fields) ?? column.defaultValue
|
|
154
164
|
);
|
|
155
165
|
}
|
|
156
166
|
for (const udf of row.testRunUdfs ?? []) {
|
|
@@ -527,5 +537,7 @@ export {
|
|
|
527
537
|
fetchTestRunUdfValues,
|
|
528
538
|
fetchUdfFieldTypes,
|
|
529
539
|
fetchUdfLayout,
|
|
530
|
-
fetchUdfModules
|
|
540
|
+
fetchUdfModules,
|
|
541
|
+
parseRawUdfs,
|
|
542
|
+
stripHtml
|
|
531
543
|
};
|
package/dist/qmetry/client.js
CHANGED
|
@@ -377,7 +377,8 @@ class QmetryClient {
|
|
|
377
377
|
QMetryToolsHandlers.FETCH_TEST_RUN_UDF_VALUES,
|
|
378
378
|
QMetryToolsHandlers.FETCH_CASCADE_CHILD_VALUES,
|
|
379
379
|
QMetryToolsHandlers.FETCH_ISSUE_DETAILS,
|
|
380
|
-
QMetryToolsHandlers.FETCH_UDF_LAYOUT
|
|
380
|
+
QMetryToolsHandlers.FETCH_UDF_LAYOUT,
|
|
381
|
+
QMetryToolsHandlers.BULK_UPDATE_EXECUTION_STATUS
|
|
381
382
|
]);
|
|
382
383
|
const isScopeAware = SCOPE_AWARE_HANDLERS.has(tool.handler);
|
|
383
384
|
const enrichedArgs = {
|
|
@@ -61,6 +61,7 @@ const QMetryToolsHandlers = {
|
|
|
61
61
|
FETCH_RELEASES_CYCLES: "getReleasesCycles",
|
|
62
62
|
FETCH_BUILDS: "getBuilds",
|
|
63
63
|
FETCH_PLATFORMS: "getPlatforms",
|
|
64
|
+
FETCH_API_QUOTA_STATUS: "getApiQuotaStatus",
|
|
64
65
|
CREATE_TEST_CASE: "createTestCases",
|
|
65
66
|
UPDATE_TEST_CASE: "updateTestCase",
|
|
66
67
|
FETCH_TEST_CASES: "getTestCases",
|
|
@@ -7,7 +7,8 @@ const QMETRY_PATHS = {
|
|
|
7
7
|
GET_PLATFORMS: "/rest/admin/platform/list",
|
|
8
8
|
CREATE_RELEASE: "/rest/admin/release",
|
|
9
9
|
CREATE_CYCLE: "/rest/admin/cycle",
|
|
10
|
-
UPDATE_CYCLE: "/rest/admin/cycle"
|
|
10
|
+
UPDATE_CYCLE: "/rest/admin/cycle",
|
|
11
|
+
GET_API_QUOTA_STATUS: "/rest/admin/apiquota/status"
|
|
11
12
|
},
|
|
12
13
|
TESTCASE: {
|
|
13
14
|
GET_TC_LIST: "/rest/testcases/list/viewColumns",
|
|
@@ -18,6 +18,9 @@ const ExecuteGateReportArgsSchema = z.object({
|
|
|
18
18
|
cycleIds: z.array(z.coerce.number()).optional().describe(
|
|
19
19
|
"Optional array of cycle IDs to scope the report to specific cycles."
|
|
20
20
|
),
|
|
21
|
+
extKeys: z.array(z.string()).optional().describe(
|
|
22
|
+
"Optional array of external issue keys (e.g. Jira keys like 'PROJ-123') to scope the report to specific external requirements."
|
|
23
|
+
),
|
|
21
24
|
page: z.coerce.number().optional().describe("Optional page number for paginated report results."),
|
|
22
25
|
limit: z.coerce.number().optional().default(100).describe(
|
|
23
26
|
"Maximum number of records to return per page. Defaults to 100 if not specified."
|