Most of the configuration part happens in the config file. (wsce.config.js
by default)
Here is the default configuration file:
// wsce.config.js
module.exports = {
scraper: {
urls: [],
puppeteerOptions: {},
addons: [],
interval: 60_000,
},
exporter: {
port: 9924,
},
};
-
- urls:
string[]
The URLs to measure - puppeteerOptions:
PuppeteerOptions
Options object to pass to the puppeteerlaunch
function - addons:
Addon[]
see ADDONS.md - interval:
number
The scraper's interval - forceRecreateBrowser:
boolean
Force the browser recreation for each test - concurrentTests:
number
Maximum tests to be ran at the same time
⚠️ IfforceRecreateBrowser
is set to true, this will automatically be set to 1- queueThreshold:
number
Maximum tests queue size, the program will exit when the queue exceeds this size,
- urls:
-
- port:
number
The port for the exporter to listen on
- port: