docs: timeline of when to end your tests

This commit is contained in:
soulgalore 2021-09-10 09:16:09 +02:00
parent 01bcbfd928
commit 439beb4600
2 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,9 @@ docker run --rm -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io:{% include ve
You can also configure how long time your current check will wait until completing with ```--pageCompleteWaitTime```. By default the pageCompleteCheck waits for 5000 ms after the onLoad event to happen. If you want to increase that to 10 seconds use ```--pageCompleteWaitTime 10000```. This is also useful if you test with *pageCompleteCheckInactivity* and it takes long time for the server to respond, you can use the *pageCompleteWaitTime* to wait longer than the default value.
![Navigation timeline]({{site.baseurl}}/img/navigation-timeline.jpg)
{: .img-thumbnail}
You can also choose to end the test after 5 seconds of inactivity that happens after loadEventEnd. Do that by adding
```--browsertime.pageCompleteCheckInactivity``` to your run. The test will then wait for loadEventEnd to happen and no requests in the Resource Timing API the last 5 seconds. Be-aware though that the script will empty the resource timing API data for every check so if you have your own script collecting data using the Resource Timing API it will fail.

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB