Reading time 1 min

Recently some of our customers have found interesting use cases for running JavaScript in their Real Browser Checks. Our existing run JavaScript steps make it easy to execute arbitrary JavaScript code within the context of your tests. To make this more powerful (and reusable), we have added the ability to upload custom JavaScript files to attach to your tests.

JavaScript File Feature

Using the new JavaScript File feature, you can upload files containing JavaScript code you want accessible within your test scripts. Once uploaded, attach these files to any of your Real Browser checks and call functions from the files in run JavaScript steps.

To upload a file, head to Admin > JavaScript Files and click New. Give your file a name, select the file to upload, and click Create. You’ve just uploaded your first custom JavaScript file!

New JavaScript File

To attach files to a test, just add them under the Advanced tab for a Real Browser check, like so:

Add JavaScript Files to Checks

This new feature makes reusing JavaScript across tests a cinch and reduces maintenance overhead. Anyone using run JavaScript steps within their tests should check it out!

Suggested Blog Posts

The Perception Gap for Poor Web Performance

E-commerce revenue continues to grow,as consumers turn away from shopping in brick-and-mortar stores to shopping online.  However, many businesses are not prepared for this growth because they do not fully understand the market and how to invest in...

Read More

Using Browser Trends to Maintain a Better Site

Because of the multifarious nature of web clients today, it’s important to consider the usage statistics when designing, implementing, and managing your site. However, misconceptions often arise when determining what browsers to design...

Read More

Finding Causes of Intermittent Errors from Google Webmaster Tools

Google Webmaster Tools is a web service that allows webmasters to view the status of their sites as seen by Google and the Googlebot crawlers. In addition to indexing your site structure and content, the Googlebot crawlers also record data on perform...

Read More

Optimization Options not Always Optimal

Web designers and developers are always looking for ways to speed up their page load times. Yahoo has an excellent article written on the best practices for speeding up your page. How do you know if implementing one of their suggested practices will...

Read More