> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/data/set-value.md).

# Set Value

Data Set value writes a named Value into storage. Use it when you need to save text, a number, a boolean, or JSON for later steps, not when you need to fill a form field.

The [Action Set value](/test-steps/action/set-value.md) step fills an input on the page. This Data step updates the [Value Store](/values/value-store.md) for the Test Case (and optionally the account).

![Set value Test Step](https://app.does.qa/screenshots/node/data_store_set.png)

## When to use it

* Save a calculated or hard-coded Value under a **Storage Name** for later Checks or API steps.
* Choose **Storage Scope** carefully: **Test** keeps the Value for this Test Case. **Account** also updates Assets for later Runs.

## Configure

### Basics

| Field            | What to set                                                            |
| ---------------- | ---------------------------------------------------------------------- |
| **Storage Name** | Name other steps will read (letters, then letters/numbers/underscores) |
| **Type**         | `String`, `Number`, `True / False`, or `Object / Array`                |
| **Value**        | The content to store (shape depends on Type)                           |

### Advanced

| Field              | What to set                                          |
| ------------------ | ---------------------------------------------------- |
| **Storage Scope**  | `Test` and/or `Account`                              |
| **Status on fail** | [Failed Status](/test-step-options/failed-status.md) |

{% hint style="info" %}
**Pro tip:** Keep environment credentials in Assets Values. Use Data Set value for values this Test Case creates while it runs.
{% endhint %}

## Related

* [Action Set value](/test-steps/action/set-value.md)
* [Store element text](/test-steps/data/store-element-text.md)
* [Value Store](/values/value-store.md)
* [Share data with Values](/better-coverage/share-data-with-values.md)
* [Data](/test-steps/data.md)

**Tags:** `data`, `store`, `set`, `value`
