Skip to main content

Test Data

Test data is the set of input values your test steps use: usernames, passwords, search terms, amounts, dates. You can attach values to individual steps, keep a project-wide library (typed in, extracted from a file, or written by AI), and make values unique on every run.

  • Where On each test step (create or edit mode), and in the Test Data section of the project's Project Data page
  • Who can edit Project Admin, QA Manager, Tester, Business Analyst (plus workspace Owners and Coordinators)
  • Costs Typing values is free. File extraction shows an estimate of 1 Flair per extracted item and is charged only when it succeeds.

Project test data

Test DataCustom, File, or AI (written by test case generation)
Login Credentialsgo straight to script generation

Test case

Step test datapulled from the library with Replace

Script and run

AIScript generationuses step data and Login Credentials
RunDynamic values stamped
Values flow from the project library into steps, then into the generated script and each run.

Test data on a step​

When you open a test case in create or edit mode, each step has a data button (Add test data, or Edit test data once it has values). It opens the Test Data pop-up for that step. Each variable is one row:

FieldDescription
Select Data TypeRequired. String, Integer, Short, Long, Float, Double, Number or Boolean.
DynamicOptional switch. When on, the value is made unique on every run. See Dynamic test data.
Variable NameRequired, up to 100 characters. The name the generated script uses, such as loginEmail.
ValueRequired, up to 150 characters. Boolean shows a True/False list, numeric types a number input. A variable whose name contains password, passwd or passphrase is masked, with an eye icon to reveal it while you hold it.
  • Click Add test data to add a row.
  • Use the bin icon to delete a row, or Delete in the footer to delete every row on the step. Both ask you to confirm.
  • Click Save to keep your changes. It stays disabled until you change something and every required field is filled in.
tip

There's no Date, Email or URL type: store those as String. The variable name tells the generated script what the value is for, so signupEmail or checkoutUrl reads clearly even though the type is String.

Reusing project values​

To avoid retyping a shared value (a standard test account, a sample SKU), click the Replace icon on a row. Replace Test Data lists the project's saved values with their Data Type, Dynamic, Variable Name, Value and Source. Select one and click Replace.

Sources​

Every value carries a badge showing where it came from:

BadgeMeaning
CustomEntered or edited by hand
AI GeneratedWritten by TestFlair while generating test cases
File name (or File)Extracted from an uploaded data file

Editing the type, name or value of a row marks it Custom.

Data type conflicts​

A value that doesn't fit its type is allowed: it gets a red info icon next to Select Data Type with the tooltip "Test data contains conflicts but can still be used", and you can still save. A conflict is:

  • a numeric type whose value isn't a number, is longer than 15 digits, or (for Integer, Short and Long) isn't a whole number;
  • a Boolean whose value isn't true or false;
  • a Login URL that isn't a full http:// or https:// address.

The type is a label: at run time the value is used exactly as written. Two things do block saving: an empty required field, and a String value that contains potentially unsafe content.

Project test data​

The Test Data section of your project's Project Data page holds values for the whole project. TestFlair uses them when it generates test cases and scripts, and you can pull them into any step with Replace.

Login credentials​

Login Credentials in the project's Test Data section

Login Credentials holds the three values TestFlair uses to sign in to your application: Login URL, Username/Email and Password. Values with common names are recognised and filed here: for example base_url or app_url as Login URL, email or username as Username/Email, and pwd or pass as Password. Login credentials can't be marked Dynamic, and the password is stored encrypted.

Typing values in​

  • No test data yet: choose Custom in the section's toggle, fill in the rows (Select Data Type, Dynamic, Variable Name, Value) and click Save.
  • Adding more: click Add test data on the Test Data list. The Add Test Data pop-up opens; fill in rows under Custom Test Data and click Save.

Extracting values from a file​

  1. Choose the file In the Test Data section, choose Upload File in the toggle (or, once the project has test data, click Add test data and use OR Upload File). Drop in an Excel or CSV file (.xlsx, .xls or .csv).
  2. Confirm the cost The file is read on your computer first, then a confirmation shows the estimate of 1 Flair per extracted item. Click Yes, Add.
  3. Extraction TestFlair finds the key-value pairs, sorts login credentials from other test data, and adds them with the file's name as their source.
  4. Review conflicts If any extracted values conflict with their type, a Test Data pop-up lists only those rows. Correct them and click Save, or close it to keep the values as extracted. Every row is kept either way.
  • If your file states a data type for a value, that type is kept. Common spellings are understood (int, text, decimal, bool and so on); anything else becomes String.
  • A value labelled as the login URL that isn't a valid http(s) address is not used as the project's Login URL. It's kept as ordinary test data under its own name.
  • Extract one file at a time. You can add another once the first extraction has finished.
Cost

You're charged for a file extraction only when it succeeds; nothing is charged if you cancel at the confirmation or the extraction fails. See Billing & Flairs.

AI-generated test data​

When TestFlair generates test cases, it also writes realistic values for the steps that need them, based on your project's requirements. These values get the AI Generated badge and are added to the project's test data. A value you've edited yourself (Custom) is never overwritten by a later generation. Edit or replace any generated value at any time.

Dynamic test data​

Some values can only be used once. A sign-up test that registers [email protected] passes the first time and then fails with "already exists" on every rerun. Switch Dynamic on for that value and TestFlair makes it unique each time the test runs.

When a test runs, every Dynamic value gets a UTC timestamp of the run added to it:

Stored valueValue used in a run
[email protected][email protected] (in an email address the timestamp goes before the @)
Order RefOrder Ref_20261116T093015
  • One run uses one timestamp for every Dynamic value, including the values of the test case's preconditions. A value typed in one step, or created by a precondition, still matches when a later step checks it.
  • Script generation works the same way: the account a precondition registers during generation is the one the rest of the generation uses, and the script is saved with your original values.
  • The swap happens in the script sent for execution, in actions and assertions alike. Your stored script and test data never change.
  • Values that contain quotes, backslashes or line breaks are left as they are.

The Dynamic switch is available on step test data and on project test data (except login credentials). Switching it on or off doesn't change the value or its source badge.

tip

Only mark values that really must be unique, like usernames, emails or order references. A Dynamic password or URL would break the test.

Next Steps​

  • Test Cases: build and edit the test cases that hold your steps
  • Test Scripts: generate automation that uses this test data
  • Project Data: add the requirements AI uses to suggest values
  • Test Runs: rerun tests that use Dynamic values