xray-mcp 1.2.0 → 1.2.1
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 +1 -2
- package/dist/xray-client.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,8 +141,7 @@ npm run dev
|
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
**Test Types:**
|
|
144
|
-
- `Unstructured` - Free-form text steps (
|
|
145
|
-
- `Manual` - Structured manual steps (Xray's native format)
|
|
144
|
+
- `Unstructured` or `Manual` - Free-form text steps (both map to Xray "Unstructured", use with `add_manual_test_steps`)
|
|
146
145
|
- `Cucumber` - Gherkin/BDD scenarios
|
|
147
146
|
- `Generic` - Generic automated tests
|
|
148
147
|
|
package/dist/xray-client.js
CHANGED
|
@@ -146,8 +146,14 @@ 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
|
+
}
|
|
149
155
|
variables.testType = {
|
|
150
|
-
name:
|
|
156
|
+
name: xrayTestType
|
|
151
157
|
};
|
|
152
158
|
}
|
|
153
159
|
const result = await this.graphqlRequest(mutation, variables);
|