xray-mcp 1.2.1 → 1.2.2
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 +4 -3
- package/dist/xray-client.js +1 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,13 +141,14 @@ npm run dev
|
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
**Test Types:**
|
|
144
|
-
- `
|
|
144
|
+
- `Manual` - Structured manual tests (use Xray's built-in manual test steps)
|
|
145
|
+
- `Unstructured` - Free-form text steps (use with `add_manual_test_steps` tool)
|
|
145
146
|
- `Cucumber` - Gherkin/BDD scenarios
|
|
146
147
|
- `Generic` - Generic automated tests
|
|
147
148
|
|
|
148
149
|
#### Add Manual Test Steps
|
|
149
150
|
|
|
150
|
-
**Important:** Test cases must be created with `testType: "Unstructured"`
|
|
151
|
+
**Important:** Test cases must be created with `testType: "Unstructured"` to use this tool.
|
|
151
152
|
|
|
152
153
|
```json
|
|
153
154
|
{
|
|
@@ -167,7 +168,7 @@ npm run dev
|
|
|
167
168
|
```
|
|
168
169
|
|
|
169
170
|
**Migration from Azure DevOps:** This tool is perfect for migrating test cases from ADO:
|
|
170
|
-
1. Create test case with `testType: "Unstructured"`
|
|
171
|
+
1. Create test case with `testType: "Unstructured"`
|
|
171
172
|
2. Use the returned `issueId` with `add_manual_test_steps`
|
|
172
173
|
3. Steps are formatted as pipe-delimited text: "1. Action|Data|Result"
|
|
173
174
|
|
package/dist/xray-client.js
CHANGED
|
@@ -146,14 +146,8 @@ export class XrayClient {
|
|
|
146
146
|
jira: jiraFields
|
|
147
147
|
};
|
|
148
148
|
if (testCase.testType) {
|
|
149
|
-
// Map user-friendly test types to Xray's internal types
|
|
150
|
-
// For free-form text steps (used by add_manual_test_steps), use "Unstructured"
|
|
151
|
-
let xrayTestType = testCase.testType;
|
|
152
|
-
if (testCase.testType === 'Manual' || testCase.testType === 'Unstructured') {
|
|
153
|
-
xrayTestType = 'Unstructured';
|
|
154
|
-
}
|
|
155
149
|
variables.testType = {
|
|
156
|
-
|
|
150
|
+
kind: testCase.testType
|
|
157
151
|
};
|
|
158
152
|
}
|
|
159
153
|
const result = await this.graphqlRequest(mutation, variables);
|