Skip to main content
Extractions in Spur allow you to capture data from your application and reuse it in subsequent test steps. This is particularly useful for dynamic data that needs to be validated or used later in your test flow.
1

Type 'Extract'

You can also use ’/’ and choose Extract a value
Screenshot 2026 02 12 At 2 37 48 PM
2

Configure Extract

Give it a variable name and write in exact instructions you want to tell Spur under ‘extraction instructions’. You can extract up to 5 variables in a single extract step.
Screenshot2026 02 12at2 39 36PM
3

Save Step

Screenshot 2026 02 12 At 2 41 24 PM

Generating Random Emails

You can generate random email addresses directly in your test steps using natural language. This is useful for sign-up flows, form submissions, or any scenario that requires a unique email each time. In a Type step, describe the email format you want. For example:
Type a random email address using a string of 10 random letters
and a number that always increments by 1 with the domain of @testdomain.com
Spur generates a unique email like abcdefghij1@testdomain.com on each run. To reuse this email later in your test, add an Extract step right after to save it as a variable.
1

Write your Type step

Describe the random email format you need in a Type step. Use natural language to specify the structure, length, and domain.
2

Extract the generated email

Add an Extract step immediately after. Give it a variable name (e.g. Email_address) so you can reference it in later steps.
3

Use the variable in subsequent steps

Reference the saved email anywhere in your test by typing { and selecting Email_address from the variable menu.
You can also use the @ symbol in a step to insert a randomly generated email address inline, without needing a separate extract step.

Accessing Extracted Variables in JavaScript

You can access extracted variables in JavaScript steps using the window.env or env object:
// Access an extracted variable
window.env.variable_name

// or
env.variable_name
For example, if you extracted a value into a variable called Email_address, you can reference it in a JavaScript step as window.env.Email_address or env.Email_address.

Common Testing Flows

Screenshot 2026 02 12 At 2 56 00 PM
Screenshot 2026 02 12 At 2 57 09 PM
Screenshot 2026 02 12 At 2 57 50 PM