simplify3x-connect 0.31.9 → 0.31.11
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 +18 -0
- package/assets/tessdata/eng.traineddata +0 -0
- package/dist/adapters/remoteMcp/adapter.d.ts +1 -1
- package/dist/adapters/remoteMcp/adapter.d.ts.map +1 -1
- package/dist/adapters/remoteMcp/adapter.js +6 -5
- package/dist/adapters/remoteMcp/adapter.js.map +1 -1
- package/dist/adapters/simplifyqa/adapter.d.ts +46 -2
- package/dist/adapters/simplifyqa/adapter.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/adapter.js +434 -23
- package/dist/adapters/simplifyqa/adapter.js.map +1 -1
- package/dist/adapters/simplifyqa/appProfile.d.ts +25 -0
- package/dist/adapters/simplifyqa/appProfile.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/appProfile.js +137 -0
- package/dist/adapters/simplifyqa/appProfile.js.map +1 -0
- package/dist/adapters/simplifyqa/executionFailures.d.ts +53 -11
- package/dist/adapters/simplifyqa/executionFailures.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/executionFailures.js +289 -46
- package/dist/adapters/simplifyqa/executionFailures.js.map +1 -1
- package/dist/adapters/simplifyqa/executionSources.d.ts +64 -0
- package/dist/adapters/simplifyqa/executionSources.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/executionSources.js +138 -0
- package/dist/adapters/simplifyqa/executionSources.js.map +1 -0
- package/dist/adapters/simplifyqa/failureAnalysis.d.ts +18 -1
- package/dist/adapters/simplifyqa/failureAnalysis.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureAnalysis.js +182 -10
- package/dist/adapters/simplifyqa/failureAnalysis.js.map +1 -1
- package/dist/adapters/simplifyqa/failureAnalysisCard.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureAnalysisCard.js +45 -19
- package/dist/adapters/simplifyqa/failureAnalysisCard.js.map +1 -1
- package/dist/adapters/simplifyqa/failureAnalysisRun.d.ts +8 -1
- package/dist/adapters/simplifyqa/failureAnalysisRun.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureAnalysisRun.js +108 -4
- package/dist/adapters/simplifyqa/failureAnalysisRun.js.map +1 -1
- package/dist/adapters/simplifyqa/failureAnalysisTypes.d.ts +65 -1
- package/dist/adapters/simplifyqa/failureAnalysisTypes.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureAnalysisTypes.js +12 -1
- package/dist/adapters/simplifyqa/failureAnalysisTypes.js.map +1 -1
- package/dist/adapters/simplifyqa/failureHistory.d.ts +64 -20
- package/dist/adapters/simplifyqa/failureHistory.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureHistory.js +88 -30
- package/dist/adapters/simplifyqa/failureHistory.js.map +1 -1
- package/dist/adapters/simplifyqa/failurePatterns.d.ts +11 -0
- package/dist/adapters/simplifyqa/failurePatterns.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failurePatterns.js +4 -3
- package/dist/adapters/simplifyqa/failurePatterns.js.map +1 -1
- package/dist/adapters/simplifyqa/failureReport.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureReport.js +8 -0
- package/dist/adapters/simplifyqa/failureReport.js.map +1 -1
- package/dist/adapters/simplifyqa/failureReportModel.d.ts +125 -1
- package/dist/adapters/simplifyqa/failureReportModel.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureReportModel.js +324 -4
- package/dist/adapters/simplifyqa/failureReportModel.js.map +1 -1
- package/dist/adapters/simplifyqa/failureReview.d.ts +1 -1
- package/dist/adapters/simplifyqa/failureReview.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureReview.js +44 -8
- package/dist/adapters/simplifyqa/failureReview.js.map +1 -1
- package/dist/adapters/simplifyqa/failureSuggest.d.ts +4 -2
- package/dist/adapters/simplifyqa/failureSuggest.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/failureSuggest.js +44 -14
- package/dist/adapters/simplifyqa/failureSuggest.js.map +1 -1
- package/dist/adapters/simplifyqa/failureTypes.d.ts +19 -0
- package/dist/adapters/simplifyqa/failureTypes.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/heal/apply.d.ts +3 -1
- package/dist/adapters/simplifyqa/heal/apply.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/heal/apply.js +5 -1
- package/dist/adapters/simplifyqa/heal/apply.js.map +1 -1
- package/dist/adapters/simplifyqa/heal/diagnose.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/heal/diagnose.js +14 -0
- package/dist/adapters/simplifyqa/heal/diagnose.js.map +1 -1
- package/dist/adapters/simplifyqa/heal/plan.d.ts +2 -0
- package/dist/adapters/simplifyqa/heal/plan.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/heal/plan.js +43 -0
- package/dist/adapters/simplifyqa/heal/plan.js.map +1 -1
- package/dist/adapters/simplifyqa/networkErrors.d.ts +11 -0
- package/dist/adapters/simplifyqa/networkErrors.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/networkErrors.js +108 -0
- package/dist/adapters/simplifyqa/networkErrors.js.map +1 -0
- package/dist/adapters/simplifyqa/outage.d.ts +41 -0
- package/dist/adapters/simplifyqa/outage.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/outage.js +108 -0
- package/dist/adapters/simplifyqa/outage.js.map +1 -0
- package/dist/adapters/simplifyqa/patternSplit.d.ts +32 -0
- package/dist/adapters/simplifyqa/patternSplit.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/patternSplit.js +79 -0
- package/dist/adapters/simplifyqa/patternSplit.js.map +1 -0
- package/dist/adapters/simplifyqa/screenText.d.ts +84 -0
- package/dist/adapters/simplifyqa/screenText.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/screenText.js +497 -0
- package/dist/adapters/simplifyqa/screenText.js.map +1 -0
- package/dist/adapters/simplifyqa/searchRegistry.d.ts.map +1 -1
- package/dist/adapters/simplifyqa/searchRegistry.js +22 -0
- package/dist/adapters/simplifyqa/searchRegistry.js.map +1 -1
- package/dist/adapters/types.d.ts +4 -1
- package/dist/adapters/types.d.ts.map +1 -1
- package/dist/cli.js +7 -1
- package/dist/cli.js.map +1 -1
- package/dist/domain/heal.d.ts +10 -0
- package/dist/domain/heal.d.ts.map +1 -1
- package/dist/domain/heal.js.map +1 -1
- package/dist/domain/types.d.ts +56 -0
- package/dist/domain/types.d.ts.map +1 -1
- package/dist/export/html.d.ts +26 -0
- package/dist/export/html.d.ts.map +1 -0
- package/dist/export/html.js +842 -0
- package/dist/export/html.js.map +1 -0
- package/dist/export/labelCompare.d.ts +36 -0
- package/dist/export/labelCompare.d.ts.map +1 -0
- package/dist/export/labelCompare.js +96 -0
- package/dist/export/labelCompare.js.map +1 -0
- package/dist/export/layout.d.ts +19 -10
- package/dist/export/layout.d.ts.map +1 -1
- package/dist/export/layout.js +40 -9
- package/dist/export/layout.js.map +1 -1
- package/dist/export/pdf.d.ts +31 -1
- package/dist/export/pdf.d.ts.map +1 -1
- package/dist/export/pdf.js +170 -34
- package/dist/export/pdf.js.map +1 -1
- package/dist/export/xlsx.d.ts +1 -1
- package/dist/export/xlsx.js +2 -2
- package/dist/export/xlsx.js.map +1 -1
- package/dist/initAgents.d.ts.map +1 -1
- package/dist/initAgents.js +28 -8
- package/dist/initAgents.js.map +1 -1
- package/dist/integration/actions.d.ts +85 -0
- package/dist/integration/actions.d.ts.map +1 -0
- package/dist/integration/actions.js +391 -0
- package/dist/integration/actions.js.map +1 -0
- package/dist/integration/apply.d.ts +105 -0
- package/dist/integration/apply.d.ts.map +1 -0
- package/dist/integration/apply.js +345 -0
- package/dist/integration/apply.js.map +1 -0
- package/dist/integration/clients.d.ts +129 -0
- package/dist/integration/clients.d.ts.map +1 -0
- package/dist/integration/clients.js +332 -0
- package/dist/integration/clients.js.map +1 -0
- package/dist/integration/defaults.d.ts +14 -0
- package/dist/integration/defaults.d.ts.map +1 -0
- package/dist/integration/defaults.js +61 -0
- package/dist/integration/defaults.js.map +1 -0
- package/dist/integration/dummyData.d.ts +11 -0
- package/dist/integration/dummyData.d.ts.map +1 -0
- package/dist/integration/dummyData.js +112 -0
- package/dist/integration/dummyData.js.map +1 -0
- package/dist/integration/normalize.d.ts +71 -0
- package/dist/integration/normalize.d.ts.map +1 -0
- package/dist/integration/normalize.js +194 -0
- package/dist/integration/normalize.js.map +1 -0
- package/dist/integration/setupCommand.d.ts +17 -0
- package/dist/integration/setupCommand.d.ts.map +1 -0
- package/dist/integration/setupCommand.js +126 -0
- package/dist/integration/setupCommand.js.map +1 -0
- package/dist/integration/types.d.ts +84 -0
- package/dist/integration/types.d.ts.map +1 -0
- package/dist/integration/types.js +2 -0
- package/dist/integration/types.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +15 -2
- package/dist/server.js.map +1 -1
- package/dist/tools/desktopRecordingMode.d.ts +27 -0
- package/dist/tools/desktopRecordingMode.d.ts.map +1 -0
- package/dist/tools/desktopRecordingMode.js +40 -0
- package/dist/tools/desktopRecordingMode.js.map +1 -0
- package/dist/tools/discovery.tools.d.ts.map +1 -1
- package/dist/tools/discovery.tools.js +159 -16
- package/dist/tools/discovery.tools.js.map +1 -1
- package/dist/tools/executionPlan.tools.d.ts.map +1 -1
- package/dist/tools/executionPlan.tools.js +9 -6
- package/dist/tools/executionPlan.tools.js.map +1 -1
- package/dist/tools/failure.tools.d.ts +10 -0
- package/dist/tools/failure.tools.d.ts.map +1 -1
- package/dist/tools/failure.tools.js +140 -18
- package/dist/tools/failure.tools.js.map +1 -1
- package/dist/tools/failureExport.tools.d.ts +1 -1
- package/dist/tools/failureExport.tools.d.ts.map +1 -1
- package/dist/tools/failureExport.tools.js +69 -26
- package/dist/tools/failureExport.tools.js.map +1 -1
- package/dist/tools/heal.tools.js +1 -1
- package/dist/tools/heal.tools.js.map +1 -1
- package/dist/tools/integration.tools.d.ts +16 -0
- package/dist/tools/integration.tools.d.ts.map +1 -0
- package/dist/tools/integration.tools.js +704 -0
- package/dist/tools/integration.tools.js.map +1 -0
- package/dist/tools/recording.tools.d.ts.map +1 -1
- package/dist/tools/recording.tools.js +12 -4
- package/dist/tools/recording.tools.js.map +1 -1
- package/dist/tools/recordingNames.d.ts +16 -0
- package/dist/tools/recordingNames.d.ts.map +1 -1
- package/dist/tools/recordingNames.js +31 -0
- package/dist/tools/recordingNames.js.map +1 -1
- package/dist/tools/storySync.tools.d.ts.map +1 -1
- package/dist/tools/storySync.tools.js +2 -1
- package/dist/tools/storySync.tools.js.map +1 -1
- package/dist/tools/testcase.tools.d.ts +13 -1
- package/dist/tools/testcase.tools.d.ts.map +1 -1
- package/dist/tools/testcase.tools.js +80 -13
- package/dist/tools/testcase.tools.js.map +1 -1
- package/dist/tools/verdictMemory.d.ts +55 -0
- package/dist/tools/verdictMemory.d.ts.map +1 -0
- package/dist/tools/verdictMemory.js +117 -0
- package/dist/tools/verdictMemory.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +6 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application profile: generic facts the client AI uses to infer the application's domain, plus
|
|
3
|
+
* validation / display of the domain the AI then states. No domain knowledge lives here.
|
|
4
|
+
*/
|
|
5
|
+
import type { FailureAnalysis } from './failureAnalysisTypes.js';
|
|
6
|
+
export type DomainProfile = {
|
|
7
|
+
name: string;
|
|
8
|
+
confidence: 'high' | 'medium' | 'low';
|
|
9
|
+
flows: string[];
|
|
10
|
+
terms: Record<string, string>;
|
|
11
|
+
assumptions?: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare function validateDomain(input: unknown): {
|
|
14
|
+
ok: true;
|
|
15
|
+
domain: DomainProfile;
|
|
16
|
+
} | {
|
|
17
|
+
ok: false;
|
|
18
|
+
error: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function domainLine(d: DomainProfile | undefined): string;
|
|
21
|
+
export declare function buildAppProfile(a: FailureAnalysis, opts?: {
|
|
22
|
+
maxLines?: number;
|
|
23
|
+
samples?: number;
|
|
24
|
+
}): string[];
|
|
25
|
+
//# sourceMappingURL=appProfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appProfile.d.ts","sourceRoot":"","sources":["../../../src/adapters/simplifyqa/appProfile.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAIjE,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACtC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAIF,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA8BjH;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAG/D;AAyBD,wBAAgB,eAAe,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,MAAM,EAAE,CA8DhH"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { maskWith } from './failureReport.js';
|
|
2
|
+
import { protectedValues } from './failureReportModel.js';
|
|
3
|
+
const isStr = (v) => typeof v === 'string';
|
|
4
|
+
export function validateDomain(input) {
|
|
5
|
+
const bad = (error) => ({ ok: false, error });
|
|
6
|
+
if (!input || typeof input !== 'object' || Array.isArray(input))
|
|
7
|
+
return bad('domain must be an object');
|
|
8
|
+
const o = input;
|
|
9
|
+
if (!isStr(o['name']) || o['name'].trim().length < 1 || o['name'].length > 80)
|
|
10
|
+
return bad('name must be 1..80 characters');
|
|
11
|
+
if (o['confidence'] !== 'high' && o['confidence'] !== 'medium' && o['confidence'] !== 'low') {
|
|
12
|
+
return bad("confidence must be 'high', 'medium' or 'low'");
|
|
13
|
+
}
|
|
14
|
+
const flows = o['flows'];
|
|
15
|
+
if (!Array.isArray(flows) || flows.length > 12 || !flows.every((f) => isStr(f) && f.length <= 80)) {
|
|
16
|
+
return bad('flows must be at most 12 strings of at most 80 characters');
|
|
17
|
+
}
|
|
18
|
+
const terms = o['terms'];
|
|
19
|
+
if (!terms || typeof terms !== 'object' || Array.isArray(terms))
|
|
20
|
+
return bad('terms must be an object');
|
|
21
|
+
const entries = Object.entries(terms);
|
|
22
|
+
if (entries.length > 30 || !entries.every(([k, v]) => k.length <= 80 && isStr(v) && v.length <= 160)) {
|
|
23
|
+
return bad('terms must be at most 30 entries (key <= 80, value <= 160 characters)');
|
|
24
|
+
}
|
|
25
|
+
const assumptions = o['assumptions'];
|
|
26
|
+
if (assumptions !== undefined && (!Array.isArray(assumptions) || assumptions.length > 8 || !assumptions.every(isStr))) {
|
|
27
|
+
return bad('assumptions must be at most 8 strings');
|
|
28
|
+
}
|
|
29
|
+
const domain = {
|
|
30
|
+
name: o['name'].trim(),
|
|
31
|
+
confidence: o['confidence'],
|
|
32
|
+
flows: flows,
|
|
33
|
+
terms: Object.fromEntries(entries),
|
|
34
|
+
...(assumptions ? { assumptions: assumptions } : {}),
|
|
35
|
+
};
|
|
36
|
+
return { ok: true, domain };
|
|
37
|
+
}
|
|
38
|
+
export function domainLine(d) {
|
|
39
|
+
if (!d || d.confidence === 'low')
|
|
40
|
+
return 'Domain: unknown (not stated, or low confidence).';
|
|
41
|
+
return `Domain (inferred by AI): ${d.name} (${d.confidence}) — ${d.flows.join(', ')} — correct it if wrong.`;
|
|
42
|
+
}
|
|
43
|
+
function hostOf(url) {
|
|
44
|
+
if (!url)
|
|
45
|
+
return undefined;
|
|
46
|
+
try {
|
|
47
|
+
const h = new URL(url).hostname.toLowerCase();
|
|
48
|
+
return h || undefined;
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function top(counts, n) {
|
|
55
|
+
return [...counts.entries()]
|
|
56
|
+
.sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0]))
|
|
57
|
+
.slice(0, n)
|
|
58
|
+
.map(([k, c]) => `${k}×${c}`)
|
|
59
|
+
.join(', ');
|
|
60
|
+
}
|
|
61
|
+
const bump = (m, k) => {
|
|
62
|
+
const key = k?.trim();
|
|
63
|
+
if (key)
|
|
64
|
+
m.set(key, (m.get(key) ?? 0) + 1);
|
|
65
|
+
};
|
|
66
|
+
export function buildAppProfile(a, opts = {}) {
|
|
67
|
+
const maxLines = Math.max(1, opts.maxLines ?? 40);
|
|
68
|
+
const samples = Math.max(0, opts.samples ?? 18);
|
|
69
|
+
const mask = maskWith(protectedValues(a));
|
|
70
|
+
const m = (s) => (mask(s) ?? '').replace(/\s+/g, ' ').trim();
|
|
71
|
+
const header = 'Application profile (facts for inferring the domain — not a verdict):';
|
|
72
|
+
const tail = [];
|
|
73
|
+
// (2) execution sources
|
|
74
|
+
const sources = a.executions
|
|
75
|
+
.map((e) => [e.type, e.executionTypeCode ?? e.code, e.executionTypeName].filter(Boolean).map((x) => m(x)).join(' '))
|
|
76
|
+
.filter(Boolean);
|
|
77
|
+
if (sources.length)
|
|
78
|
+
tail.push(`Execution sources: ${[...new Set(sources)].slice(0, 10).join('; ')}`);
|
|
79
|
+
// (3) suites with failed counts
|
|
80
|
+
const suites = new Map();
|
|
81
|
+
const actions = new Map();
|
|
82
|
+
const objects = new Map();
|
|
83
|
+
const hosts = new Set();
|
|
84
|
+
const sqaHosts = new Set(a.executions.map((e) => hostOf(e.reportUrl)).filter((h) => !!h));
|
|
85
|
+
const addHost = (u) => {
|
|
86
|
+
const h = hostOf(u);
|
|
87
|
+
if (h && !sqaHosts.has(h))
|
|
88
|
+
hosts.add(h);
|
|
89
|
+
};
|
|
90
|
+
for (const e of a.executions)
|
|
91
|
+
addHost(e.reportUrl);
|
|
92
|
+
for (const t of a.testcases) {
|
|
93
|
+
bump(suites, m(t.suite?.name ?? t.sourceCode ?? '(no suite)'));
|
|
94
|
+
for (const { it } of t.failedIterations) {
|
|
95
|
+
const f = it.focus;
|
|
96
|
+
if (!f)
|
|
97
|
+
continue;
|
|
98
|
+
bump(actions, f.actionName ? m(f.actionName) : undefined);
|
|
99
|
+
bump(objects, f.objectName ? m(f.objectName) : undefined);
|
|
100
|
+
for (const s of f.screenshots ?? [])
|
|
101
|
+
addHost(s.absoluteUrl);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (suites.size)
|
|
105
|
+
tail.push(`Suites / sources (failed test cases): ${top(suites, 10)}`);
|
|
106
|
+
if (actions.size)
|
|
107
|
+
tail.push(`Actions in failing steps: ${top(actions, 10)}`);
|
|
108
|
+
if (objects.size)
|
|
109
|
+
tail.push(`Objects in failing steps: ${top(objects, 10)}`);
|
|
110
|
+
if (hosts.size)
|
|
111
|
+
tail.push(`Application hosts: ${[...hosts].slice(0, 10).join(', ')}`);
|
|
112
|
+
// (4) samples spread across suites (round-robin)
|
|
113
|
+
const room = Math.max(0, maxLines - 1 - tail.length - 1);
|
|
114
|
+
const want = Math.min(samples, room);
|
|
115
|
+
const bySuite = new Map();
|
|
116
|
+
for (const t of a.testcases) {
|
|
117
|
+
if (!t.code && !t.name)
|
|
118
|
+
continue;
|
|
119
|
+
const line = `${m(t.code)} · ${m(t.name)}${t.description ? ` — ${m(t.description).slice(0, 100)}` : ''}`;
|
|
120
|
+
const k = t.suite?.name ?? t.sourceCode ?? '';
|
|
121
|
+
const arr = bySuite.get(k) ?? [];
|
|
122
|
+
arr.push(line);
|
|
123
|
+
bySuite.set(k, arr);
|
|
124
|
+
}
|
|
125
|
+
const picked = [];
|
|
126
|
+
const queues = [...bySuite.values()];
|
|
127
|
+
for (let i = 0; picked.length < want && queues.some((q) => i < q.length); i++) {
|
|
128
|
+
for (const q of queues)
|
|
129
|
+
if (i < q.length && picked.length < want)
|
|
130
|
+
picked.push(q[i]);
|
|
131
|
+
}
|
|
132
|
+
const out = [header, ...tail];
|
|
133
|
+
if (picked.length)
|
|
134
|
+
out.push('Sample test cases:', ...picked);
|
|
135
|
+
return out.slice(0, maxLines);
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=appProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appProfile.js","sourceRoot":"","sources":["../../../src/adapters/simplifyqa/appProfile.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAU1D,MAAM,KAAK,GAAG,CAAC,CAAU,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC;AAEjE,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,MAAM,GAAG,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAc,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/D,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxG,MAAM,CAAC,GAAG,KAAgC,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,EAAE;QAAE,O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,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACtB,CAAC;IACD,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9E,KAAK,MAAM,CAAC,IAAI,MAAM;YAAE,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,IAAI;gBAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;IACvF,CAAC;IAED,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9B,IAAI,MAAM,CAAC,MAAM;QAAE,GAAG,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,MAAM,CAAC,CAAC;IAC7D,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { QaHttp } from '../http.js';
|
|
9
9
|
import { type HistoryCache, type StepRowsCache, type StepComparison, type TestcaseHistory } from './failureHistory.js';
|
|
10
|
+
import { type Mask } from './failureReport.js';
|
|
10
11
|
import type { ExecutionFailureContext, ExecutionFailureInput, FailureIteration, FailureStep } from './failureTypes.js';
|
|
11
12
|
/** Log lines kept per failed step by default — the tail nearest the failure (ai-assistant FAILURE_LOG_TAIL). */
|
|
12
13
|
export declare const FAILURE_LOG_TAIL = 30;
|
|
@@ -21,6 +22,8 @@ type StepOptions = {
|
|
|
21
22
|
includeLogs: boolean;
|
|
22
23
|
maxLogLines: number;
|
|
23
24
|
includeScreenshots: boolean;
|
|
25
|
+
/** The run's mask: applied to network paths BEFORE they are cut (networkLogs are skipped by maskRow). */
|
|
26
|
+
mask?: Mask;
|
|
24
27
|
};
|
|
25
28
|
/** Longest API response body kept for the passed step of a comparison (stored with the analysis). */
|
|
26
29
|
export declare const PASSED_API_BODY_CHARS = 4000;
|
|
@@ -34,6 +37,15 @@ export declare function compactApiData(v: unknown): unknown;
|
|
|
34
37
|
* the template before replacement when there was one, then the object's locator fields.
|
|
35
38
|
*/
|
|
36
39
|
export declare function locatorOf(logs: string[], row: any): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Values the run stored at run time (runtime key) that are record references: the value of a
|
|
42
|
+
* runtime parameter whose NAME says reference (REF_NAME_RE), or a value with a banking reference
|
|
43
|
+
* shape (BANK_REF_RE). Never a parameter named like a credential, a protected value, a token-like
|
|
44
|
+
* value (> 24 chars, or mixed case with digits), and only values the mask leaves unchanged.
|
|
45
|
+
*/
|
|
46
|
+
export declare function referencesOf(steps: FailureStep[], mask: Mask): string[];
|
|
47
|
+
/** Longest wait / time-out the log lines state, in ms (`timeout 45000`, `Max timeout: 90000 ms`, `waited 30 s`); undefined when none. */
|
|
48
|
+
export declare function waitMsOf(lines: string[]): number | undefined;
|
|
37
49
|
/** One raw step-result row → the failure-analysis step (cleaned, tailed logs; cause; category). */
|
|
38
50
|
export declare function normalizeFailureStep(s: any, base: string, opts: StepOptions): FailureStep;
|
|
39
51
|
/** What the analysis needs from the adapter. */
|
|
@@ -45,7 +57,11 @@ export type ExecutionFailureDeps = {
|
|
|
45
57
|
fetchExecDoc: (executionId: number, projectId: number) => Promise<any>;
|
|
46
58
|
/** The latest standalone (TC) / parent (SUITE, EXECUTIONPLAN) execution id of an entity. */
|
|
47
59
|
latestExecutionOf: (kind: 'TC' | 'SUITE' | 'EXECUTIONPLAN', id: string) => Promise<string | null>;
|
|
60
|
+
/** Wait before the one retry of a step-result read that got HTTP 502/503/504 (default STEP_READ_RETRY_MS). */
|
|
61
|
+
retryDelayMs?: number;
|
|
48
62
|
};
|
|
63
|
+
/** Wait before retrying a step-result read that hit a gateway error. */
|
|
64
|
+
export declare const STEP_READ_RETRY_MS = 1500;
|
|
49
65
|
/**
|
|
50
66
|
* A failure screenshot as base64, for returning inline. Only artifacts on the connected SQA host
|
|
51
67
|
* are fetched (with the SQA bearer token); anything else, anything over `maxBytes`, or anything
|
|
@@ -70,20 +86,37 @@ export declare class ExecutionFailureAnalysis {
|
|
|
70
86
|
compareWithLastPass(it: FailureIteration, history: TestcaseHistory, executionItemId: string, rowsCache?: StepRowsCache): Promise<StepComparison | null>;
|
|
71
87
|
/**
|
|
72
88
|
* History of each failed test case of `ctx`, searched across EVERY execution of the test case
|
|
73
|
-
* (standalone, any suite, any plan) that ran before `ctx.execution
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
89
|
+
* (standalone, any suite, any plan) that ran before `ctx.execution`, with small searches on
|
|
90
|
+
* `/exec/report/search`:
|
|
91
|
+
* - the LAST PASS: the newest PASSED run, one row; when that row is not earlier history it pages
|
|
92
|
+
* on until a real earlier pass is found (or there is none) — the last pass is never given up;
|
|
93
|
+
* - FAILING SINCE: the oldest FAILED run after that pass (every earlier failure when it never
|
|
94
|
+
* passed), one row, counted by the search's totalCount — which also tells "never passed" from
|
|
95
|
+
* "first execution".
|
|
96
|
+
* `cache` is shared by one analysis. A failed pass search makes that test case `unknown` — never
|
|
97
|
+
* first-execution / never-passed.
|
|
79
98
|
*/
|
|
80
99
|
failureHistory(ctx: ExecutionFailureContext, cache?: HistoryCache): Promise<Map<string, TestcaseHistory>>;
|
|
81
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* The last pass before `bound.before`: the newest PASSED run (one row). When that row is not
|
|
102
|
+
* earlier history (today's run, a run that ended after this execution started), the passed runs
|
|
103
|
+
* are paged until a real earlier pass is found or none are left — capped at MAX_PASSED_PAGES
|
|
104
|
+
* (hitting the cap without a pass reports `exhausted`: the history is then `unknown`).
|
|
105
|
+
*/
|
|
106
|
+
private lastPassOf;
|
|
107
|
+
/**
|
|
108
|
+
* The first run of a search (in its sort order) that is earlier history (and `also`): one row
|
|
109
|
+
* first; when that row is not (a run that ended once this execution had started, one of today's
|
|
110
|
+
* runs), pages of PASSED_PAGE_SIZE until one is — capped at MAX_PASSED_PAGES (`exhausted`).
|
|
111
|
+
* `skipped`: rows before it that were not earlier history; `total`: the search's totalCount.
|
|
112
|
+
*/
|
|
113
|
+
private firstEarlier;
|
|
114
|
+
/** One run search per (test case, status, bounds, sort, page) per analysis. */
|
|
82
115
|
private runsOf;
|
|
83
|
-
/** `/exec/report/search` (executionRuns): runs of one test case
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
116
|
+
/** `/exec/report/search` (executionRuns): runs of one test case with `after < executionId <
|
|
117
|
+
* before` (integer operators — each search field is its own AND clause), parent-execution copies
|
|
118
|
+
* and deleted rows excluded by the server, sorted by endTime, `startIndex` = page index. No date
|
|
119
|
+
* comparison is sent: the server's search treats a string value as an exact match. */
|
|
87
120
|
private searchRuns;
|
|
88
121
|
/** An execution doc, read once per analysis; null when it cannot be read. */
|
|
89
122
|
private executionDoc;
|
|
@@ -100,6 +133,9 @@ export declare class ExecutionFailureAnalysis {
|
|
|
100
133
|
/** Test case names and version names for the failure table — one search each, best-effort (a
|
|
101
134
|
* failed lookup leaves the column empty, never the analysis). */
|
|
102
135
|
private nameEntries;
|
|
136
|
+
/** Each entry's source (Test Plan / suite / user story / module / standalone), names resolved as
|
|
137
|
+
* the Reports screen resolves them. Never throws: an unknown name reads "<Label> <id>". */
|
|
138
|
+
private sourceEntries;
|
|
103
139
|
/** Rows of a TM search by id, one request; [] for no ids. */
|
|
104
140
|
private searchByIds;
|
|
105
141
|
/** One failed run → its failure focus. A run whose steps cannot be read is still returned (with
|
|
@@ -110,6 +146,12 @@ export declare class ExecutionFailureAnalysis {
|
|
|
110
146
|
/** Every step-result row of one run, in report order — control-flow and marker rows included
|
|
111
147
|
* (the FLOW needs them; failure detection uses `keepStepRows`). */
|
|
112
148
|
private fetchStepRows;
|
|
149
|
+
/**
|
|
150
|
+
* The step rows of a passed run for a comparison. When none are stored under the run's own
|
|
151
|
+
* execution id (the rows were kept under another execution — a re-run or a parent copy), the run's
|
|
152
|
+
* rows are read by run id alone; rows of several executions are narrowed to one (the lowest id).
|
|
153
|
+
*/
|
|
154
|
+
private passedRunRows;
|
|
113
155
|
/** The test case's written steps for one version (what it was going to do), or [] when unreadable. */
|
|
114
156
|
private fetchWrittenSteps;
|
|
115
157
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executionFailures.d.ts","sourceRoot":"","sources":["../../../src/adapters/simplifyqa/executionFailures.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAQzC,OAAO,
|
|
1
|
+
{"version":3,"file":"executionFailures.d.ts","sourceRoot":"","sources":["../../../src/adapters/simplifyqa/executionFailures.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAQzC,OAAO,EAG8C,KAAK,YAAY,EAAE,KAAK,aAAa,EAAyB,KAAK,cAAc,EAAE,KAAK,eAAe,EAC3J,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAmC,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAKhF,OAAO,KAAK,EACV,uBAAuB,EAAE,qBAAqB,EAA8C,gBAAgB,EAC5G,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAE3B,gHAAgH;AAChH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAczC,6GAA6G;AAC7G,eAAO,MAAM,cAAc,kKACiI,CAAC;AAC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