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 1.0.10 to 2.0.1-0

13

build/src/service.d.ts

@@ -1,3 +0,2 @@

/// <reference types="@wdio/sync/webdriverio-core" />
/// <reference types="@wdio/sync" />
/// <reference types="webdriverio/async" />
export default class PerformanceTotalService {

@@ -30,5 +29,11 @@ browser: WebdriverIO.Browser;

beforeScenario(test: any, context: any): Promise<void>;
afterTest(test: any, context: any, { error, result, duration, passed, retries }: any): void;
afterScenario({ result }: any): void;
afterTest(test: any, context: any, { error, result, duration, passed, retries }: {
error: any;
result: any;
duration: any;
passed: any;
retries: any;
}): void;
afterScenario(test: any, context: any): void;
after(exitCode: any, config: any, capabilities: any): Promise<void>;
}

@@ -54,11 +54,8 @@ "use strict";

}
//@ts-ignore
afterTest(test, context, { error, result, duration, passed, retries }) {
performance_total_1.default.finalize(passed);
}
afterScenario({ result }) {
let status = false;
if (result.status === Status.PASSED) {
status = true;
}
performance_total_1.default.finalize(status);
afterScenario(test, context) {
performance_total_1.default.finalize(test.result.status == Status.PASSED);
}

@@ -65,0 +62,0 @@ after(exitCode, config, capabilities) {

{
"name": "wdio-performancetotal-service",
"version": "1.0.10",
"version": "2.0.1-0",
"description": "WebdriverIO service for analyzing test flow performance",

@@ -22,15 +22,3 @@ "main": "build/app.js",

"license": "ISC",
"devDependencies": {
"@types/mocha": "^8.2.0",
"@types/objects-to-csv": "^1.3.0",
"@wdio/cli": "^6.10.11",
"@wdio/local-runner": "^6.10.13",
"@wdio/mocha-framework": "^6.10.11",
"@wdio/spec-reporter": "^6.10.6",
"@wdio/sync": "^6.10.11",
"chromedriver": "^89.0.0",
"ts-node": "^9.1.1",
"typescript": "^4.1.3",
"wdio-chromedriver-service": "^6.0.4"
},
"devDependencies": {},
"dependencies": {

@@ -37,0 +25,0 @@ "objects-to-csv": "^1.3.6"

# performance-total
![chart](resources/chart.png)
Note:
For WebdriverIO v7 use version 2.x.x
For WebdriverIO v6 use version 1.x.x
With this plugin for [webdriver.io](https://webdriver.io/) you can easily add performance analysis to any flow in your tests.

@@ -5,0 +9,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