@testomatio/reporter 1.6.17-beta.2-tls-fix → 1.6.17
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/lib/adapter/webdriver.js +2 -0
- package/lib/pipe/testomatio.js +8 -8
- package/lib/uploader.js +9 -4
- package/package.json +1 -1
- package/lib/adapter/codecept.d.ts +0 -2
- package/lib/adapter/cucumber/current.d.ts +0 -14
- package/lib/adapter/cucumber/legacy.d.ts +0 -0
- package/lib/adapter/cucumber.d.ts +0 -2
- package/lib/adapter/cypress-plugin/index.d.ts +0 -2
- package/lib/adapter/jasmine.d.ts +0 -11
- package/lib/adapter/jest.d.ts +0 -13
- package/lib/adapter/mocha.d.ts +0 -2
- package/lib/adapter/nightwatch.d.ts +0 -4
- package/lib/adapter/nightwatch.js +0 -75
- package/lib/adapter/playwright.d.ts +0 -14
- package/lib/adapter/vitest.d.ts +0 -35
- package/lib/adapter/webdriver.d.ts +0 -24
- package/lib/bin/cli.d.ts +0 -2
- package/lib/bin/reportXml.d.ts +0 -2
- package/lib/bin/startTest.d.ts +0 -2
- package/lib/bin/uploadArtifacts.d.ts +0 -2
- package/lib/client.d.ts +0 -76
- package/lib/config.d.ts +0 -1
- package/lib/constants.d.ts +0 -25
- package/lib/data-storage.d.ts +0 -34
- package/lib/junit-adapter/adapter.d.ts +0 -9
- package/lib/junit-adapter/csharp.d.ts +0 -5
- package/lib/junit-adapter/index.d.ts +0 -3
- package/lib/junit-adapter/java.d.ts +0 -5
- package/lib/junit-adapter/javascript.d.ts +0 -4
- package/lib/junit-adapter/python.d.ts +0 -5
- package/lib/junit-adapter/ruby.d.ts +0 -4
- package/lib/output.d.ts +0 -11
- package/lib/package.json +0 -3
- package/lib/pipe/bitbucket.d.ts +0 -23
- package/lib/pipe/csv.d.ts +0 -47
- package/lib/pipe/debug.d.ts +0 -29
- package/lib/pipe/github.d.ts +0 -30
- package/lib/pipe/gitlab.d.ts +0 -23
- package/lib/pipe/html.d.ts +0 -35
- package/lib/pipe/index.d.ts +0 -1
- package/lib/pipe/testomatio.d.ts +0 -70
- package/lib/reporter-functions.d.ts +0 -34
- package/lib/reporter.d.ts +0 -232
- package/lib/services/artifacts.d.ts +0 -33
- package/lib/services/index.d.ts +0 -9
- package/lib/services/key-values.d.ts +0 -27
- package/lib/services/logger.d.ts +0 -64
- package/lib/uploader.d.ts +0 -60
- package/lib/utils/pipe_utils.d.ts +0 -41
- package/lib/utils/utils.d.ts +0 -45
- package/lib/xmlReader.d.ts +0 -92
package/lib/pipe/debug.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export class DebugPipe {
|
|
2
|
-
constructor(params: any, store: any);
|
|
3
|
-
params: any;
|
|
4
|
-
store: any;
|
|
5
|
-
isEnabled: boolean;
|
|
6
|
-
batch: {
|
|
7
|
-
isEnabled: any;
|
|
8
|
-
intervalFunction: any;
|
|
9
|
-
intervalTime: number;
|
|
10
|
-
tests: any[];
|
|
11
|
-
batchIndex: number;
|
|
12
|
-
};
|
|
13
|
-
logFilePath: string;
|
|
14
|
-
testomatioEnvVars: {};
|
|
15
|
-
batchUpload(): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Logs data to a file if logging is enabled.
|
|
18
|
-
*
|
|
19
|
-
* @param {Object} logData - The data to be logged.
|
|
20
|
-
* @returns {Promise<void>} A promise that resolves when the log data has been appended to the file.
|
|
21
|
-
*/
|
|
22
|
-
logToFile(logData: any): Promise<void>;
|
|
23
|
-
lastActionTimestamp: number;
|
|
24
|
-
prepareRun(opts: any): Promise<any[]>;
|
|
25
|
-
createRun(params?: {}): Promise<{}>;
|
|
26
|
-
addTest(data: any): Promise<void>;
|
|
27
|
-
finishRun(params: any): Promise<void>;
|
|
28
|
-
toString(): string;
|
|
29
|
-
}
|
package/lib/pipe/github.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export default GitHubPipe;
|
|
2
|
-
export type Pipe = import("../../types/types.js").Pipe;
|
|
3
|
-
export type TestData = import("../../types/types.js").TestData;
|
|
4
|
-
/**
|
|
5
|
-
* @typedef {import('../../types/types.js').Pipe} Pipe
|
|
6
|
-
* @typedef {import('../../types/types.js').TestData} TestData
|
|
7
|
-
* @class GitHubPipe
|
|
8
|
-
* @implements {Pipe}
|
|
9
|
-
*/
|
|
10
|
-
declare class GitHubPipe implements Pipe {
|
|
11
|
-
constructor(params: any, store?: {});
|
|
12
|
-
isEnabled: boolean;
|
|
13
|
-
store: {};
|
|
14
|
-
tests: any[];
|
|
15
|
-
token: any;
|
|
16
|
-
ref: string;
|
|
17
|
-
repo: string;
|
|
18
|
-
jobKey: string;
|
|
19
|
-
hiddenCommentData: string;
|
|
20
|
-
issue: number;
|
|
21
|
-
start: Date;
|
|
22
|
-
prepareRun(): Promise<void>;
|
|
23
|
-
createRun(): Promise<void>;
|
|
24
|
-
addTest(test: any): void;
|
|
25
|
-
finishRun(runParams: any): Promise<void>;
|
|
26
|
-
octokit: import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.js").RestEndpointMethods & import("@octokit/plugin-rest-endpoint-methods").Api & {
|
|
27
|
-
paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
|
|
28
|
-
};
|
|
29
|
-
toString(): string;
|
|
30
|
-
}
|
package/lib/pipe/gitlab.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default GitLabPipe;
|
|
2
|
-
export type Pipe = import("../../types/types.js").Pipe;
|
|
3
|
-
export type TestData = import("../../types/types.js").TestData;
|
|
4
|
-
/**
|
|
5
|
-
* @class GitLabPipe
|
|
6
|
-
* @typedef {import('../../types/types.js').Pipe} Pipe
|
|
7
|
-
* @typedef {import('../../types/types.js').TestData} TestData
|
|
8
|
-
*/
|
|
9
|
-
declare class GitLabPipe {
|
|
10
|
-
constructor(params: any, store?: {});
|
|
11
|
-
isEnabled: boolean;
|
|
12
|
-
ENV: NodeJS.ProcessEnv;
|
|
13
|
-
store: {};
|
|
14
|
-
tests: any[];
|
|
15
|
-
token: any;
|
|
16
|
-
hiddenCommentData: string;
|
|
17
|
-
prepareRun(): Promise<void>;
|
|
18
|
-
createRun(): Promise<void>;
|
|
19
|
-
addTest(test: any): void;
|
|
20
|
-
finishRun(runParams: any): Promise<void>;
|
|
21
|
-
toString(): string;
|
|
22
|
-
updateRun(): void;
|
|
23
|
-
}
|
package/lib/pipe/html.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export default HtmlPipe;
|
|
2
|
-
declare class HtmlPipe {
|
|
3
|
-
constructor(params: any, store?: {});
|
|
4
|
-
store: {};
|
|
5
|
-
title: any;
|
|
6
|
-
apiKey: any;
|
|
7
|
-
isHtml: string;
|
|
8
|
-
isEnabled: boolean;
|
|
9
|
-
htmlOutputPath: string;
|
|
10
|
-
fullHtmlOutputPath: string;
|
|
11
|
-
filenameMsg: string;
|
|
12
|
-
tests: any[];
|
|
13
|
-
htmlReportDir: string;
|
|
14
|
-
htmlReportName: string;
|
|
15
|
-
templateFolderPath: string;
|
|
16
|
-
templateHtmlPath: string;
|
|
17
|
-
createRun(): Promise<void>;
|
|
18
|
-
prepareRun(): Promise<void>;
|
|
19
|
-
updateRun(): void;
|
|
20
|
-
/**
|
|
21
|
-
* Add test data to the result array for saving. As a result of this function, we get a result object to save.
|
|
22
|
-
* @param {import('../../types/types.js').RunData} test - object which includes each test entry.
|
|
23
|
-
*/
|
|
24
|
-
addTest(test: import("../../types/types.js").RunData): void;
|
|
25
|
-
finishRun(runParams: any): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Generates an HTML report based on provided test data and a template.
|
|
28
|
-
* @param {object} opts - Test options used to generate the HTML report:
|
|
29
|
-
* runParams, tests, outputPath, templatePath
|
|
30
|
-
* @returns {void} - This function does not return anything.
|
|
31
|
-
*/
|
|
32
|
-
buildReport(opts: object): void;
|
|
33
|
-
toString(): string;
|
|
34
|
-
#private;
|
|
35
|
-
}
|
package/lib/pipe/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function pipesFactory(params: any, opts: any): Promise<any[]>;
|
package/lib/pipe/testomatio.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export default TestomatioPipe;
|
|
2
|
-
export type Pipe = import("../../types/types.js").Pipe;
|
|
3
|
-
export type TestData = import("../../types/types.js").TestData;
|
|
4
|
-
/**
|
|
5
|
-
* @typedef {import('../../types/types.js').Pipe} Pipe
|
|
6
|
-
* @typedef {import('../../types/types.js').TestData} TestData
|
|
7
|
-
* @class TestomatioPipe
|
|
8
|
-
* @implements {Pipe}
|
|
9
|
-
*/
|
|
10
|
-
declare class TestomatioPipe implements Pipe {
|
|
11
|
-
constructor(params: any, store: any);
|
|
12
|
-
batch: {
|
|
13
|
-
isEnabled: any;
|
|
14
|
-
intervalFunction: any;
|
|
15
|
-
intervalTime: number;
|
|
16
|
-
tests: any[];
|
|
17
|
-
batchIndex: number;
|
|
18
|
-
numberOfTimesCalledWithoutTests: number;
|
|
19
|
-
};
|
|
20
|
-
retriesTimestamps: any[];
|
|
21
|
-
reportingCanceledDueToReqFailures: boolean;
|
|
22
|
-
notReportedTestsCount: number;
|
|
23
|
-
isEnabled: boolean;
|
|
24
|
-
url: any;
|
|
25
|
-
apiKey: any;
|
|
26
|
-
parallel: any;
|
|
27
|
-
store: any;
|
|
28
|
-
title: any;
|
|
29
|
-
sharedRun: boolean;
|
|
30
|
-
sharedRunTimeout: boolean;
|
|
31
|
-
groupTitle: any;
|
|
32
|
-
env: string;
|
|
33
|
-
label: string;
|
|
34
|
-
axios: import("axios").AxiosInstance;
|
|
35
|
-
proceed: string;
|
|
36
|
-
jiraId: string;
|
|
37
|
-
runId: any;
|
|
38
|
-
createNewTests: any;
|
|
39
|
-
hasUnmatchedTests: boolean;
|
|
40
|
-
requestFailures: number;
|
|
41
|
-
/**
|
|
42
|
-
* Asynchronously prepares and retrieves the Testomat.io test grepList based on the provided options.
|
|
43
|
-
* @param {Object} opts - The options for preparing the test grepList.
|
|
44
|
-
* @returns {Promise<string[]>} - An array containing the retrieved
|
|
45
|
-
* test grepList, or an empty array if no tests are found or the request is disabled.
|
|
46
|
-
* @throws {Error} - Throws an error if there was a problem while making the request.
|
|
47
|
-
*/
|
|
48
|
-
prepareRun(opts: any): Promise<string[]>;
|
|
49
|
-
/**
|
|
50
|
-
* Creates a new run on Testomat.io
|
|
51
|
-
* @param {{isBatchEnabled?: boolean}} params
|
|
52
|
-
* @returns Promise<void>
|
|
53
|
-
*/
|
|
54
|
-
createRun(params?: {
|
|
55
|
-
isBatchEnabled?: boolean;
|
|
56
|
-
}): Promise<void>;
|
|
57
|
-
runUrl: string;
|
|
58
|
-
runPublicUrl: any;
|
|
59
|
-
/**
|
|
60
|
-
* Adds a test to the batch uploader (or reports a single test if batch uploading is disabled)
|
|
61
|
-
*/
|
|
62
|
-
addTest(data: any): void;
|
|
63
|
-
/**
|
|
64
|
-
* @param {import('../../types/types.js').RunData} params
|
|
65
|
-
* @returns
|
|
66
|
-
*/
|
|
67
|
-
finishRun(params: import("../../types/types.js").RunData): Promise<void>;
|
|
68
|
-
toString(): string;
|
|
69
|
-
#private;
|
|
70
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { saveArtifact as artifact };
|
|
3
|
-
export { logMessage as log };
|
|
4
|
-
export { addStep as step };
|
|
5
|
-
export { setKeyValue as keyValue };
|
|
6
|
-
}
|
|
7
|
-
export default _default;
|
|
8
|
-
/**
|
|
9
|
-
* Stores path to file as artifact and uploads it to the S3 storage
|
|
10
|
-
* @param {string | {path: string, type: string, name: string}} data - path to file or object with path, type and name
|
|
11
|
-
*/
|
|
12
|
-
declare function saveArtifact(data: string | {
|
|
13
|
-
path: string;
|
|
14
|
-
type: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}, context?: any): void;
|
|
17
|
-
/**
|
|
18
|
-
* Attach log message(s) to the test report
|
|
19
|
-
* @param string
|
|
20
|
-
*/
|
|
21
|
-
declare function logMessage(...args: any[]): void;
|
|
22
|
-
/**
|
|
23
|
-
* Similar to "log" function but marks message in report as a step
|
|
24
|
-
* @param {string} message
|
|
25
|
-
*/
|
|
26
|
-
declare function addStep(message: string): void;
|
|
27
|
-
/**
|
|
28
|
-
* Add key-value pair(s) to the test report
|
|
29
|
-
* @param {{[key: string]: string} | string} keyValue object { key: value } (multiple props allowed) or key (string)
|
|
30
|
-
* @param {string?} value
|
|
31
|
-
*/
|
|
32
|
-
declare function setKeyValue(keyValue: {
|
|
33
|
-
[key: string]: string;
|
|
34
|
-
} | string, value?: string | null): void;
|
package/lib/reporter.d.ts
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
export type artifact = typeof import("./reporter-functions.js");
|
|
2
|
-
export const artifact: (data: string | {
|
|
3
|
-
path: string;
|
|
4
|
-
type: string;
|
|
5
|
-
name: string;
|
|
6
|
-
}, context?: any) => void;
|
|
7
|
-
export type log = typeof import("./reporter-functions.js");
|
|
8
|
-
export const log: (...args: any[]) => void;
|
|
9
|
-
export type logger = typeof import("./services/index.js");
|
|
10
|
-
export const logger: {
|
|
11
|
-
"__#12@#originalUserLogger": {
|
|
12
|
-
assert(condition?: boolean, ...data: any[]): void;
|
|
13
|
-
assert(value: any, message?: string, ...optionalParams: any[]): void;
|
|
14
|
-
clear(): void;
|
|
15
|
-
clear(): void;
|
|
16
|
-
count(label?: string): void;
|
|
17
|
-
count(label?: string): void;
|
|
18
|
-
countReset(label?: string): void;
|
|
19
|
-
countReset(label?: string): void;
|
|
20
|
-
debug(...data: any[]): void;
|
|
21
|
-
debug(message?: any, ...optionalParams: any[]): void;
|
|
22
|
-
dir(item?: any, options?: any): void;
|
|
23
|
-
dir(obj: any, options?: import("util").InspectOptions): void;
|
|
24
|
-
dirxml(...data: any[]): void;
|
|
25
|
-
dirxml(...data: any[]): void;
|
|
26
|
-
error(...data: any[]): void;
|
|
27
|
-
error(message?: any, ...optionalParams: any[]): void;
|
|
28
|
-
group(...data: any[]): void;
|
|
29
|
-
group(...label: any[]): void;
|
|
30
|
-
groupCollapsed(...data: any[]): void;
|
|
31
|
-
groupCollapsed(...label: any[]): void;
|
|
32
|
-
groupEnd(): void;
|
|
33
|
-
groupEnd(): void;
|
|
34
|
-
info(...data: any[]): void;
|
|
35
|
-
info(message?: any, ...optionalParams: any[]): void;
|
|
36
|
-
log(...data: any[]): void;
|
|
37
|
-
log(message?: any, ...optionalParams: any[]): void;
|
|
38
|
-
table(tabularData?: any, properties?: string[]): void;
|
|
39
|
-
table(tabularData: any, properties?: readonly string[]): void;
|
|
40
|
-
time(label?: string): void;
|
|
41
|
-
time(label?: string): void;
|
|
42
|
-
timeEnd(label?: string): void;
|
|
43
|
-
timeEnd(label?: string): void;
|
|
44
|
-
timeLog(label?: string, ...data: any[]): void;
|
|
45
|
-
timeLog(label?: string, ...data: any[]): void;
|
|
46
|
-
timeStamp(label?: string): void;
|
|
47
|
-
timeStamp(label?: string): void;
|
|
48
|
-
trace(...data: any[]): void;
|
|
49
|
-
trace(message?: any, ...optionalParams: any[]): void;
|
|
50
|
-
warn(...data: any[]): void;
|
|
51
|
-
warn(message?: any, ...optionalParams: any[]): void;
|
|
52
|
-
Console: console.ConsoleConstructor;
|
|
53
|
-
profile(label?: string): void;
|
|
54
|
-
profileEnd(label?: string): void;
|
|
55
|
-
};
|
|
56
|
-
"__#12@#userLoggerWithOverridenMethods": any;
|
|
57
|
-
logLevel: string;
|
|
58
|
-
step(strings: any, ...values: any[]): void;
|
|
59
|
-
getLogs(context: string): string[];
|
|
60
|
-
"__#12@#stringifyLogs"(...args: any[]): string;
|
|
61
|
-
_templateLiteralLog(strings: any, ...args: any[]): void;
|
|
62
|
-
"__#12@#logWrapper"(argsArray: any, level: any): void;
|
|
63
|
-
assert(...args: any[]): void;
|
|
64
|
-
debug(...args: any[]): void;
|
|
65
|
-
error(...args: any[]): void;
|
|
66
|
-
info(...args: any[]): void;
|
|
67
|
-
log(...args: any[]): void;
|
|
68
|
-
trace(...args: any[]): void;
|
|
69
|
-
warn(...args: any[]): void;
|
|
70
|
-
intercept(userLogger: any): void;
|
|
71
|
-
stopInterception(): void;
|
|
72
|
-
configure(config?: {
|
|
73
|
-
logLevel?: string;
|
|
74
|
-
prettyObjects?: boolean;
|
|
75
|
-
}): void;
|
|
76
|
-
prettyObjects: boolean;
|
|
77
|
-
};
|
|
78
|
-
export type meta = typeof import("./reporter-functions.js");
|
|
79
|
-
export const meta: (keyValue: {
|
|
80
|
-
[key: string]: string;
|
|
81
|
-
} | string, value?: string | null) => void;
|
|
82
|
-
export type step = typeof import("./reporter-functions.js");
|
|
83
|
-
export const step: (message: string) => void;
|
|
84
|
-
declare namespace _default {
|
|
85
|
-
let testomatioLogger: {
|
|
86
|
-
"__#12@#originalUserLogger": {
|
|
87
|
-
assert(condition?: boolean, ...data: any[]): void;
|
|
88
|
-
assert(value: any, message?: string, ...optionalParams: any[]): void;
|
|
89
|
-
clear(): void;
|
|
90
|
-
clear(): void;
|
|
91
|
-
count(label?: string): void;
|
|
92
|
-
count(label?: string): void;
|
|
93
|
-
countReset(label?: string): void;
|
|
94
|
-
countReset(label?: string): void;
|
|
95
|
-
debug(...data: any[]): void;
|
|
96
|
-
debug(message?: any, ...optionalParams: any[]): void;
|
|
97
|
-
dir(item?: any, options?: any): void;
|
|
98
|
-
dir(obj: any, options?: import("util").InspectOptions): void;
|
|
99
|
-
dirxml(...data: any[]): void;
|
|
100
|
-
dirxml(...data: any[]): void;
|
|
101
|
-
error(...data: any[]): void;
|
|
102
|
-
error(message?: any, ...optionalParams: any[]): void;
|
|
103
|
-
group(...data: any[]): void;
|
|
104
|
-
group(...label: any[]): void;
|
|
105
|
-
groupCollapsed(...data: any[]): void;
|
|
106
|
-
groupCollapsed(...label: any[]): void;
|
|
107
|
-
groupEnd(): void;
|
|
108
|
-
groupEnd(): void;
|
|
109
|
-
info(...data: any[]): void;
|
|
110
|
-
info(message?: any, ...optionalParams: any[]): void;
|
|
111
|
-
log(...data: any[]): void;
|
|
112
|
-
log(message?: any, ...optionalParams: any[]): void;
|
|
113
|
-
table(tabularData?: any, properties?: string[]): void;
|
|
114
|
-
table(tabularData: any, properties?: readonly string[]): void;
|
|
115
|
-
time(label?: string): void;
|
|
116
|
-
time(label?: string): void;
|
|
117
|
-
timeEnd(label?: string): void;
|
|
118
|
-
timeEnd(label?: string): void;
|
|
119
|
-
timeLog(label?: string, ...data: any[]): void;
|
|
120
|
-
timeLog(label?: string, ...data: any[]): void;
|
|
121
|
-
timeStamp(label?: string): void;
|
|
122
|
-
timeStamp(label?: string): void;
|
|
123
|
-
trace(...data: any[]): void;
|
|
124
|
-
trace(message?: any, ...optionalParams: any[]): void;
|
|
125
|
-
warn(...data: any[]): void;
|
|
126
|
-
warn(message?: any, ...optionalParams: any[]): void;
|
|
127
|
-
Console: console.ConsoleConstructor;
|
|
128
|
-
profile(label?: string): void;
|
|
129
|
-
profileEnd(label?: string): void;
|
|
130
|
-
};
|
|
131
|
-
"__#12@#userLoggerWithOverridenMethods": any;
|
|
132
|
-
logLevel: string;
|
|
133
|
-
step(strings: any, ...values: any[]): void;
|
|
134
|
-
getLogs(context: string): string[];
|
|
135
|
-
"__#12@#stringifyLogs"(...args: any[]): string;
|
|
136
|
-
_templateLiteralLog(strings: any, ...args: any[]): void;
|
|
137
|
-
"__#12@#logWrapper"(argsArray: any, level: any): void;
|
|
138
|
-
assert(...args: any[]): void;
|
|
139
|
-
debug(...args: any[]): void;
|
|
140
|
-
error(...args: any[]): void;
|
|
141
|
-
info(...args: any[]): void;
|
|
142
|
-
log(...args: any[]): void;
|
|
143
|
-
trace(...args: any[]): void;
|
|
144
|
-
warn(...args: any[]): void;
|
|
145
|
-
intercept(userLogger: any): void;
|
|
146
|
-
stopInterception(): void;
|
|
147
|
-
configure(config?: {
|
|
148
|
-
logLevel?: string;
|
|
149
|
-
prettyObjects?: boolean;
|
|
150
|
-
}): void;
|
|
151
|
-
prettyObjects: boolean;
|
|
152
|
-
};
|
|
153
|
-
let artifact: (data: string | {
|
|
154
|
-
path: string;
|
|
155
|
-
type: string;
|
|
156
|
-
name: string;
|
|
157
|
-
}, context?: any) => void;
|
|
158
|
-
let log: (...args: any[]) => void;
|
|
159
|
-
let logger: {
|
|
160
|
-
"__#12@#originalUserLogger": {
|
|
161
|
-
assert(condition?: boolean, ...data: any[]): void;
|
|
162
|
-
assert(value: any, message?: string, ...optionalParams: any[]): void;
|
|
163
|
-
clear(): void;
|
|
164
|
-
clear(): void;
|
|
165
|
-
count(label?: string): void;
|
|
166
|
-
count(label?: string): void;
|
|
167
|
-
countReset(label?: string): void;
|
|
168
|
-
countReset(label?: string): void;
|
|
169
|
-
debug(...data: any[]): void;
|
|
170
|
-
debug(message?: any, ...optionalParams: any[]): void;
|
|
171
|
-
dir(item?: any, options?: any): void;
|
|
172
|
-
dir(obj: any, options?: import("util").InspectOptions): void;
|
|
173
|
-
dirxml(...data: any[]): void;
|
|
174
|
-
dirxml(...data: any[]): void;
|
|
175
|
-
error(...data: any[]): void;
|
|
176
|
-
error(message?: any, ...optionalParams: any[]): void;
|
|
177
|
-
group(...data: any[]): void;
|
|
178
|
-
group(...label: any[]): void;
|
|
179
|
-
groupCollapsed(...data: any[]): void;
|
|
180
|
-
groupCollapsed(...label: any[]): void;
|
|
181
|
-
groupEnd(): void;
|
|
182
|
-
groupEnd(): void;
|
|
183
|
-
info(...data: any[]): void;
|
|
184
|
-
info(message?: any, ...optionalParams: any[]): void;
|
|
185
|
-
log(...data: any[]): void;
|
|
186
|
-
log(message?: any, ...optionalParams: any[]): void;
|
|
187
|
-
table(tabularData?: any, properties?: string[]): void;
|
|
188
|
-
table(tabularData: any, properties?: readonly string[]): void;
|
|
189
|
-
time(label?: string): void;
|
|
190
|
-
time(label?: string): void;
|
|
191
|
-
timeEnd(label?: string): void;
|
|
192
|
-
timeEnd(label?: string): void;
|
|
193
|
-
timeLog(label?: string, ...data: any[]): void;
|
|
194
|
-
timeLog(label?: string, ...data: any[]): void;
|
|
195
|
-
timeStamp(label?: string): void;
|
|
196
|
-
timeStamp(label?: string): void;
|
|
197
|
-
trace(...data: any[]): void;
|
|
198
|
-
trace(message?: any, ...optionalParams: any[]): void;
|
|
199
|
-
warn(...data: any[]): void;
|
|
200
|
-
warn(message?: any, ...optionalParams: any[]): void;
|
|
201
|
-
Console: console.ConsoleConstructor;
|
|
202
|
-
profile(label?: string): void;
|
|
203
|
-
profileEnd(label?: string): void;
|
|
204
|
-
};
|
|
205
|
-
"__#12@#userLoggerWithOverridenMethods": any;
|
|
206
|
-
logLevel: string;
|
|
207
|
-
step(strings: any, ...values: any[]): void;
|
|
208
|
-
getLogs(context: string): string[];
|
|
209
|
-
"__#12@#stringifyLogs"(...args: any[]): string;
|
|
210
|
-
_templateLiteralLog(strings: any, ...args: any[]): void;
|
|
211
|
-
"__#12@#logWrapper"(argsArray: any, level: any): void;
|
|
212
|
-
assert(...args: any[]): void;
|
|
213
|
-
debug(...args: any[]): void;
|
|
214
|
-
error(...args: any[]): void;
|
|
215
|
-
info(...args: any[]): void;
|
|
216
|
-
log(...args: any[]): void;
|
|
217
|
-
trace(...args: any[]): void;
|
|
218
|
-
warn(...args: any[]): void;
|
|
219
|
-
intercept(userLogger: any): void;
|
|
220
|
-
stopInterception(): void;
|
|
221
|
-
configure(config?: {
|
|
222
|
-
logLevel?: string;
|
|
223
|
-
prettyObjects?: boolean;
|
|
224
|
-
}): void;
|
|
225
|
-
prettyObjects: boolean;
|
|
226
|
-
};
|
|
227
|
-
let meta: (keyValue: {
|
|
228
|
-
[key: string]: string;
|
|
229
|
-
} | string, value?: string | null) => void;
|
|
230
|
-
let step: (message: string) => void;
|
|
231
|
-
}
|
|
232
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export const artifactStorage: ArtifactStorage;
|
|
2
|
-
/**
|
|
3
|
-
* Artifact storage is supposed to store file paths
|
|
4
|
-
*/
|
|
5
|
-
declare class ArtifactStorage {
|
|
6
|
-
static "__#13@#instance": any;
|
|
7
|
-
/**
|
|
8
|
-
* Singleton
|
|
9
|
-
* @returns {ArtifactStorage}
|
|
10
|
-
*/
|
|
11
|
-
static getInstance(): ArtifactStorage;
|
|
12
|
-
/**
|
|
13
|
-
* Stores path to file as artifact and uploads it to the S3 storage
|
|
14
|
-
* @param {string | {path: string, type: string, name: string}} data - path to file or object with path, type and name
|
|
15
|
-
* @param {*} context testId or test title
|
|
16
|
-
*/
|
|
17
|
-
put(data: string | {
|
|
18
|
-
path: string;
|
|
19
|
-
type: string;
|
|
20
|
-
name: string;
|
|
21
|
-
}, context?: any): void;
|
|
22
|
-
/**
|
|
23
|
-
* Returns list of artifacts to upload
|
|
24
|
-
* @param {*} context testId or test context from test runner
|
|
25
|
-
* @returns {(string | {path: string, type: string, name: string})[]}
|
|
26
|
-
*/
|
|
27
|
-
get(context: any): (string | {
|
|
28
|
-
path: string;
|
|
29
|
-
type: string;
|
|
30
|
-
name: string;
|
|
31
|
-
})[];
|
|
32
|
-
}
|
|
33
|
-
export {};
|
package/lib/services/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export namespace services {
|
|
2
|
-
export { logger };
|
|
3
|
-
export { artifactStorage as artifacts };
|
|
4
|
-
export { keyValueStorage as keyValues };
|
|
5
|
-
export function setContext(context: any): void;
|
|
6
|
-
}
|
|
7
|
-
import { logger } from './logger.js';
|
|
8
|
-
import { artifactStorage } from './artifacts.js';
|
|
9
|
-
import { keyValueStorage } from './key-values.js';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const keyValueStorage: KeyValueStorage;
|
|
2
|
-
declare class KeyValueStorage {
|
|
3
|
-
static "__#14@#instance": any;
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @returns {KeyValueStorage}
|
|
7
|
-
*/
|
|
8
|
-
static getInstance(): KeyValueStorage;
|
|
9
|
-
/**
|
|
10
|
-
* Stores key-value pair and passes it to reporter
|
|
11
|
-
* @param {{[key: string]: string}} keyValue - key-value pair(s) as object
|
|
12
|
-
* @param {*} context - full test title
|
|
13
|
-
*/
|
|
14
|
-
put(keyValue: {
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
}, context?: any): void;
|
|
17
|
-
/**
|
|
18
|
-
* Returns key-values pairs for the test as object
|
|
19
|
-
* @param {*} context testId or test context from test runner
|
|
20
|
-
* @returns {{[key: string]: string} | {}} key-values pairs as object, e.g. {priority: 'high', browser: 'chrome'}
|
|
21
|
-
*/
|
|
22
|
-
get(context?: any): {
|
|
23
|
-
[key: string]: string;
|
|
24
|
-
} | {};
|
|
25
|
-
#private;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
package/lib/services/logger.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export const logger: Logger;
|
|
2
|
-
/**
|
|
3
|
-
* Logger allows to intercept logs from any logger (console.log, tracer, pino, etc)
|
|
4
|
-
* and save in the testomatio reporter.
|
|
5
|
-
* Supports different syntaxes to satisfy any user preferences.
|
|
6
|
-
*/
|
|
7
|
-
declare class Logger {
|
|
8
|
-
static "__#12@#instance": any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @returns {Logger}
|
|
12
|
-
*/
|
|
13
|
-
static getInstance(): Logger;
|
|
14
|
-
logLevel: string;
|
|
15
|
-
/**
|
|
16
|
-
* Allows you to define a step inside a test. Step name is attached to the report and
|
|
17
|
-
* helps to understand the test flow.
|
|
18
|
-
* @param {*} strings
|
|
19
|
-
* @param {...any} values
|
|
20
|
-
*/
|
|
21
|
-
step(strings: any, ...values: any[]): void;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @param {string} context testId or test context from test runner
|
|
25
|
-
* @returns {string[]}
|
|
26
|
-
*/
|
|
27
|
-
getLogs(context: string): string[];
|
|
28
|
-
/**
|
|
29
|
-
* Tagget template literal. Allows to use different syntaxes:
|
|
30
|
-
* 1. Tagget template: log`text ${someVar}`
|
|
31
|
-
* 2. Standard: log(`text ${someVar}`)
|
|
32
|
-
* 3. Standard with multiple arguments: log('text', someVar)
|
|
33
|
-
*/
|
|
34
|
-
_templateLiteralLog(strings: any, ...args: any[]): void;
|
|
35
|
-
assert(...args: any[]): void;
|
|
36
|
-
debug(...args: any[]): void;
|
|
37
|
-
error(...args: any[]): void;
|
|
38
|
-
info(...args: any[]): void;
|
|
39
|
-
log(...args: any[]): void;
|
|
40
|
-
trace(...args: any[]): void;
|
|
41
|
-
warn(...args: any[]): void;
|
|
42
|
-
/**
|
|
43
|
-
* Intercepts user logger messages.
|
|
44
|
-
* When call this method, Logger start to control the user logger
|
|
45
|
-
* @param {*} userLogger
|
|
46
|
-
*/
|
|
47
|
-
intercept(userLogger: any): void;
|
|
48
|
-
stopInterception(): void;
|
|
49
|
-
/**
|
|
50
|
-
* Allows to configure logger. Make sure you do it before the logger usage in your code.
|
|
51
|
-
*
|
|
52
|
-
* @param {Object} [config={}] - The configuration object.
|
|
53
|
-
* @param {string} [config.logLevel] - The desired log level. Valid values are 'DEBUG', 'INFO', 'WARN', and 'ERROR'.
|
|
54
|
-
* @param {boolean} [config.prettyObjects] - Specifies whether to enable pretty printing of objects.
|
|
55
|
-
* @returns {void}
|
|
56
|
-
*/
|
|
57
|
-
configure(config?: {
|
|
58
|
-
logLevel?: string;
|
|
59
|
-
prettyObjects?: boolean;
|
|
60
|
-
}): void;
|
|
61
|
-
prettyObjects: boolean;
|
|
62
|
-
#private;
|
|
63
|
-
}
|
|
64
|
-
export {};
|
package/lib/uploader.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export class S3Uploader {
|
|
2
|
-
isEnabled: any;
|
|
3
|
-
storeEnabled: boolean;
|
|
4
|
-
config: {};
|
|
5
|
-
/**
|
|
6
|
-
* @type {{path: string, size: number}[]}
|
|
7
|
-
*/
|
|
8
|
-
skippedUploads: {
|
|
9
|
-
path: string;
|
|
10
|
-
size: number;
|
|
11
|
-
}[];
|
|
12
|
-
failedUploads: any[];
|
|
13
|
-
/**
|
|
14
|
-
* @type {{path: string, size: number, link: string}[]}
|
|
15
|
-
*/
|
|
16
|
-
successfulUploads: {
|
|
17
|
-
path: string;
|
|
18
|
-
size: number;
|
|
19
|
-
link: string;
|
|
20
|
-
}[];
|
|
21
|
-
configKeys: string[];
|
|
22
|
-
resetConfig(): void;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @returns {Record<string, string>}
|
|
26
|
-
*/
|
|
27
|
-
getConfig(): Record<string, string>;
|
|
28
|
-
getMaskedConfig(): {
|
|
29
|
-
[k: string]: string;
|
|
30
|
-
};
|
|
31
|
-
checkEnabled(): any;
|
|
32
|
-
enableLogStorage(): void;
|
|
33
|
-
disableLogStorage(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Returns an array of uploaded files
|
|
36
|
-
*
|
|
37
|
-
* @returns {{rid: string, file: string, uploaded: boolean}[]}
|
|
38
|
-
*/
|
|
39
|
-
readUploadedFiles(runId: any): {
|
|
40
|
-
rid: string;
|
|
41
|
-
file: string;
|
|
42
|
-
uploaded: boolean;
|
|
43
|
-
}[];
|
|
44
|
-
storeUploadedFile(filePath: any, runId: any, rid: any, uploaded?: boolean): void;
|
|
45
|
-
/**
|
|
46
|
-
* @param {*} filePath
|
|
47
|
-
* @param {*} pathInS3 contains runId, rid and filename
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
uploadFileByPath(filePath: any, pathInS3: any): Promise<any>;
|
|
51
|
-
/**
|
|
52
|
-
* @param {Buffer} buffer
|
|
53
|
-
* @param {string[]} pathInS3
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
uploadFileAsBuffer(buffer: Buffer, pathInS3: string[]): Promise<any>;
|
|
57
|
-
checkArtifactExistsInFileSystem(filePath: any, attempts?: number, intervalMs?: number): Promise<any>;
|
|
58
|
-
getS3LocationLink(out: any): Promise<any>;
|
|
59
|
-
#private;
|
|
60
|
-
}
|