angles-javascript-client 1.0.44 → 1.0.46
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 +14 -0
- package/dist/lib/AnglesReporter.d.ts +16 -0
- package/dist/lib/AnglesReporter.js +40 -0
- package/dist/lib/AnglesReporter.js.map +1 -1
- package/dist/lib/models/requests/FindImageOptions.d.ts +12 -0
- package/dist/lib/models/requests/FindImageOptions.js +7 -0
- package/dist/lib/models/requests/FindImageOptions.js.map +1 -0
- package/dist/lib/models/response/ImageFindResponse.d.ts +26 -0
- package/dist/lib/models/response/ImageFindResponse.js +10 -0
- package/dist/lib/models/response/ImageFindResponse.js.map +1 -0
- package/dist/lib/requests/BuildRequests.d.ts +10 -0
- package/dist/lib/requests/BuildRequests.js +17 -0
- package/dist/lib/requests/BuildRequests.js.map +1 -1
- package/dist/lib/requests/ScreenshotRequests.d.ts +23 -0
- package/dist/lib/requests/ScreenshotRequests.js +40 -0
- package/dist/lib/requests/ScreenshotRequests.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,20 @@ await anglesReporter.saveTest();
|
|
|
53
53
|
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
+
### Batch mode
|
|
57
|
+
By default every call to `saveTest()` sends the test execution to the Angles API straight away. If you'd rather send the whole test run in a single request at the end (e.g. for large runs), you can enable batch mode. The build is still created up-front and screenshots are still uploaded individually as the tests run (they need the build id), but the executions are gathered by the reporter until you call `saveAllTests()`.
|
|
58
|
+
|
|
59
|
+
``` javascript
|
|
60
|
+
anglesReporter.setBatchMode(true);
|
|
61
|
+
await anglesReporter.startBuild('TestRunName', 'Team', 'Environment', 'Component');
|
|
62
|
+
|
|
63
|
+
// run your tests as usual: startTest(), saveScreenshot(), pass()/fail() and saveTest()
|
|
64
|
+
// saveTest() now stores the executions in the reporter rather than sending them.
|
|
65
|
+
|
|
66
|
+
// once all tests are done, store all the executions against the build in one request.
|
|
67
|
+
await anglesReporter.saveAllTests();
|
|
68
|
+
```
|
|
69
|
+
|
|
56
70
|
If you want to create your own reporter, you can instantiate the request classes yourself.
|
|
57
71
|
```javascript
|
|
58
72
|
|
|
@@ -23,6 +23,8 @@ export declare class AnglesReporterClass {
|
|
|
23
23
|
private currentBuild;
|
|
24
24
|
private currentExecution;
|
|
25
25
|
private currentAction;
|
|
26
|
+
private batchMode;
|
|
27
|
+
private batchedExecutions;
|
|
26
28
|
private apiConfig;
|
|
27
29
|
constructor();
|
|
28
30
|
setBaseUrl(baseUrl: string): void;
|
|
@@ -32,6 +34,15 @@ export declare class AnglesReporterClass {
|
|
|
32
34
|
* @param apiKey
|
|
33
35
|
*/
|
|
34
36
|
setApiKey(apiKey: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* When batch mode is enabled, saveTest() no longer sends each test execution to the Angles
|
|
39
|
+
* API individually, but stores them in the reporter instead. Once all tests are done, call
|
|
40
|
+
* saveAllTests() to store all the executions against the current build in a single request.
|
|
41
|
+
* Screenshots are always uploaded individually (they need the build id), so they can still
|
|
42
|
+
* be saved as the tests run.
|
|
43
|
+
* @param batchMode
|
|
44
|
+
*/
|
|
45
|
+
setBatchMode(batchMode: boolean): void;
|
|
35
46
|
/**
|
|
36
47
|
* If the current build at a seperate point, then you can set it again by calling this function.
|
|
37
48
|
* @param buildId
|
|
@@ -51,6 +62,11 @@ export declare class AnglesReporterClass {
|
|
|
51
62
|
updateTestName(title: string, suite: string): void;
|
|
52
63
|
storePlatformDetails(platform: Platform): void;
|
|
53
64
|
saveTest(): Promise<Execution>;
|
|
65
|
+
/**
|
|
66
|
+
* Stores all the test executions gathered by saveTest() whilst in batch mode against the
|
|
67
|
+
* current build in a single request. Call this once at the end of the test run.
|
|
68
|
+
*/
|
|
69
|
+
saveAllTests(): Promise<Build>;
|
|
54
70
|
saveScreenshot(filePath: string, view: string, tags: string[]): Promise<Screenshot>;
|
|
55
71
|
saveScreenshotWithPlatform(filePath: string, view: string, tags: string[], platform: ScreenshotPlatform): Promise<Screenshot>;
|
|
56
72
|
compareScreenshotAgainstBaseline(screenshotId: string): Promise<ImageCompareResponse>;
|
|
@@ -19,6 +19,8 @@ const StepStates_1 = require("./models/enum/StepStates");
|
|
|
19
19
|
const Step_1 = require("./models/Step");
|
|
20
20
|
class AnglesReporterClass {
|
|
21
21
|
constructor() {
|
|
22
|
+
this.batchMode = false;
|
|
23
|
+
this.batchedExecutions = [];
|
|
22
24
|
this.apiConfig = {
|
|
23
25
|
returnRejectedPromiseOnError: true,
|
|
24
26
|
timeout: 10000,
|
|
@@ -49,6 +51,17 @@ class AnglesReporterClass {
|
|
|
49
51
|
this.apiConfig.headers.common['x-api-key'] = apiKey;
|
|
50
52
|
this.instantiateAxios();
|
|
51
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* When batch mode is enabled, saveTest() no longer sends each test execution to the Angles
|
|
56
|
+
* API individually, but stores them in the reporter instead. Once all tests are done, call
|
|
57
|
+
* saveAllTests() to store all the executions against the current build in a single request.
|
|
58
|
+
* Screenshots are always uploaded individually (they need the build id), so they can still
|
|
59
|
+
* be saved as the tests run.
|
|
60
|
+
* @param batchMode
|
|
61
|
+
*/
|
|
62
|
+
setBatchMode(batchMode) {
|
|
63
|
+
this.batchMode = batchMode;
|
|
64
|
+
}
|
|
52
65
|
/**
|
|
53
66
|
* If the current build at a seperate point, then you can set it again by calling this function.
|
|
54
67
|
* @param buildId
|
|
@@ -126,8 +139,35 @@ class AnglesReporterClass {
|
|
|
126
139
|
}
|
|
127
140
|
}
|
|
128
141
|
saveTest() {
|
|
142
|
+
if (this.batchMode) {
|
|
143
|
+
this.batchedExecutions.push(this.currentExecution);
|
|
144
|
+
return Promise.resolve(null);
|
|
145
|
+
}
|
|
129
146
|
return this.executions.saveExecution(this.currentExecution);
|
|
130
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Stores all the test executions gathered by saveTest() whilst in batch mode against the
|
|
150
|
+
* current build in a single request. Call this once at the end of the test run.
|
|
151
|
+
*/
|
|
152
|
+
saveAllTests() {
|
|
153
|
+
if (this.batchedExecutions.length === 0) {
|
|
154
|
+
return Promise.resolve(this.currentBuild);
|
|
155
|
+
}
|
|
156
|
+
const executions = this.batchedExecutions;
|
|
157
|
+
this.batchedExecutions = [];
|
|
158
|
+
return new Promise((resolve, reject) => {
|
|
159
|
+
this.builds.addExecutions(this.currentBuild._id, executions)
|
|
160
|
+
.then((updatedBuild) => {
|
|
161
|
+
this.currentBuild = updatedBuild;
|
|
162
|
+
resolve(updatedBuild);
|
|
163
|
+
})
|
|
164
|
+
.catch((error) => {
|
|
165
|
+
// put the executions back so a retry of saveAllTests() doesn't lose them
|
|
166
|
+
this.batchedExecutions = executions.concat(this.batchedExecutions);
|
|
167
|
+
reject(error);
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
}
|
|
131
171
|
saveScreenshot(filePath, view, tags) {
|
|
132
172
|
return this.saveScreenshotWithPlatform(filePath, view, tags, undefined);
|
|
133
173
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnglesReporter.js","sourceRoot":"","sources":["../../src/lib/AnglesReporter.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAuD;AACvD,0DAAuD;AACvD,wEAAqE;AACrE,4DAAyD;AACzD,oEAAiE;AACjE,sEAAmE;AACnE,0CAAuC;AACvC,uEAAoE;AACpE,4CAAyC;AACzC,+DAA4D;AAG5D,uEAAoE;AACpE,yDAAsD;AACtD,wCAAqC;AAMrC,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"AnglesReporter.js","sourceRoot":"","sources":["../../src/lib/AnglesReporter.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAuD;AACvD,0DAAuD;AACvD,wEAAqE;AACrE,4DAAyD;AACzD,oEAAiE;AACjE,sEAAmE;AACnE,0CAAuC;AACvC,uEAAoE;AACpE,4CAAyC;AACzC,+DAA4D;AAG5D,uEAAoE;AACpE,yDAAsD;AACtD,wCAAqC;AAMr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AAY;QACtE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACzE,CAAC;IAEM,kBAAkB,CAAC,IAAY,EAAE,QAAgB,EAAE,MAAc,EAAE,IAAY,EAAE,YAAoB;QAC1G,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAU,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC5E,CAAC;IAEM,OAAO,CACZ,IAAY,EACZ,QAAgB,EAChB,MAAc,EACd,IAAY,EACZ,MAAkB,EAClB,UAAkB;QAElB,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;YACpC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;SAChC;QACD,MAAM,IAAI,GAAG,IAAI,WAAI,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;;AA9QH,kDA+QC;AA9QgB,6BAAS,GAAwB,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class FindImageOptions {
|
|
2
|
+
/** Minimum confidence (0-1) for a region to count as a match. Defaults to 0.8. */
|
|
3
|
+
minConfidence?: number;
|
|
4
|
+
/** Lower bound of the template scale sweep. Defaults to 0.75. */
|
|
5
|
+
scaleMin?: number;
|
|
6
|
+
/** Upper bound of the template scale sweep. Defaults to 1.25. */
|
|
7
|
+
scaleMax?: number;
|
|
8
|
+
/** Maximum number of matches to return (1-25). Defaults to 1. */
|
|
9
|
+
maxMatches?: number;
|
|
10
|
+
/** Match on luminance only, which is more tolerant of colour differences between devices. */
|
|
11
|
+
grayscale?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FindImageOptions.js","sourceRoot":"","sources":["../../../../src/lib/models/requests/FindImageOptions.ts"],"names":[],"mappings":";;;AAAA,MAAa,gBAAgB;CAW5B;AAXD,4CAWC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class ImageFindMatch {
|
|
2
|
+
/** Left edge of the matched region, in original screenshot pixels. */
|
|
3
|
+
x: number;
|
|
4
|
+
/** Top edge of the matched region, in original screenshot pixels. */
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
/** Normalized cross-correlation score (0-1). */
|
|
9
|
+
confidence: number;
|
|
10
|
+
/** Template scale at which the match was found. */
|
|
11
|
+
scale: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class ImageFindResponse {
|
|
14
|
+
matches: ImageFindMatch[];
|
|
15
|
+
bestMatch: ImageFindMatch | null;
|
|
16
|
+
imageDimensions: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
templateDimensions: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
24
|
+
/** Search duration in milliseconds. */
|
|
25
|
+
analysisTime: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageFindResponse = exports.ImageFindMatch = void 0;
|
|
4
|
+
class ImageFindMatch {
|
|
5
|
+
}
|
|
6
|
+
exports.ImageFindMatch = ImageFindMatch;
|
|
7
|
+
class ImageFindResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.ImageFindResponse = ImageFindResponse;
|
|
10
|
+
//# sourceMappingURL=ImageFindResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageFindResponse.js","sourceRoot":"","sources":["../../../../src/lib/models/response/ImageFindResponse.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;CAW1B;AAXD,wCAWC;AAED,MAAa,iBAAiB;CAO7B;AAPD,8CAOC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
2
|
import { BaseRequests } from './BaseRequests';
|
|
3
3
|
import { CreateBuild } from '../models/requests/CreateBuild';
|
|
4
|
+
import { CreateExecution } from '../models/requests/CreateExecution';
|
|
4
5
|
import { Build } from '../models/Build';
|
|
5
6
|
import { Artifact } from '../models/Artifact';
|
|
6
7
|
import { BuildsResponse } from '../models/response/BuildsResponse';
|
|
@@ -32,5 +33,14 @@ export declare class BuildRequests extends BaseRequests {
|
|
|
32
33
|
getBuildReport(buildId: string): Promise<AxiosResponse>;
|
|
33
34
|
deleteBuild(buildId: string): Promise<DefaultResponse>;
|
|
34
35
|
setKeep(buildId: string, keep: boolean): Promise<Build>;
|
|
36
|
+
/**
|
|
37
|
+
* Stores all the given test executions against an existing build in a single call.
|
|
38
|
+
* Executions are grouped into suites by their suite name and the build metrics are
|
|
39
|
+
* recalculated by the Angles API.
|
|
40
|
+
*
|
|
41
|
+
* @param {string} buildId - id of the build to add the executions to.
|
|
42
|
+
* @param {CreateExecution[]} executions - the executions to store against the build.
|
|
43
|
+
*/
|
|
44
|
+
addExecutions(buildId: string, executions: CreateExecution[]): Promise<Build>;
|
|
35
45
|
addArtifacts(buildId: string, artifacts: Artifact[]): Promise<Build>;
|
|
36
46
|
}
|
|
@@ -92,6 +92,23 @@ class BuildRequests extends BaseRequests_1.BaseRequests {
|
|
|
92
92
|
setKeep(buildId, keep) {
|
|
93
93
|
return this.put(`build/${buildId}/keep`, { keep });
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Stores all the given test executions against an existing build in a single call.
|
|
97
|
+
* Executions are grouped into suites by their suite name and the build metrics are
|
|
98
|
+
* recalculated by the Angles API.
|
|
99
|
+
*
|
|
100
|
+
* @param {string} buildId - id of the build to add the executions to.
|
|
101
|
+
* @param {CreateExecution[]} executions - the executions to store against the build.
|
|
102
|
+
*/
|
|
103
|
+
addExecutions(buildId, executions) {
|
|
104
|
+
return this.put(`build/${buildId}/executions`, {
|
|
105
|
+
executions,
|
|
106
|
+
}, {
|
|
107
|
+
headers: {
|
|
108
|
+
'Content-Type': 'application/json',
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
95
112
|
addArtifacts(buildId, artifacts) {
|
|
96
113
|
return this.put(`build/${buildId}/artifacts`, {
|
|
97
114
|
artifacts,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/BuildRequests.ts"],"names":[],"mappings":";;;;;;AACA,iDAA8C;
|
|
1
|
+
{"version":3,"file":"BuildRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/BuildRequests.ts"],"names":[],"mappings":";;;;;;AACA,iDAA8C;AAO9C,oDAA4B;AAE5B,MAAa,aAAc,SAAQ,2BAAY;IAE7C,YAAmB,aAA4B;QAC7C,KAAK,CAAC,aAAa,CAAC,CAAC;IACvB,CAAC;IAEM,WAAW,CAAC,OAAoB;QACrC,OAAO,IAAI,CAAC,IAAI,CAAQ,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;;;OAOG;IACI,SAAS,CAAC,MAAa,EAAE,QAAkB,EAAE,sBAA+B;QACjF,IAAI,WAAW,GAAG,iBAAiB,MAAM,EAAE,CAAC;QAC5C,IAAI,QAAQ;YAAE,WAAW,IAAI,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V,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF,CACF,CAAC;IACJ,CAAC;CAEF;AA/ID,sCA+IC"}
|
|
@@ -3,6 +3,8 @@ import { BaseRequests } from './BaseRequests';
|
|
|
3
3
|
import { Screenshot } from '../models/Screenshot';
|
|
4
4
|
import { StoreScreenshot } from '../models/requests/StoreScreenshot';
|
|
5
5
|
import { ImageCompareResponse } from '../models/response/ImageCompareResponse';
|
|
6
|
+
import { ImageFindResponse } from '../models/response/ImageFindResponse';
|
|
7
|
+
import { FindImageOptions } from '../models/requests/FindImageOptions';
|
|
6
8
|
import { DefaultResponse } from "../models/response/DefaultResponse";
|
|
7
9
|
export declare class ScreenshotRequests extends BaseRequests {
|
|
8
10
|
constructor(axiosInstance: AxiosInstance);
|
|
@@ -25,4 +27,25 @@ export declare class ScreenshotRequests extends BaseRequests {
|
|
|
25
27
|
getDynamicBaselineImage(screenshotId: string, numberOfImagesToCompare: number): Promise<Screenshot>;
|
|
26
28
|
getBaselineCompareImage(screenshotId: string, cache: boolean): Promise<AxiosResponse>;
|
|
27
29
|
getBaselineCompare(screenshotId: string): Promise<ImageCompareResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Finds a stored screenshot (the template) within another stored screenshot using
|
|
32
|
+
* multi-scale template matching, and returns the matched region(s).
|
|
33
|
+
* @param {string} screenshotId - the screenshot to search in
|
|
34
|
+
* @param {string} templateScreenshotId - the screenshot to search for
|
|
35
|
+
* @param {FindImageOptions} [options]
|
|
36
|
+
*/
|
|
37
|
+
findImageInScreenshot(screenshotId: string, templateScreenshotId: string, options?: FindImageOptions): Promise<ImageFindResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Same search as findImageInScreenshot, but resolves with the screenshot image with
|
|
40
|
+
* the matched region(s) outlined.
|
|
41
|
+
*/
|
|
42
|
+
findImageInScreenshotImage(screenshotId: string, templateScreenshotId: string, options?: FindImageOptions): Promise<AxiosResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Finds a local template image file within a stored screenshot using multi-scale
|
|
45
|
+
* template matching. The template is uploaded with the request and not stored.
|
|
46
|
+
* @param {string} screenshotId - the screenshot to search in
|
|
47
|
+
* @param {string} templateFilePath - path of the local template image to search for
|
|
48
|
+
* @param {FindImageOptions} [options]
|
|
49
|
+
*/
|
|
50
|
+
findUploadedImageInScreenshot(screenshotId: string, templateFilePath: string, options?: FindImageOptions): Promise<ImageFindResponse>;
|
|
28
51
|
}
|
|
@@ -119,6 +119,46 @@ class ScreenshotRequests extends BaseRequests_1.BaseRequests {
|
|
|
119
119
|
getBaselineCompare(screenshotId) {
|
|
120
120
|
return this.get(`screenshot/${screenshotId}/baseline/compare/`);
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Finds a stored screenshot (the template) within another stored screenshot using
|
|
124
|
+
* multi-scale template matching, and returns the matched region(s).
|
|
125
|
+
* @param {string} screenshotId - the screenshot to search in
|
|
126
|
+
* @param {string} templateScreenshotId - the screenshot to search for
|
|
127
|
+
* @param {FindImageOptions} [options]
|
|
128
|
+
*/
|
|
129
|
+
findImageInScreenshot(screenshotId, templateScreenshotId, options) {
|
|
130
|
+
return this.get(`screenshot/${screenshotId}/find/${templateScreenshotId}`, {
|
|
131
|
+
params: options,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Same search as findImageInScreenshot, but resolves with the screenshot image with
|
|
136
|
+
* the matched region(s) outlined.
|
|
137
|
+
*/
|
|
138
|
+
findImageInScreenshotImage(screenshotId, templateScreenshotId, options) {
|
|
139
|
+
return this.get(`screenshot/${screenshotId}/find/${templateScreenshotId}/image`, {
|
|
140
|
+
params: options,
|
|
141
|
+
responseType: 'arraybuffer',
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Finds a local template image file within a stored screenshot using multi-scale
|
|
146
|
+
* template matching. The template is uploaded with the request and not stored.
|
|
147
|
+
* @param {string} screenshotId - the screenshot to search in
|
|
148
|
+
* @param {string} templateFilePath - path of the local template image to search for
|
|
149
|
+
* @param {FindImageOptions} [options]
|
|
150
|
+
*/
|
|
151
|
+
findUploadedImageInScreenshot(screenshotId, templateFilePath, options) {
|
|
152
|
+
const path = require('path');
|
|
153
|
+
const fs = require('fs');
|
|
154
|
+
const formData = new form_data_1.default();
|
|
155
|
+
const fullPath = path.resolve(templateFilePath);
|
|
156
|
+
formData.append('template', fs.createReadStream(fullPath), path.basename(fullPath));
|
|
157
|
+
return this.post(`screenshot/${screenshotId}/find`, formData, {
|
|
158
|
+
headers: formData.getHeaders(),
|
|
159
|
+
params: options,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
122
162
|
}
|
|
123
163
|
exports.ScreenshotRequests = ScreenshotRequests;
|
|
124
164
|
//# sourceMappingURL=ScreenshotRequests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenshotRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/ScreenshotRequests.ts"],"names":[],"mappings":";;;;;;AACA,0DAAiC;AACjC,iDAA8C;
|
|
1
|
+
{"version":3,"file":"ScreenshotRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/ScreenshotRequests.ts"],"names":[],"mappings":";;;;;;AACA,0DAAiC;AACjC,iDAA8C;AAQ9C,MAAa,kBAAmB,SAAQ,2BAAY;IAElD,YAAmB,aAA4B;QAC7C,KAAK,CAAC,aAAa,CAAC,CAAC;IACvB,CAAC;IAEM,cAAc,CAAC,eAAgC;QACpD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACzB,MAAM,QAAQ,GAAG,IAAI,mBAAQ,EAAE,CAAC;QAChC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAG,QAAQ,EAAE,GAAG,eAAe,CAAC;QACtE,QAAQ,CAAC,MAAM,CAAC,SAAS,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