![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
wdio-performancetotal-service
Advanced tools
With this plugin for webdriver.io you can easily add performance analysis to any flow in your tests.
npm install wdio-performancetotal-service --save
Or:
npm install wdio-performancetotal-service --save-dev
Add wdio-performancetotal-service to your wdio.conf.js
:
exports.config = {
// ...
services: ['performancetotal']
// ...
};
...or with the service options:
exports.config = {
// ...
services: [
['performancetotal',
// The options (with default values)
{
disableAppendToExistingFile: false,
performanceResultsFileName: "performance-results",
dropResultsFromFailedTest: false
}]
]
// ...
};
When set to true
, new test runs or tests from another spec file will overwrite any existing performance data.
When set to false
(default), performance data will be added to the existing data.
You can set the default results file name (performance-results
).
A newly created results file normally overwrites the old file. If you want to keep old files, it is recommended to add a timestamp to the file name. For example:
...
performanceResultsFileName: `performance-results_${new Date().getTime()}`
...
Default is false
. When the value is set to true
, performance analysis from failed tests would be excluded.
Just import performancetotal where you need it, whether it be your test file or any other class:
import { performancetotal } from "wdio-performancetotal-service";
it("should test github startup performance", () => {
// ...
performancetotal.sampleStart("Startup");
browser.url("https://github.com/");
performancetotal.sampleEnd("Startup");
//...
});
A new directory named performance-results
is created in your project's root folder and when all the tests are completed two files are created inside it: performance-results.json
and performance-results.csv
. The analyzed data includes: average time, standard error of mean(sem), number of samples, min value, max value, earliest time and latest time.
Typescript is supported for this plugin.
FAQs
WebdriverIO service for analyzing test flow performance
The npm package wdio-performancetotal-service receives a total of 13,362 weekly downloads. As such, wdio-performancetotal-service popularity was classified as popular.
We found that wdio-performancetotal-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.