Add max load time
This commit is contained in:
parent
71e88c25ce
commit
230c28bc14
|
|
@ -336,16 +336,24 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|||
'The path to your Humble instance. For example http://raspberrypi:3000',
|
||||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.timeouts.pageCompleteCheck', {
|
||||
alias: 'maxLoadTime',
|
||||
default: 120000,
|
||||
type: 'number',
|
||||
describe:
|
||||
'The max load time to wait for a page to finish loading (in milliseconds).',
|
||||
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.',
|
||||
'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). Checkout https://www.sitespeed.io/documentation/sitespeed.io/browsers/#choose-when-to-end-your-test ',
|
||||
group: 'Browser'
|
||||
})
|
||||
.option('browsertime.pageCompleteWaitTime', {
|
||||
alias: 'pageCompleteWaitTime',
|
||||
describe:
|
||||
'How long time you want to wait for your pageComplteteCheck to finish, after it is signaled to closed. Extra parameter passed on to your pageCompleteCheck.',
|
||||
'How long time you want to wait for your pageCompleteCheck to finish, after it is signaled to closed. Extra parameter passed on to your pageCompleteCheck.',
|
||||
default: 5000,
|
||||
group: 'Browser'
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue