qa360 2.0.12 → 2.1.0
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/dist/commands/ai.js +26 -14
- package/dist/commands/ask.d.ts +75 -23
- package/dist/commands/ask.js +413 -265
- package/dist/commands/crawl.d.ts +24 -0
- package/dist/commands/crawl.js +121 -0
- package/dist/commands/history.js +38 -3
- package/dist/commands/init.d.ts +89 -95
- package/dist/commands/init.js +282 -200
- package/dist/commands/run.d.ts +1 -0
- package/dist/core/adapters/playwright-native-adapter.d.ts +121 -0
- package/dist/core/adapters/playwright-native-adapter.js +339 -0
- package/dist/core/adapters/playwright-ui.d.ts +83 -7
- package/dist/core/adapters/playwright-ui.js +525 -59
- package/dist/core/artifacts/index.d.ts +6 -0
- package/dist/core/artifacts/index.js +6 -0
- package/dist/core/artifacts/ui-artifacts.d.ts +133 -0
- package/dist/core/artifacts/ui-artifacts.js +304 -0
- package/dist/core/assertions/engine.d.ts +51 -0
- package/dist/core/assertions/engine.js +530 -0
- package/dist/core/assertions/index.d.ts +11 -0
- package/dist/core/assertions/index.js +11 -0
- package/dist/core/assertions/types.d.ts +121 -0
- package/dist/core/assertions/types.js +37 -0
- package/dist/core/crawler/index.d.ts +57 -0
- package/dist/core/crawler/index.js +281 -0
- package/dist/core/crawler/journey-generator.d.ts +49 -0
- package/dist/core/crawler/journey-generator.js +412 -0
- package/dist/core/crawler/page-analyzer.d.ts +88 -0
- package/dist/core/crawler/page-analyzer.js +709 -0
- package/dist/core/crawler/selector-generator.d.ts +34 -0
- package/dist/core/crawler/selector-generator.js +240 -0
- package/dist/core/crawler/types.d.ts +353 -0
- package/dist/core/crawler/types.js +6 -0
- package/dist/core/generation/crawler-pack-generator.d.ts +44 -0
- package/dist/core/generation/crawler-pack-generator.js +231 -0
- package/dist/core/generation/index.d.ts +2 -0
- package/dist/core/generation/index.js +2 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.js +13 -0
- package/dist/core/parallel/index.d.ts +6 -0
- package/dist/core/parallel/index.js +6 -0
- package/dist/core/parallel/parallel-runner.d.ts +107 -0
- package/dist/core/parallel/parallel-runner.js +192 -0
- package/dist/core/reporting/html-reporter.d.ts +119 -0
- package/dist/core/reporting/html-reporter.js +737 -0
- package/dist/core/reporting/index.d.ts +6 -0
- package/dist/core/reporting/index.js +6 -0
- package/dist/core/runner/phase3-runner.js +5 -1
- package/dist/core/types/pack-v1.d.ts +90 -0
- package/dist/core/vault/cas.d.ts +5 -1
- package/dist/core/vault/cas.js +6 -0
- package/dist/core/visual/index.d.ts +6 -0
- package/dist/core/visual/index.js +6 -0
- package/dist/core/visual/visual-regression.d.ts +113 -0
- package/dist/core/visual/visual-regression.js +236 -0
- package/dist/index.js +6 -2
- package/examples/README.md +38 -0
- package/examples/accessibility.yml +39 -16
- package/examples/api-basic.yml +19 -14
- package/examples/complete.yml +134 -42
- package/examples/crawler.yml +38 -0
- package/examples/fullstack.yml +66 -31
- package/examples/security.yml +47 -15
- package/examples/ui-advanced.yml +49 -0
- package/examples/ui-basic.yml +16 -12
- package/package.json +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QA360 HTML Reporter
|
|
3
|
+
*
|
|
4
|
+
* Generates interactive HTML reports with embedded screenshots,
|
|
5
|
+
* videos, and traces for UI test results.
|
|
6
|
+
*/
|
|
7
|
+
export interface ReportData {
|
|
8
|
+
title: string;
|
|
9
|
+
summary: {
|
|
10
|
+
total: number;
|
|
11
|
+
passed: number;
|
|
12
|
+
failed: number;
|
|
13
|
+
skipped: number;
|
|
14
|
+
duration: number;
|
|
15
|
+
timestamp: string;
|
|
16
|
+
};
|
|
17
|
+
tests: TestReport[];
|
|
18
|
+
artifacts?: {
|
|
19
|
+
screenshots: ReportScreenshotArtifact[];
|
|
20
|
+
videos: ReportVideoArtifact[];
|
|
21
|
+
traces: ReportTraceArtifact[];
|
|
22
|
+
};
|
|
23
|
+
environment?: {
|
|
24
|
+
browser?: string;
|
|
25
|
+
platform?: string;
|
|
26
|
+
nodeVersion?: string;
|
|
27
|
+
qa360Version?: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface TestReport {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
status: 'passed' | 'failed' | 'skipped';
|
|
34
|
+
duration: number;
|
|
35
|
+
error?: string;
|
|
36
|
+
steps: StepReport[];
|
|
37
|
+
artifacts?: {
|
|
38
|
+
screenshots: string[];
|
|
39
|
+
video?: string;
|
|
40
|
+
trace?: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface StepReport {
|
|
44
|
+
name: string;
|
|
45
|
+
action: string;
|
|
46
|
+
selector?: string;
|
|
47
|
+
value?: string;
|
|
48
|
+
status: 'passed' | 'failed' | 'skipped';
|
|
49
|
+
duration: number;
|
|
50
|
+
error?: string;
|
|
51
|
+
screenshot?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ReportScreenshotArtifact {
|
|
54
|
+
path: string;
|
|
55
|
+
timestamp: string;
|
|
56
|
+
type: 'before' | 'after' | 'error' | 'initial';
|
|
57
|
+
stepIndex?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface ReportVideoArtifact {
|
|
60
|
+
path: string;
|
|
61
|
+
duration: number;
|
|
62
|
+
}
|
|
63
|
+
export interface ReportTraceArtifact {
|
|
64
|
+
path: string;
|
|
65
|
+
format: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* HTML Report Generator
|
|
69
|
+
*/
|
|
70
|
+
export declare class HTMLReporter {
|
|
71
|
+
/**
|
|
72
|
+
* Generate HTML report from test data
|
|
73
|
+
*/
|
|
74
|
+
static generate(data: ReportData, outputPath: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* Generate HTML content
|
|
77
|
+
*/
|
|
78
|
+
private static generateHTML;
|
|
79
|
+
/**
|
|
80
|
+
* Get CSS styles
|
|
81
|
+
*/
|
|
82
|
+
private static getCSS;
|
|
83
|
+
/**
|
|
84
|
+
* Generate header HTML
|
|
85
|
+
*/
|
|
86
|
+
private static getHeader;
|
|
87
|
+
/**
|
|
88
|
+
* Generate summary HTML
|
|
89
|
+
*/
|
|
90
|
+
private static getSummary;
|
|
91
|
+
/**
|
|
92
|
+
* Generate tests HTML
|
|
93
|
+
*/
|
|
94
|
+
private static getTests;
|
|
95
|
+
/**
|
|
96
|
+
* Generate single test card HTML
|
|
97
|
+
*/
|
|
98
|
+
private static getTestCard;
|
|
99
|
+
/**
|
|
100
|
+
* Generate step HTML
|
|
101
|
+
*/
|
|
102
|
+
private static getStep;
|
|
103
|
+
/**
|
|
104
|
+
* Generate artifacts section HTML
|
|
105
|
+
*/
|
|
106
|
+
private static getArtifacts;
|
|
107
|
+
/**
|
|
108
|
+
* Generate JavaScript
|
|
109
|
+
*/
|
|
110
|
+
private static getJavaScript;
|
|
111
|
+
/**
|
|
112
|
+
* Escape HTML special characters
|
|
113
|
+
*/
|
|
114
|
+
private static escapeHTML;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Generate HTML report from Playwright test results
|
|
118
|
+
*/
|
|
119
|
+
export declare function generateHTMLReport(title: string, results: any[], outputPath: string, artifacts?: any): void;
|