Testim Documentation

Welcome to the Testim documentation. You'll find comprehensive guides to help you get started quickly, example code snippets, and tips for being more productive. You will also find details about advanced features that allow you to customize Testim to fit your environment or special testing conditions. Don't worry, we'll support you if you get stuck. Let's jump right in!

Guides    Changelog

Validating using custom code

Create a test step with custom code to meet any use case.

Testim enables you to have the flexibility to create actions and validations where you input your own custom JavaScript code. You have the option of running your code within the browser or outside of the browser in the context Node.js.

When to run within the browser

One advantage of running your custom code within the browser is that you can interact with the DOM. You can also take advantage of Testim’s Smart Locators to identify items in your app. Additionally, API requests are most likely authenticated (cookies are passed automatically). See Add custom validations and actions.

When to run outside of the browser (in Node.js)

One of the advantages of running your custom code outside of the browser is that there are no CORS limitations. Additionally, you can use any NPM package available. See Validating using code in Node.js.

Updated 2 months ago

Validating using custom code


Create a test step with custom code to meet any use case.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.