@testim/testim-cli 3.275.0 → 3.279.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/commons/testimServicesApi.js +21 -0
- package/npm-shrinkwrap.json +509 -791
- package/package.json +4 -4
- package/player/services/tabServiceMock.js +1 -0
- package/testRunStatus.js +16 -10
- package/workers/WorkerAppium.js +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testim/testim-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.279.0",
|
|
4
4
|
"description": "Command line interface for running Testing on your CI",
|
|
5
5
|
"author": "Oren Rubin",
|
|
6
6
|
"contributors": [{
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"gulp-preprocess": "3.0.3",
|
|
23
23
|
"merge-stream": "2.0.0",
|
|
24
24
|
"proxyquire": "2.1.3",
|
|
25
|
-
"request": "2.
|
|
25
|
+
"request-micro": "2.0.1",
|
|
26
26
|
"sinon": "9.0.2",
|
|
27
27
|
"sinon-chai": "3.7.0",
|
|
28
28
|
"ts-node": "9.1.1",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@applitools/eyes-sdk-core": "13.11.21",
|
|
46
46
|
"@testim/coralogix-logger": "1.1.27-beta.1",
|
|
47
|
-
"@testim/webdriverio": "0.0.
|
|
47
|
+
"@testim/webdriverio": "0.0.8",
|
|
48
48
|
"abort-controller": "3.0.0",
|
|
49
49
|
"ajv": "6.12.6",
|
|
50
50
|
"analytics-node": "5.0.0",
|
|
51
51
|
"appium-dom-utils": "1.0.6",
|
|
52
52
|
"archiver": "5.3.0",
|
|
53
|
-
"body-parser": "1.
|
|
53
|
+
"body-parser": "1.20.1",
|
|
54
54
|
"chalk": "4.1.2",
|
|
55
55
|
"chrome-launcher": "0.15.0",
|
|
56
56
|
"combine-source-map": "0.8.0",
|
package/testRunStatus.js
CHANGED
|
@@ -395,7 +395,7 @@ class RunStatus {
|
|
|
395
395
|
false,
|
|
396
396
|
undefined,
|
|
397
397
|
remoteRunId,
|
|
398
|
-
undefined
|
|
398
|
+
undefined,
|
|
399
399
|
),
|
|
400
400
|
]));
|
|
401
401
|
|
|
@@ -502,13 +502,19 @@ class RunStatus {
|
|
|
502
502
|
|
|
503
503
|
const { seleniumPerfMarks, ...resultExtraData } = this.seleniumPerfStats.getStats();
|
|
504
504
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
505
|
+
try {
|
|
506
|
+
await runHook(this.options.afterSuite, {
|
|
507
|
+
exportsGlobal: this.exportsGlobal,
|
|
508
|
+
tests,
|
|
509
|
+
total,
|
|
510
|
+
passed,
|
|
511
|
+
skipped,
|
|
512
|
+
});
|
|
513
|
+
} catch (err) {
|
|
514
|
+
// eslint-disable-next-line no-console
|
|
515
|
+
console.log('check your callback handler on afterSuite Hook for syntax or exception errors');
|
|
516
|
+
logger.warn('error while running afterSuite Hook', { err, projectId: this.options.projectData.projectId, executionId: this.options.executionId });
|
|
517
|
+
}
|
|
512
518
|
const coverageSummary = await calculateCoverage(this.options, this.branchToUse, total, executionId);
|
|
513
519
|
resultExtraData.coverageSummary = coverageSummary;
|
|
514
520
|
|
|
@@ -527,7 +533,7 @@ class RunStatus {
|
|
|
527
533
|
tmsCustomFields: this.options.tmsCustomFields,
|
|
528
534
|
},
|
|
529
535
|
this.options.remoteRunId,
|
|
530
|
-
resultExtraData
|
|
536
|
+
resultExtraData,
|
|
531
537
|
);
|
|
532
538
|
} catch (err) {
|
|
533
539
|
logger.error('Failed to update suite finished', { err });
|
|
@@ -546,7 +552,7 @@ class RunStatus {
|
|
|
546
552
|
success,
|
|
547
553
|
this.startTime,
|
|
548
554
|
null,
|
|
549
|
-
this.options.project
|
|
555
|
+
this.options.project,
|
|
550
556
|
);
|
|
551
557
|
for (const resultId of queuedResultIds) {
|
|
552
558
|
const test = this.getTestResult(resultId);
|
package/workers/WorkerAppium.js
CHANGED
|
@@ -76,8 +76,13 @@ class WorkerAppium extends BaseWorker {
|
|
|
76
76
|
_executionId, _testId, _testResultId,
|
|
77
77
|
_options: { project: projectId },
|
|
78
78
|
} = testRunHandler;
|
|
79
|
+
const { projectData: { type: projectType }, company: { companyId }, gridId } = this.options;
|
|
80
|
+
|
|
81
|
+
const selectedDeviceArr = await testimServicesApi.getMobileDevicesFromGrid({ projectType, companyId, gridId, selectors: `device_id:${activeSession.capabilities.udid}` });
|
|
82
|
+
const deviceName = selectedDeviceArr[0]?.name;
|
|
83
|
+
|
|
79
84
|
const device = {
|
|
80
|
-
name:
|
|
85
|
+
name: deviceName,
|
|
81
86
|
model: activeSession.capabilities.deviceModel,
|
|
82
87
|
osVersion: activeSession.capabilities.platformVersion,
|
|
83
88
|
udid: activeSession.capabilities.udid,
|