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

Advanced set text

Use the power of JavaScript and parameters to set dynamic text

Many times when you want to set a dynamic text string, a static value is not good enough. Here we'll show how to create advanced Set Text step, without the need of writing complete custom action in JavaScript.

Using JavaScript expression

For example, making sure we set a unique user name value in an input field. In this case you can set the value to this simple expression: 'user' + Date.now().

When running, Testim will evaluate the expression and set its text in the field:

Using a parameter

Another advantage of the JavaScript expression, is that you can use a parameter created previously in a different step (more about exporting parameters).

For example if I have exported from a prior step the user name to the parameter userName,
I can now set its value to the user name field by just writing its name in the Text to Assign field:

Updated 6 months ago

Advanced set text


Use the power of JavaScript and parameters to set dynamic text

Suggested Edits are limited on API Reference Pages

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