Synthetic Classic has reached end of support and is no longer available. Existing Synthetic Classic customers have been upgraded to the all-in-one Dynatrace software intelligence platform.

Import external library

This code is currently not supported by the Chrome Agent.

Sometimes, you may need external JavaScript libraries to create tests. The most common example is when you need to use the CryptoJS library to encrypt a password entry.

Use the ImportJS command to bring in external libraries.

var importJS = new ImportJSCommand({
	name: 'CryptoJS',
	version: '',
	url: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/core.js'
}).execute();