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

Extract text

Lets you copy values directly from your application to be used in later steps

Imagine the following, you have text in your application and you want to validate that it appears on another page ,or you may have a value that you want to use in some calculation at a later step.
If you answered yes to any of these questions, you came to the right place.
Let's see how we can easily extract text and use it...

Click here to run a sample demo of the example below.

Extract text

How to add

  • Hover over the arrow menu where you want to add your validation.
  • Click ‘+’ ⇒ Actions tab ⇒ ‘Add extract value step’.
  • Select the element you want to extract the value from your app.
  • Open the Properties panel and change the name of your variable. The default name will be "value".

Note: he variable names are subject to the name limitations in JavaScript. So, for example, spaces and special characters are not allowed. You can read more here.

Note: If you get the message "No app to choose an element from", this means that your application is closed, and you must first get the application to the desired state (by either clicking record or run the test to that step).

Variable Scope

  • By default the variable scope will be set to "Test" when using a extract value step
  • If you would like to change it click on the "Properties Panel" of the extract value step
  • Click on "Variable Scope" dropdown and you can select from three options.

Use extracted value

You can use your new parameter in a validation step, set text, custom steps, etc.
In the example below, we'll use it to validate text on another page.

  • Record text validation. (Learn more about text validation here)
  • Open the properties panel of the text validation step.
  • Replace the constant value typed in the Expected value field with the parameter you created.

Updated 6 months ago

Extract text

Lets you copy values directly from your application to be used in later steps

Suggested Edits are limited on API Reference Pages

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