wdio-performancetotal-service
Advanced tools
Comparing version 1.0.10 to 2.0.1-0
@@ -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 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
737
110
35666
3