-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I use REST API "api/results/{token}/compact" to get results after status of session is completed. But it seems that response to that API is not what actual results are. I get right results few seconds or minutes after WMAS session is completed/finished.
e.g. If WMAS session is finished for test group "websockets" and I make GET request to "api/results/{token}/compact" immediately after session is ended, I get results as {'websockets': {'pass': 223, 'fail': 0, 'timeout': 1, 'not_run': 0, 'total': 42, 'complete': 29}}
And if I make GET request to same API with same session after 10 seconds, then results are: {'websockets': {'pass': 223, 'fail': 0, 'timeout': 6, 'not_run': 0, 'total': 42, 'complete': 34}}
It takes almost a minute or so to get actual results after session is ended. There is lot of delay in between actual results and session completion time.
I think session's status should not be "completed" until final results are ready.
Same is the case when user visits https://webapitests2019.ctawave.org/wave/results.html?token=token page. It does not display right results for at least approximately 1 minute in "API Results" section (observed this when websockets tests are run).