xray-mcp 1.2.5 → 1.2.7
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 -1
- package/dist/xray-client.js +9 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ npm run dev
|
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
**Test Types:**
|
|
144
|
-
- `Manual` - Manual tests (
|
|
144
|
+
- `Manual` - Manual tests with structured steps (use with `add_manual_test_steps`)
|
|
145
145
|
- `Cucumber` - Gherkin/BDD scenarios
|
|
146
146
|
- `Generic` - Other test types
|
|
147
147
|
- `Generic` - Generic automated tests
|
package/dist/xray-client.js
CHANGED
|
@@ -214,22 +214,15 @@ export class XrayClient {
|
|
|
214
214
|
* @param steps - Array of test steps with action, data, and result
|
|
215
215
|
*/
|
|
216
216
|
async addManualTestSteps(issueId, steps) {
|
|
217
|
-
// Format steps
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if (step.data) {
|
|
224
|
-
parts.push(step.data);
|
|
225
|
-
}
|
|
226
|
-
parts.push(step.result);
|
|
227
|
-
return `${stepNumber}. ${parts.join('|')}`;
|
|
228
|
-
})
|
|
229
|
-
.join('\n');
|
|
217
|
+
// Format steps for Manual test type
|
|
218
|
+
const manualSteps = steps.map((step) => ({
|
|
219
|
+
action: step.action,
|
|
220
|
+
data: step.data || '',
|
|
221
|
+
result: step.result
|
|
222
|
+
}));
|
|
230
223
|
const mutation = `
|
|
231
|
-
mutation
|
|
232
|
-
|
|
224
|
+
mutation UpdateManualTest($issueId: String!, $steps: [ManualTestStepInput]!) {
|
|
225
|
+
updateManualTestSteps(issueId: $issueId, steps: $steps) {
|
|
233
226
|
issueId
|
|
234
227
|
jira(fields: ["key"])
|
|
235
228
|
}
|
|
@@ -237,7 +230,7 @@ export class XrayClient {
|
|
|
237
230
|
`;
|
|
238
231
|
const variables = {
|
|
239
232
|
issueId: issueId,
|
|
240
|
-
|
|
233
|
+
steps: manualSteps
|
|
241
234
|
};
|
|
242
235
|
await this.graphqlRequest(mutation, variables);
|
|
243
236
|
}
|