xray-mcp 1.2.1 → 1.2.3
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 -3
- package/dist/xray-client.js +6 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,13 +141,15 @@ npm run dev
|
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
**Test Types:**
|
|
144
|
-
- `
|
|
144
|
+
- `Manual` - Creates Unstructured tests (maps to "Unstructured" for `add_manual_test_steps` compatibility)
|
|
145
|
+
- `Unstructured` - Free-form text steps (use with `add_manual_test_steps` tool)
|
|
145
146
|
- `Cucumber` - Gherkin/BDD scenarios
|
|
147
|
+
- `Generic` - Other test types
|
|
146
148
|
- `Generic` - Generic automated tests
|
|
147
149
|
|
|
148
150
|
#### Add Manual Test Steps
|
|
149
151
|
|
|
150
|
-
**Important:** Test cases must be created with `testType: "Unstructured"`
|
|
152
|
+
**Important:** Test cases must be created with `testType: "Unstructured"` to use this tool.
|
|
151
153
|
|
|
152
154
|
```json
|
|
153
155
|
{
|
|
@@ -167,7 +169,7 @@ npm run dev
|
|
|
167
169
|
```
|
|
168
170
|
|
|
169
171
|
**Migration from Azure DevOps:** This tool is perfect for migrating test cases from ADO:
|
|
170
|
-
1. Create test case with `testType: "Unstructured"`
|
|
172
|
+
1. Create test case with `testType: "Unstructured"`
|
|
171
173
|
2. Use the returned `issueId` with `add_manual_test_steps`
|
|
172
174
|
3. Steps are formatted as pipe-delimited text: "1. Action|Data|Result"
|
|
173
175
|
|
package/dist/xray-client.js
CHANGED
|
@@ -112,7 +112,7 @@ export class XrayClient {
|
|
|
112
112
|
*/
|
|
113
113
|
async createTestCase(testCase) {
|
|
114
114
|
const mutation = `
|
|
115
|
-
mutation CreateTest($jira: JSON!, $testType:
|
|
115
|
+
mutation CreateTest($jira: JSON!, $testType: String) {
|
|
116
116
|
createTest(jira: $jira, testType: $testType) {
|
|
117
117
|
test {
|
|
118
118
|
issueId
|
|
@@ -146,15 +146,14 @@ export class XrayClient {
|
|
|
146
146
|
jira: jiraFields
|
|
147
147
|
};
|
|
148
148
|
if (testCase.testType) {
|
|
149
|
-
// Map
|
|
150
|
-
//
|
|
149
|
+
// Map "Manual" to "Unstructured" for ADO migration compatibility
|
|
150
|
+
// add_manual_test_steps only works with Unstructured test type
|
|
151
151
|
let xrayTestType = testCase.testType;
|
|
152
|
-
if (testCase.testType === 'Manual'
|
|
152
|
+
if (testCase.testType === 'Manual') {
|
|
153
153
|
xrayTestType = 'Unstructured';
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
155
|
+
// Pass as plain string, not object
|
|
156
|
+
variables.testType = xrayTestType;
|
|
158
157
|
}
|
|
159
158
|
const result = await this.graphqlRequest(mutation, variables);
|
|
160
159
|
return {
|