Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
feat: remove report portal support (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixZilber authored Jul 20, 2022
1 parent f0fd9a7 commit ebaabe8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 191 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
"tsconfig-paths": "^3.14.1",
"wdio-docker-service": "^3.2.0",
"wdio-image-comparison-service": "^3.1.0",
"wdio-reportportal-reporter": "^7.4.1",
"wdio-reportportal-service": "^7.3.1",
"webdriverio": "^7.20.5",
"yargs": "^17.4.0"
},
Expand Down
80 changes: 0 additions & 80 deletions src/commons/ReportPortal.ts

This file was deleted.

10 changes: 1 addition & 9 deletions src/commons/Reporter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import path from 'path';
import { AllureReporter } from './AllureReport';
import { ConsoleReport } from './ConsoleReport';
import { ReportPortal } from './ReportPortal';
import { TestUtils } from '../index';
import fs from 'fs';

Expand Down Expand Up @@ -64,7 +63,7 @@ export namespace Reporter {
* Close step in report
*/
// eslint-disable-next-line
export async function closeStep(isFailed: boolean, test?: any): Promise<void> {
export async function closeStep(isFailed: boolean): Promise<void> {
let screenshotFilePath;
if (isFailed) {
screenshotFilePath = path.join(__dirname, `${TestUtils.randomString(10)}.png`);
Expand All @@ -75,9 +74,6 @@ export namespace Reporter {
const browserLogs = await browser.getLogs('browser');
await AllureReporter.closeStep(isFailed, browserLogs, pageSource, networkActivity);

if (test) {
await ReportPortal.finalizeTest(isFailed, test, screenshotFilePath, browserLogs, pageSource, networkActivity);
}
if (isFailed) {
fs.unlinkSync(screenshotFilePath);
}
Expand All @@ -102,7 +98,6 @@ export namespace Reporter {
export async function step(msg: string): Promise<void> {
await ConsoleReport.step(msg);
await AllureReporter.step(msg);
await ReportPortal.step(msg);
}

/**
Expand All @@ -113,7 +108,6 @@ export namespace Reporter {
export async function debug(msg: string): Promise<void> {
await ConsoleReport.debug(msg);
await AllureReporter.addLogEntry('[DEBUG]', msg);
await ReportPortal.debug(msg);
}

/**
Expand All @@ -124,7 +118,6 @@ export namespace Reporter {
export async function warning(msg: string): Promise<void> {
await ConsoleReport.warning(msg);
await AllureReporter.addLogEntry('[WARNING]', msg);
await ReportPortal.warning(msg);
}

/**
Expand All @@ -135,7 +128,6 @@ export namespace Reporter {
export async function error(msg: string): Promise<void> {
await ConsoleReport.error(msg);
await AllureReporter.addLogEntry('[ERROR]', msg);
await ReportPortal.error(msg);
}

/**
Expand Down
102 changes: 2 additions & 100 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,6 @@
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.7.tgz#6099720c8839ca865a2637e6c85852ead0bdb595"
integrity sha512-X67Z5y+VBJuHB/RjwECp8kSl5uYi0BvRbNeWqkaJCVh+LiTPl19WBUfG627psSgp9rSf6ojuXghQM3ha6qHHdA==

"@babel/runtime@^7.15.4":
version "7.16.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.16.5.tgz#7f3e34bf8bdbbadf03fbb7b1ea0d929569c9487a"
integrity sha512-TXWihFIS3Pyv5hzR7j6ihmeLkZfrXGxAr5UfSl8CHf+6q/wpiYDkUau0czckpYG8QmnCIuPpdLtuA9VmuGGyMA==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/template@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4"
Expand Down Expand Up @@ -736,11 +729,6 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.21.tgz#0155ee46f6be28b2ff0342ca1a9b9fd4468bef41"
integrity sha512-x5W9s+8P4XteaxT/jKF0PSb7XEvo5VmqEWgsMlyeY4ZlLK8I6aH6g5TPPyDlLAep+GYf4kefb7HFyc7PAO3m+Q==

"@types/node@^16.11.1":
version "16.11.17"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.17.tgz#ae146499772e33fc6382e1880bc567e41a528586"
integrity sha512-C1vTZME8cFo8uxY2ui41xcynEotVkczIVI5AjLmy5pkpBv/FtG+jhtOlfcPysI8VRVwoOMv6NJm44LGnoMSWkw==

"@types/node@^18.0.0", "@types/node@^18.0.1":
version "18.0.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.1.tgz#e91bd73239b338557a84d1f67f7b9e0f25643870"
Expand Down Expand Up @@ -1097,22 +1085,6 @@
object-inspect "^1.10.3"
supports-color "8.1.1"

"@wdio/reporter@^7.16.3":
version "7.16.11"
resolved "https://registry.yarnpkg.com/@wdio/reporter/-/reporter-7.16.11.tgz#21480cc876a80b75d29cd5886de380c41dba12f3"
integrity sha512-dZxR+IoZ2z2q8Z/3TBCuFgNfs8ZvSYNroe/WOD4Ivx9WK+B+N+wtn8U4KfEQF+0HS4TowPQQiEtFacT+F6lPvA==
dependencies:
"@types/diff" "^5.0.0"
"@types/node" "^16.11.1"
"@types/object-inspect" "^1.8.0"
"@types/supports-color" "^8.1.0"
"@types/tmp" "^0.2.0"
"@wdio/types" "7.16.11"
diff "^5.0.0"
fs-extra "^10.0.0"
object-inspect "^1.10.3"
supports-color "8.1.1"

"@wdio/runner@7.20.5":
version "7.20.5"
resolved "https://registry.yarnpkg.com/@wdio/runner/-/runner-7.20.5.tgz#59e0647b87a642b65b3382451de3e2efca479305"
Expand Down Expand Up @@ -1141,14 +1113,6 @@
fs-extra "^10.0.0"
selenium-standalone "^7.0.1"

"@wdio/types@7.16.11":
version "7.16.11"
resolved "https://registry.yarnpkg.com/@wdio/types/-/types-7.16.11.tgz#110bf91f17cbdc8be0fa4363581372036ebc7d0c"
integrity sha512-OFVTFEB6qdG84Y+cOWIacV0loGMgq2SF/rGGlGxai89V3UQxzCFTYVoAx6odAuSNZ37wmfWCykyAR/lAlMItoQ==
dependencies:
"@types/node" "^16.11.1"
got "^11.8.1"

"@wdio/types@7.20.3":
version "7.20.3"
resolved "https://registry.yarnpkg.com/@wdio/types/-/types-7.20.3.tgz#c8fab460b1ff75a698d17465af63753114c4281e"
Expand Down Expand Up @@ -1496,21 +1460,6 @@ axe-core@4.2.3:
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.2.3.tgz#2a3afc332f0031b42f602f4a3de03c211ca98f72"
integrity sha512-pXnVMfJKSIWU2Ml4JHP7pZEPIrgBO1Fd3WGx+fPBsS+KRGhE4vxooD8XBGWbQOIVSZsVK7pUDBBkCicNu80yzQ==

axios-retry@^3.2.3:
version "3.2.4"
resolved "https://registry.yarnpkg.com/axios-retry/-/axios-retry-3.2.4.tgz#f447a53c3456f5bfeca18f20c3a3272207d082ae"
integrity sha512-Co3UXiv4npi6lM963mfnuH90/YFLKWWDmoBYfxkHT5xtkSSWNqK9zdG3fw5/CP/dsoKB5aMMJCsgab+tp1OxLQ==
dependencies:
"@babel/runtime" "^7.15.4"
is-retry-allowed "^2.2.0"

axios@^0.23.0:
version "0.23.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.23.0.tgz#b0fa5d0948a8d1d75e3d5635238b6c4625b05149"
integrity sha512-NmvAE4i0YAv5cKq8zlDoPd1VLKAqX5oLuZKs8xkJa4qi6RGn0uhCYFjWtHHC9EM/MwOwYWOs53W+V0aqEXq1sg==
dependencies:
follow-redirects "^1.14.4"

axios@^0.26.1:
version "0.26.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"
Expand Down Expand Up @@ -3254,7 +3203,7 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==

follow-redirects@^1.14.4, follow-redirects@^1.14.7, follow-redirects@^1.14.8:
follow-redirects@^1.14.7, follow-redirects@^1.14.8:
version "1.14.9"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7"
integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==
Expand Down Expand Up @@ -4062,11 +4011,6 @@ is-port-reachable@^3.0.0:
resolved "https://registry.yarnpkg.com/is-port-reachable/-/is-port-reachable-3.0.0.tgz#edf721e7d354e6e00cbeb0fc174ad89bdf6056b3"
integrity sha512-056IzLiWHdgVd6Eq1F9HtJl+cIkvi5X2MJ/A1fjQtByHkzQE1wGardnPhqrarOGDF88BOW+297X7PDvZ2vcyVg==

is-retry-allowed@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz#88f34cbd236e043e71b6932d09b0c65fb7b4d71d"
integrity sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==

is-stream@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3"
Expand Down Expand Up @@ -4290,7 +4234,7 @@ json-stable-stringify-without-jsonify@^1.0.1:
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=

json-stringify-safe@5, json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1:
json-stringify-safe@5, json-stringify-safe@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
Expand Down Expand Up @@ -6071,11 +6015,6 @@ reduce-flatten@^2.0.0:
resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-2.0.0.tgz#734fd84e65f375d7ca4465c69798c25c9d10ae27"
integrity sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==

regenerator-runtime@^0.13.4:
version "0.13.7"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==

regexpp@^3.1.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2"
Expand All @@ -6102,15 +6041,6 @@ repeating@^2.0.0:
dependencies:
is-finite "^1.0.0"

reportportal-js-client@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/reportportal-js-client/-/reportportal-js-client-2.2.1.tgz#4b7b6e215d9f30ec622a3015f18c646d79f4b301"
integrity sha512-ruYlBudv2UffXOkKuepcgKgo+sOJRC/AEXf/8TWeFcbWtQe1uIkZ1EjWPTeoApGvWzhvy55DnjWdxlFxmgnaNQ==
dependencies:
axios "^0.23.0"
axios-retry "^3.2.3"
uniqid "^5.4.0"

require-directory@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
Expand Down Expand Up @@ -7183,11 +7113,6 @@ unbzip2-stream@1.4.3:
buffer "^5.2.1"
through "^2.3.8"

uniqid@^5.4.0:
version "5.4.0"
resolved "https://registry.yarnpkg.com/uniqid/-/uniqid-5.4.0.tgz#4e17bfcab66dfe33563411ae0c801f46ef964e66"
integrity sha512-38JRbJ4Fj94VmnC7G/J/5n5SC7Ab46OM5iNtSstB/ko3l1b5g7ALt4qzHFgGciFkyiRNtDXtLNb+VsxtMSE77A==

unique-string@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d"
Expand Down Expand Up @@ -7286,11 +7211,6 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"

validator@^13.7.0:
version "13.7.0"
resolved "https://registry.yarnpkg.com/validator/-/validator-13.7.0.tgz#4f9658ba13ba8f3d82ee881d3516489ea85c0857"
integrity sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==

vary@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
Expand Down Expand Up @@ -7325,24 +7245,6 @@ wdio-image-comparison-service@^3.1.0:
"@wdio/logger" "^7.16.0"
webdriver-image-comparison "0.20.2"

wdio-reportportal-reporter@^7.4.1:
version "7.4.1"
resolved "https://registry.yarnpkg.com/wdio-reportportal-reporter/-/wdio-reportportal-reporter-7.4.1.tgz#09cfc90c78eca4e9a4fe4638a05612b752ee6c2d"
integrity sha512-N+y5i0dJNdLdpN3JNeDg3E9EubKCEyTZGb1bQ/KFF81glhZ0gKexKNYAbDcwC8ezldp40BEwzWV49AVTvtmcNg==
dependencies:
"@wdio/logger" "^7.16.0"
"@wdio/reporter" "^7.16.3"
json-stringify-safe "~5.0.1"
reportportal-js-client "^2.2.1"
validator "^13.7.0"

wdio-reportportal-service@^7.3.1:
version "7.3.1"
resolved "https://registry.yarnpkg.com/wdio-reportportal-service/-/wdio-reportportal-service-7.3.1.tgz#1c1175dbdb5c3bcc8dc92d9297f511ec68967f5b"
integrity sha512-EuG4+PLCSVDHIqm+5YN8CC/Yakim9HRaq2L15HO6Xosd+9P+BL1yhh2IiLHZ/sJk2cD01tRXosjFiuQBFXKSQQ==
dependencies:
reportportal-js-client "^2.2.1"

webdriver-image-comparison@0.20.2:
version "0.20.2"
resolved "https://registry.yarnpkg.com/webdriver-image-comparison/-/webdriver-image-comparison-0.20.2.tgz#6a4bfbeda150698f1eabb53f46cc8d807afdda11"
Expand Down

0 comments on commit ebaabe8

Please sign in to comment.