The execution time of tests changes at repeated execution (durationMs), sometimes, at random times, the execution time goes beyond 2 minutes #2206
Labels
STATE: Need clarification
An issue lacks information for further research.
Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
I am developing a prototype with a remote computer that executes tests against a web page at fixed times, and reports the resulting execution times of the tests to another server (JSON reporter).
The resulting times are saved in a database in the server. The remote computer uses Ubuntu 16.04, and the sole task is to execute the tests. There are no other jobs running on the remote.
I disabled automatic upgrades, or any other tasks that may alter the execution times. The problem is that I get varied result times, and sometimes the execution goes beyond two minutes.
To rule out problems in the web page, I tested with the basic test given as example in the testcafe distribution. I only modified the test names, as I use the test name to associate the duration time to the test in the database, and I included the page-model code in the same file so that the remote executes the test as one module (I include the test code).
The idea is that the server containing the database alerts when the execution times exceeds the expected value, but as it is now, the times do not reflect the response times of the page, but it seems that for some reason the execution of the test get stuck, and the resulting times do not reflect the real behavour of the page.
I attach the graphic with the results of several hours of test. The times are given in ms. Notice that at random times the times goes beyond 120000 (2 minutes).
The name of the variable in the graph coresponds to the test name (dialog = Handle native confirmation dialog)
I timed the process running in the remote, and the total time corresponds to the sum of reported durationMs, so it is not a problem of the value, the test process get stuck sometimes.
What is the expected behavior?
I would expect that at repeated executions, the durationMs should change at most a couple of seconds to reflect the response time of the page,
How would you reproduce the current behavior (if this is a bug)?
See attached code
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://devexpress.github.io/testcafe/example/
Test code
Specify your
The text was updated successfully, but these errors were encountered: