Timestamps for test start / completion
|
10-20-2020, 07:42 PM
(This post was last modified: 10-21-2020 12:47 AM by redmars.)
Post: #1
|
|||
|
|||
Timestamps for test start / completion
Since ~9th Oct responses to calls to `/testStatus.php?` seem to be returning less detail than before, and specifically (ie the bit that's breaking my code) are no longer returning a value for startTime. Is this intentional?
For eg: An older test (from August): https://www.webpagetest.org/testStatus.p...ca5&f=json Code: { vs a more recent test: https://www.webpagetest.org/testStatus.p...178&f=json Code: { In addition the timestamp currently being returned for `completeTime` in the 2nd example above also now seems to be a different value from the timestamp of `data.completed` in the full JSON response, whereas for the older test these values are equivalent. Any thoughts? Thanks for a very helpful tool btw! |
|||
10-27-2020, 05:37 AM
Post: #2
|
|||
|
|||
RE: Timestamps for test start / completion
Sorry about the delay. It should be better now. I added a fast-path for test status on the server that got rid of some race conditions but the responses weren't what they were before. I just fixed the timestamps and added a bunch of the missing fields. The different "completed" test counts aren't reported but hopefully that's not an issue.
|
|||
10-27-2020, 07:32 PM
Post: #3
|
|||
|
|||
RE: Timestamps for test start / completion
Fantastic, thanks Patrick - really appreciate you taking a look at this. Everything I was using is now back where it was (the "completed" count wasn't something I was looking at personally). Thanks again!
|
|||
01-28-2021, 08:47 PM
Post: #4
|
|||
|
|||
RE: Timestamps for test start / completion
Hi Patrick. Since 22 Jan I'm seeing something similar to this from a few months ago, where the content of the status response has changed. It seems a value is no longer being returned for `startTime` (also `elapsed`, but I'm not using that field personally).
Eg: https://www.webpagetest.org/testStatus.p...08747acad5 Code: { If this isn't intentional, any chance this field could be restored at some point please? Alternatively, please let me know if we should expect further changes to this object going forwards - in which case I suppose I'll just need to update at our end so we're not expecting the shape to stay consistent. Thanks in advance! |
|||
02-02-2021, 03:36 AM
Post: #5
|
|||
|
|||
RE: Timestamps for test start / completion
The shape of any of the api's won't necessarily remain consistent. The startTime should be there when the test is progressing (as well as elapsed) but once it is completed there is only the completeTime.
started/elapsed are useful for knowing how long it has been since the test has started and has been waiting for a result but once a result is available it is no longer available. |
|||
02-12-2021, 02:13 AM
Post: #6
|
|||
|
|||
RE: Timestamps for test start / completion
Thanks for clearing that up Patrick, appreciate it. I've updated at our end to remove the dependency.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)