Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
ATF: Invisible browser throttling can cause poor test performance - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • ATF: Invisible browser throttling can cause poor test performance
KB0621889

ATF: Invisible browser throttling can cause poor test performance


7686 Views Last updated : Nov 2, 2024 public Copy Permalink
KB Summary by Now Assist

Description

With the Automated Testing Framework, high performance is necessary from a browser tab or window that does not have the focus. However, several browser manufacturers, in an effort to avoid CPU overuse, dramatically throttle back the amount of CPU allocated to tabs that do not have focus, windows that are completely occluded by other windows, and the entire browser when the system lock screen is displayed.

In the case of the ATF, CPU resources are desired for the tab/window but browser providers do not provide a mechanism to indicate that preference. For automated testing, this often means that laptops or unattended machines with the sole responsibility of running tests are configured so that tests run so slowly that timeouts become commonplace.

At this time of this writing, the affected supported browsers are Chrome, Firefox, and Safari: Mac OS X.

Steps to Reproduce

 

  1. Run a test in Chrome.
  2. Open the Client Test Runner.
  3. Return to the original tab.

Note that the test completes far more slowly than if it had focus.

 

Workaround

There are several ways in which customers can avoid this issue:

  • Run unattended tests on a machine that does not automatically turn on a lock screen.
  • Use a browser that does not have a built-in throttle, especially for systems where a lock screen must be on for compliance reasons.
  • Browser test through the ATF either by leaving the Client Test Runner as the foreground window or by making sure that the browser tab for the ATF is in its own window and has sufficient screen real estate, showing through to the user in a large enough percentage of the screen, that the browser grants it the full allotment of CPU time.
  • OS X - Chrome 57 and later: start the application from command prompt with these parameters:

    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-background-timer-throttling --disable-renderer-backgrounding

  • Windows - Chrome 57 and later: update the application shortcut with a command-line flag to disable the throttling behavior

    Shortcut target: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -disable-background-timer-throttling -disable-renderer-backgrounding

 

Note: Information provided here can be rendered inaccurate at any time as the browser providers release new versions. Throttles may be added to or removed from browsers at any time.

 

 


Related Problem: PRB822056

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.