Group by FF/Chrome to make it easier to use (#1974)
This commit is contained in:
parent
d1ba3e5769
commit
f82dbfb8b3
|
|
@ -91,6 +91,7 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.pageCompleteCheck', {
|
||||
alias: 'pageCompleteCheck',
|
||||
describe:
|
||||
'Supply a Javascript that decides when the browser is finished loading the page and can start to collect metrics. The Javascript snippet is repeatedly queried to see if page has completed loading (indicated by the script returning true). Use it to fetch timings happening after the loadEventEnd.',
|
||||
group: 'Browser'
|
||||
|
|
@ -107,11 +108,13 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.viewPort', {
|
||||
alias: 'viewPort',
|
||||
default: browsertimeConfig.viewPort,
|
||||
describe: 'The browser view port size WidthxHeight like 400x300',
|
||||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.userAgent', {
|
||||
alias: 'userAgent',
|
||||
describe:
|
||||
'The full User Agent string, defaults to the User Agent used by the browsertime.browser option.',
|
||||
group: 'Browser'
|
||||
|
|
@ -134,6 +137,7 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.delay', {
|
||||
alias: 'delay',
|
||||
describe:
|
||||
'Delay between runs, in milliseconds. Use it if your web server needs to rest between runs :)',
|
||||
group: 'Browser'
|
||||
|
|
@ -151,18 +155,20 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.videoParams.framerate', {
|
||||
alias: ['videoParams.framerate', 'fps'],
|
||||
default: 30,
|
||||
alias: 'fps',
|
||||
describe: 'Frames per second in the video',
|
||||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.videoParams.crf', {
|
||||
alias: 'videoParams.crf',
|
||||
default: 23,
|
||||
describe:
|
||||
'Constant rate factor for the end result video, see https://trac.ffmpeg.org/wiki/Encode/H.264#crf',
|
||||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.videoParams.addTimer', {
|
||||
alias: 'videoParams.addTimer',
|
||||
default: true,
|
||||
type: 'boolean',
|
||||
describe: 'Add timer and metrics to the video',
|
||||
|
|
@ -175,77 +181,127 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.firefox.preference', {
|
||||
alias: 'firefox.preference',
|
||||
describe:
|
||||
'Extra command line arguments to pass Firefox preferences by the format key:value ' +
|
||||
'To add multiple preferences, repeat --browsertime.firefox.preference once per argument.',
|
||||
group: 'Browser'
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.includeResponseBodies', {
|
||||
alias: 'firefox.includeResponseBodies',
|
||||
describe: 'Include response bodies in HAR',
|
||||
default: 'none',
|
||||
choices: ['none', 'all', 'html'],
|
||||
group: 'Browser'
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.nightly', {
|
||||
alias: 'firefox.nightly',
|
||||
describe:
|
||||
'Use Firefox Nightly. Works on OS X. For Linux you need to set the binary path.',
|
||||
type: 'boolean',
|
||||
group: 'Browser'
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.beta', {
|
||||
alias: 'firefox.beta',
|
||||
describe:
|
||||
'Use Firefox Beta. Works on OS X. For Linux you need to set the binary path.',
|
||||
type: 'boolean',
|
||||
group: 'Browser'
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.developer', {
|
||||
alias: 'firefox.developer',
|
||||
describe:
|
||||
'Use Firefox Developer. Works on OS X. For Linux you need to set the binary path.',
|
||||
type: 'boolean',
|
||||
group: 'Browser'
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.binaryPath', {
|
||||
alias: 'firefox.binaryPath',
|
||||
describe:
|
||||
'Path to custom Firefox binary (e.g. Firefox Nightly). ' +
|
||||
'On OS X, the path should be to the binary inside the app bundle, ' +
|
||||
'e.g. /Applications/Firefox.app/Contents/MacOS/firefox-bin',
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.preference', {
|
||||
alias: 'firefox.preference',
|
||||
describe:
|
||||
'Extra command line arguments to pass Firefox preferences by the format key:value ' +
|
||||
'To add multiple preferences, repeat --firefox.preference once per argument.',
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.acceptInsecureCerts', {
|
||||
alias: 'firefox.acceptInsecureCerts',
|
||||
describe: 'Accept insecure certs',
|
||||
type: 'boolean',
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.firefox.collectMozLog', {
|
||||
alias: 'firefox.collectMozLog',
|
||||
type: 'boolean',
|
||||
describe: 'Collect the MOZ HTTP log',
|
||||
group: 'Firefox'
|
||||
})
|
||||
.option('browsertime.chrome.args', {
|
||||
alias: 'chrome.args',
|
||||
describe:
|
||||
'Extra command line arguments to pass to the Chrome process. Always leave out the starting -- (--no-sandbox will be no-sandbox). ' +
|
||||
'To add multiple arguments to Chrome, repeat --browsertime.chrome.args once per argument.',
|
||||
group: 'Browser'
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.chrome.timeline', {
|
||||
alias: 'chrome.timeline',
|
||||
describe:
|
||||
'Collect the timeline data. Drag and drop the JSON in your Chrome detvools timeline panel or check out the CPU metrics.',
|
||||
type: 'boolean',
|
||||
group: 'Browser'
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.chrome.android.package', {
|
||||
alias: 'chrome.android.package',
|
||||
describe:
|
||||
'Run Chrome on your Android device. Set to com.android.chrome for default Chrome version. You need to run adb start-server before you start.',
|
||||
group: 'Browser'
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.chrome.android.deviceSerial', {
|
||||
alias: 'chrome.android.deviceSerial',
|
||||
describe:
|
||||
'Choose which device to use. If you do not set it, the first found device will be used.',
|
||||
group: 'Browser'
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.chrome.collectNetLog', {
|
||||
alias: 'chrome.collectNetLog',
|
||||
type: 'boolean',
|
||||
describe: 'Collect network log from Chrome and save to disk.',
|
||||
group: 'Browser'
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.chrome.traceCategories', {
|
||||
alias: 'chrome.traceCategories',
|
||||
describe: 'Set the trace categories.',
|
||||
type: 'string',
|
||||
group: 'Browser'
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.chrome.collectConsoleLog', {
|
||||
alias: 'chrome.collectConsoleLog',
|
||||
type: 'boolean',
|
||||
describe: 'Collect Chromes console log and save to disk.',
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.chrome.binaryPath', {
|
||||
alias: 'chrome.binaryPath',
|
||||
describe:
|
||||
'Path to custom Chrome binary (e.g. Chrome Canary). ' +
|
||||
'On OS X, the path should be to the binary inside the app bundle, ' +
|
||||
'e.g. "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"',
|
||||
group: 'Chrome'
|
||||
})
|
||||
.option('browsertime.requestheader', {
|
||||
alias: 'r',
|
||||
alias: ['r', 'requestheader'],
|
||||
describe:
|
||||
'Request header that will be added to the request. Add multiple instances to add multiple request headers. Use the following format key:value',
|
||||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.block', {
|
||||
alias: 'block',
|
||||
describe:
|
||||
'Domain to block. Add multiple instances to add multiple domains that will be blocked.',
|
||||
group: 'Browser'
|
||||
|
|
@ -257,11 +313,13 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
alias: 'basicAuth'
|
||||
})
|
||||
.option('browsertime.proxy.http', {
|
||||
alias: 'proxy.http',
|
||||
type: 'string',
|
||||
describe: 'Http proxy (host:port)',
|
||||
group: 'proxy'
|
||||
})
|
||||
.option('browsertime.proxy.https', {
|
||||
alias: 'proxy.https',
|
||||
type: 'string',
|
||||
describe: 'Https proxy (host:port)',
|
||||
group: 'proxy'
|
||||
|
|
@ -638,13 +696,13 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
describe: 'Show brief text summary to stdout',
|
||||
default: false,
|
||||
type: 'boolean',
|
||||
group: 'text'
|
||||
group: 'Text'
|
||||
})
|
||||
.option('summary-detail', {
|
||||
describe: 'Show longer text summary to stdout',
|
||||
default: false,
|
||||
type: 'boolean',
|
||||
group: 'text'
|
||||
group: 'Text'
|
||||
})
|
||||
.option('mobile', {
|
||||
describe:
|
||||
|
|
|
|||
Loading…
Reference in New Issue