@fasttest-ai/qa-agent 0.4.3 → 1.0.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/README.md +1 -27
- package/bin/qa-agent.js +4 -0
- package/dist/cli.js +33 -194
- package/dist/index.js +64 -1906
- package/dist/install.js +39 -570
- package/package.json +5 -2
- package/dist/actions.d.ts +0 -41
- package/dist/actions.js +0 -224
- package/dist/actions.js.map +0 -1
- package/dist/browser.d.ts +0 -77
- package/dist/browser.js +0 -312
- package/dist/browser.js.map +0 -1
- package/dist/cli.d.ts +0 -19
- package/dist/cli.js.map +0 -1
- package/dist/cloud.d.ts +0 -302
- package/dist/cloud.js +0 -261
- package/dist/cloud.js.map +0 -1
- package/dist/config.d.ts +0 -21
- package/dist/config.js +0 -49
- package/dist/config.js.map +0 -1
- package/dist/healer.d.ts +0 -32
- package/dist/healer.js +0 -316
- package/dist/healer.js.map +0 -1
- package/dist/index.d.ts +0 -13
- package/dist/index.js.map +0 -1
- package/dist/install.d.ts +0 -11
- package/dist/install.js.map +0 -1
- package/dist/runner.d.ts +0 -90
- package/dist/runner.js +0 -700
- package/dist/runner.js.map +0 -1
- package/dist/variables.d.ts +0 -30
- package/dist/variables.js +0 -104
- package/dist/variables.js.map +0 -1
package/dist/runner.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test execution runner — executes test cases locally via Playwright
|
|
3
|
-
* and reports results back to the Cloud.
|
|
4
|
-
*
|
|
5
|
-
* Flow:
|
|
6
|
-
* 1. Cloud returns test cases (steps + assertions) from POST /run
|
|
7
|
-
* 2. Runner executes each test case sequentially in the browser
|
|
8
|
-
* 3. On selector-based failures, attempts self-healing
|
|
9
|
-
* 4. After each test case, POST results back to Cloud
|
|
10
|
-
* 5. When done, POST /complete to finalize the execution
|
|
11
|
-
*/
|
|
12
|
-
import { BrowserManager } from "./browser.js";
|
|
13
|
-
import { CloudClient } from "./cloud.js";
|
|
14
|
-
export interface RunOptions {
|
|
15
|
-
suiteId: string;
|
|
16
|
-
environmentId?: string;
|
|
17
|
-
testCaseIds?: string[];
|
|
18
|
-
appUrlOverride?: string;
|
|
19
|
-
/** When true, stop on first failure with diagnostic snapshot for AI intervention. */
|
|
20
|
-
aiFallback?: boolean;
|
|
21
|
-
/** Playwright device name for mobile/tablet emulation (e.g. "iPhone 15", "Pixel 7"). */
|
|
22
|
-
device?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface RunSummary {
|
|
25
|
-
execution_id: string;
|
|
26
|
-
status: string;
|
|
27
|
-
total: number;
|
|
28
|
-
passed: number;
|
|
29
|
-
failed: number;
|
|
30
|
-
skipped: number;
|
|
31
|
-
duration_ms: number;
|
|
32
|
-
results: TestCaseResult[];
|
|
33
|
-
healed: HealedStep[];
|
|
34
|
-
/** Present when aiFallback is enabled and a step failed — contains context for AI intervention. */
|
|
35
|
-
ai_fallback?: AiFallbackContext;
|
|
36
|
-
}
|
|
37
|
-
export interface AiFallbackContext {
|
|
38
|
-
test_case_id: string;
|
|
39
|
-
test_case_name: string;
|
|
40
|
-
step_index: number;
|
|
41
|
-
step: Record<string, unknown>;
|
|
42
|
-
intent?: string;
|
|
43
|
-
error: string;
|
|
44
|
-
page_url: string;
|
|
45
|
-
snapshot: Record<string, unknown>;
|
|
46
|
-
}
|
|
47
|
-
interface TestCaseResult {
|
|
48
|
-
id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
status: "passed" | "failed" | "skipped";
|
|
51
|
-
duration_ms: number;
|
|
52
|
-
error?: string;
|
|
53
|
-
step_results: StepResult[];
|
|
54
|
-
retry_attempts?: number;
|
|
55
|
-
}
|
|
56
|
-
interface StepResult {
|
|
57
|
-
step_index: number;
|
|
58
|
-
action: string;
|
|
59
|
-
success: boolean;
|
|
60
|
-
error?: string;
|
|
61
|
-
duration_ms: number;
|
|
62
|
-
screenshot_url?: string;
|
|
63
|
-
healed?: boolean;
|
|
64
|
-
heal_details?: {
|
|
65
|
-
original_selector: string;
|
|
66
|
-
new_selector: string;
|
|
67
|
-
strategy: string;
|
|
68
|
-
confidence: number;
|
|
69
|
-
};
|
|
70
|
-
/** Diagnostic snapshot captured on failure for AI fallback. */
|
|
71
|
-
ai_context?: {
|
|
72
|
-
intent?: string;
|
|
73
|
-
page_url: string;
|
|
74
|
-
snapshot: Record<string, unknown>;
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
export interface HealedStep {
|
|
78
|
-
test_case_id: string;
|
|
79
|
-
test_case: string;
|
|
80
|
-
step_index: number;
|
|
81
|
-
original_selector: string;
|
|
82
|
-
new_selector: string;
|
|
83
|
-
strategy: string;
|
|
84
|
-
confidence: number;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Execute a full test suite run.
|
|
88
|
-
*/
|
|
89
|
-
export declare function executeRun(browserMgr: BrowserManager, cloud: CloudClient, options: RunOptions, consoleLogs: string[]): Promise<RunSummary>;
|
|
90
|
-
export {};
|