Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wdio-performancetotal-service

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wdio-performancetotal-service - npm Package Compare versions

Comparing version 2.0.3-2 to 2.0.3-3

2

build/src/entities/partial-log-entry.d.ts

@@ -8,3 +8,3 @@ export declare class PartialLogEntry {

instanceId: string;
browserName: string;
brName: string;
constructor();

@@ -11,0 +11,0 @@ }

@@ -12,3 +12,3 @@ "use strict";

this.instanceId = "";
this.browserName = "";
this.brName = "";
}

@@ -15,0 +15,0 @@ }

@@ -10,5 +10,5 @@ export declare class PerformanceLogEntry {

isTestPassed: boolean;
browserName: string | undefined;
brName: string;
constructor();
getDuration(): number;
}

@@ -7,2 +7,3 @@ "use strict";

this.name = "";
this.brName = "";
this.id = "";

@@ -9,0 +10,0 @@ this.instanceId = "";

export declare class PerformanceResult {
name: string;
browserName: string | undefined;
averageTime: number;
brName: string;
avgTime: number;
sem: number;

@@ -6,0 +6,0 @@ repeats: number;

@@ -7,3 +7,4 @@ "use strict";

this.name = "";
this.averageTime = 0;
this.brName = "";
this.avgTime = 0;
this.sem = 0;

@@ -10,0 +11,0 @@ this.repeats = 0;

@@ -33,3 +33,3 @@ "use strict";

}
groupedResults = !analyzeByBrowser ? group_1.default.groupBy(performanceLogEntries, p => [p.name]) : group_1.default.groupBy(performanceLogEntries, p => [p.name, p.browserName]);
groupedResults = !analyzeByBrowser ? group_1.default.groupBy(performanceLogEntries, p => [p.name]) : group_1.default.groupBy(performanceLogEntries, p => [p.name, p.brName]);
groupedResults.forEach(group => {

@@ -40,6 +40,6 @@ const durationList = group.map(t => t.duration);

performanceResult.name = group[0].name;
performanceResult.browserName = analyzeByBrowser ? group[0].browserName : "general";
performanceResult.brName = analyzeByBrowser ? group[0].brName : "general";
performanceResult.earliestTime = group[0].startDisplayTime;
performanceResult.latestTime = group[group.length - 1].startDisplayTime;
performanceResult.averageTime = avgAndSte[0];
performanceResult.avgTime = avgAndSte[0];
performanceResult.sem = avgAndSte[1];

@@ -51,3 +51,3 @@ performanceResult.repeats = durationList.length;

});
const picked = this._performanceResults.map(({ name, browserName, averageTime, sem, repeats, minValue, maxValue }) => ({ name, browserName, averageTime, sem, repeats, minValue, maxValue }));
const picked = this._performanceResults.map(({ name, brName, avgTime, sem, repeats, minValue, maxValue }) => ({ name, brName, avgTime, sem, repeats, minValue, maxValue }));
console.log("\nPerformance-Total results:\n");

@@ -54,0 +54,0 @@ console.table(picked);

@@ -27,2 +27,3 @@ "use strict";

revStartEntries.forEach(startEntry => {
var _a;
const tempPerformanceEntry = new performance_log_entry_1.PerformanceLogEntry();

@@ -34,2 +35,3 @@ const correspondedEndEntry = this._endLogEntries.find((e) => e.id == startEntry.id);

tempPerformanceEntry.name = correspondedEndEntry.name;
tempPerformanceEntry.brName = (_a = browser.capabilities.browserName) !== null && _a !== void 0 ? _a : "";
tempPerformanceEntry.startDisplayTime = startEntry.displayTime;

@@ -40,3 +42,2 @@ tempPerformanceEntry.startTime = startEntry.time;

tempPerformanceEntry.isTestPassed = isTestPassed;
tempPerformanceEntry.browserName = browser.capabilities.browserName;
this._performanceEntries.push(tempPerformanceEntry);

@@ -43,0 +44,0 @@ }

{
"name": "wdio-performancetotal-service",
"version": "2.0.3-2",
"version": "2.0.3-3",
"description": "WebdriverIO service for analyzing test flow performance",

@@ -5,0 +5,0 @@ "main": "build/app.js",

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