New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wdio-reportportal-reporter

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wdio-reportportal-reporter - npm Package Compare versions

Comparing version 6.4.0 to 6.4.1

4

build/reporter.d.ts

@@ -10,5 +10,5 @@ import Reporter from "@wdio/reporter";

static sendLog(level: LEVEL | keyof typeof LEVEL, message: any): void;
static sendFile(level: LEVEL | keyof typeof LEVEL, name: string, content: any, type?: string): void;
static sendFile(level: LEVEL | keyof typeof LEVEL, name: string, content: any, type?: string, message?: string): void;
static sendLogToTest(test: any, level: LEVEL | keyof typeof LEVEL, message: any): void;
static sendFileToTest(test: any, level: LEVEL | keyof typeof LEVEL, name: string, content: any, type?: string): void;
static sendFileToTest(test: any, level: LEVEL | keyof typeof LEVEL, name: string, content: any, type?: string, message?: string): void;
static finishTestManually(test: any): void;

@@ -15,0 +15,0 @@ static addAttribute(attribute: Attribute): void;

@@ -43,4 +43,4 @@ "use strict";

}
static sendFile(level, name, content, type = "image/png") {
utils_1.sendToReporter(constants_1.EVENTS.RP_FILE, { level, name, content, type });
static sendFile(level, name, content, type = "image/png", message = "") {
utils_1.sendToReporter(constants_1.EVENTS.RP_FILE, { level, name, content, type, message });
}

@@ -50,4 +50,4 @@ static sendLogToTest(test, level, message) {

}
static sendFileToTest(test, level, name, content, type = "image/png") {
utils_1.sendToReporter(constants_1.EVENTS.RP_TEST_FILE, { test, level, name, content, type });
static sendFileToTest(test, level, name, content, type = "image/png", message = "") {
utils_1.sendToReporter(constants_1.EVENTS.RP_TEST_FILE, { test, level, name, content, type, message });
}

@@ -278,2 +278,3 @@ static finishTestManually(test) {

name: "screenshot.png",
message: "screenshot"
};

@@ -334,3 +335,3 @@ this.sendFile(obj);

}
sendFile({ level, name, content, type = "image/png" }) {
sendFile({ level, name, content, type = "image/png", message = "" }) {
const testItem = this.storage.getCurrentTest();

@@ -341,3 +342,3 @@ if (!testItem) {

}
const { promise } = this.client.sendLog(testItem.id, { level }, { name, content, type });
const { promise } = this.client.sendLog(testItem.id, { level }, { name, content, type, message });
utils_1.promiseErrorHandler(promise);

@@ -367,3 +368,3 @@ }

}
sendFileToTest({ test, level, name, content, type = "image/png" }) {
sendFileToTest({ test, level, name, content, type = "image/png", message = "" }) {
return __awaiter(this, void 0, void 0, function* () {

@@ -382,3 +383,3 @@ const testObj = this.storage.getStartedTests().reverse().find((startedTest) => {

level,
message: "",
message,
time: this.now(),

@@ -385,0 +386,0 @@ };

@@ -39,4 +39,4 @@ import logger from "@wdio/logger";

public static sendFile(level: LEVEL | keyof typeof LEVEL, name: string, content: any, type = "image/png") {
sendToReporter(EVENTS.RP_FILE, {level, name, content, type});
public static sendFile(level: LEVEL | keyof typeof LEVEL, name: string, content: any, type = "image/png", message = "") {
sendToReporter(EVENTS.RP_FILE, {level, name, content, type, message});
}

@@ -48,4 +48,4 @@

public static sendFileToTest(test: any, level: LEVEL | keyof typeof LEVEL, name: string, content: any, type = "image/png") {
sendToReporter(EVENTS.RP_TEST_FILE, {test, level, name, content, type});
public static sendFileToTest(test: any, level: LEVEL | keyof typeof LEVEL, name: string, content: any, type = "image/png", message = "") {
sendToReporter(EVENTS.RP_TEST_FILE, {test, level, name, content, type, message});
}

@@ -323,2 +323,3 @@

name: "screenshot.png",
message: "screenshot"
};

@@ -387,3 +388,3 @@ this.sendFile(obj);

private sendFile({level, name, content, type = "image/png"}) {
private sendFile({level, name, content, type = "image/png", message = ""}) {
const testItem = this.storage.getCurrentTest();

@@ -395,3 +396,3 @@ if (!testItem) {

const {promise} = this.client.sendLog(testItem.id, {level}, {name, content, type});
const {promise} = this.client.sendLog(testItem.id, {level}, {name, content, type, message});
promiseErrorHandler(promise);

@@ -424,3 +425,3 @@ }

private async sendFileToTest({test, level, name, content, type = "image/png"}) {
private async sendFileToTest({test, level, name, content, type = "image/png", message = ""}) {
const testObj = this.storage.getStartedTests().reverse().find((startedTest) => {

@@ -439,3 +440,3 @@ return startedTest.wdioEntity.title === test.title;

level,
message: "",
message,
time: this.now(),

@@ -442,0 +443,0 @@ };

{
"name": "wdio-reportportal-reporter",
"version": "6.4.0",
"version": "6.4.1",
"description": "A WebdriverIO v6 plugin. Report results to Report Portal.",

@@ -40,3 +40,3 @@ "main": "build/reporter.js",

"@wdio/logger": "^6.10.10",
"reportportal-js-client": "^2.1.1"
"reportportal-js-client": "^2.1.2"
},

@@ -43,0 +43,0 @@ "devDependencies": {

@@ -16,4 +16,4 @@ WDIO Report Portal Reporter

"devDependencies": {
"wdio-reportportal-reporter": "6.4.0",
"wdio-reportportal-service": "6.4.0"
"wdio-reportportal-reporter": "^6.4.0",
"wdio-reportportal-service": "^6.4.0"
}

@@ -84,2 +84,3 @@ }

* `type` (*string*, optional) – attachment MIME-type, `image/png` by default
* `message` (*string*)– log message content.
* `reporter.sendLogToTest(test, level, message)` - send log to specific test.

@@ -95,3 +96,5 @@ * `test` (*object*) - test object from `afterTest\afterStep` wdio hook

* `type` (*string*, optional) – attachment MIME-type, `image/png` by default
* `message` (*string*)– log message content.
Pay attention: `sendLog`\\`sendFile` sends log to **current running test item**. It means if you send log without active test(e.g from hooks or on suite level) it will not be reported Report Portal UI.

@@ -98,0 +101,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc