Error 12017 The operation was canceled

Prev Next

Overview

There may times when one or more resources toward the bottom of a waterfall show a yellow warning icon.  When hovered over, error 12017 displays as in the example below:
oper.png

This can happen if the test ends while a piece of content is in the process of being downloaded. This will happen in situations where there is a "stop dead" completion event. For example, in Web Tests, the default completion time is Document Complete + 2 seconds. The moment that time is reached, the test is terminated, and the browser window is closed.

This error represents the same thing that would happen in a real browser; if the browser closes while an item is downloading, the operation gets cancelled.

This situation is not indicative of any problems with the site or those resources. However, if there is a need to avoid these errors, it is possible to use a completion event which waits for all network activity to stop before ending the test.

Workaround

In Transaction Test scripting, WaitforNoRequest("2000") can be used, which will wait for two seconds of network inactivity before terminating the test. This should allow for all items to be fully downloaded.

In Playwright Test scripting, await page.waitForTimeout(2000) can be used. This should allow for all items to be fully downloaded.

Please note: This time starts counting only after the connection is established with the server.

In Web tests, there is an additional setting under Advanced Settings which does the same thing.

stop.png