> 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/better-coverage/share-data-with-values.md).

# Share data with Values

A [Value](/getting-started/terminology.md) is a named piece of data, such as a username, URL, or order number. The [Value Store](/values/value-store.md) holds shared Values for your account. Flows can also store data while a Run is in progress.

```mermaid
flowchart TD
  assets["Create Assets Values"] --> insert["Insert with $ in steps"]
  insert --> capture["Store page data during the Run"]
  capture --> overwrite["Overwrite Values per Recipe or CI"]
```

Use the **Flow Builder** for this walkthrough.

![Assets Values list with shared Values](/files/lEkUHJiqDzPCF75LRJM9)

## Create a shared Value

{% stepper %}
{% step %}

## Open Values

Go to **Assets → Values**.
{% endstep %}

{% step %}

## Create the Value

Choose **Create new value**. Set a **Title**, **Type**, and **Value**.

Turn on **Private value** when the content should stay hidden after save. Private Values stay hidden in the UI after you save them.
{% endstep %}
{% endstepper %}

For field detail, see [Creating Values](/values/creating-values.md).

## Insert a Value in a step

In supported fields, type `$` to open dynamic values. Pick an account Value by **Title**, or a [built-in Value](/values/built-in-values.md) such as `$testEmail` or `$randomNumber`.

Example: [**Set value**](/test-steps/action/set-value.md) (Action) on a username field with `$USERNAME` from Assets.

## Capture data during the Run

Use Data Test Steps when the page itself produces the data you need next.

| Test Step                                                              | Use it to                                                           |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Set value](/test-steps/data/set-value.md) (Data)                      | Write a Value into storage under a **Storage Name**                 |
| [Store element text](/test-steps/data/store-element-text.md)           | Save visible text from an [Element](/elements/creating-elements.md) |
| [Store element value](/test-steps/data/store-element-value.md)         | Save an input value                                                 |
| [Store element attribute](/test-steps/data/store-element-attribute.md) | Save an attribute                                                   |
| [Alias value](/test-steps/data/alias-value.md)                         | Give an existing storage name a second name                         |

[**Set value**](/test-steps/data/set-value.md) in the **Data** family writes to storage. [**Set value**](/test-steps/action/set-value.md) in the **Action** family fills a form field. They share a label and do different jobs.

## Overwrite Values for a Run

| Place                                        | What it does                                        |
| -------------------------------------------- | --------------------------------------------------- |
| [Run Recipes](/configuration/run-recipes.md) | Save filters and **Value Overwrites** you can reuse |
| Start Run dialog                             | Paste **Value Overwrites** for that Run             |
| [CI / CD](/configuration/ci-cd.md)           | Pass Values on the webhook request                  |
| [Schedules](/configuration/schedules.md)     | Choose a Recipe that already includes overwrites    |

Use overwrites for environment URLs, credentials, and other inputs that change per Run without editing the Flow. See [Value Store](/values/value-store.md) for which source wins when the same name appears more than once.

{% hint style="info" %}
**Pro tip:** Keep environment URLs and credentials as Assets Values or Recipe overwrites, and keep one-off captures from the page in Data storage names. That split makes Flows easier to reuse.
{% endhint %}

<figure><img src="/files/Ss87SRBiG0NjPZhf8ULI" alt="Set value, Store element text, Check text"><figcaption><p>Example capture and reuse path</p></figcaption></figure>

## Related

* [Value Store](/values/value-store.md)
* [Creating Values](/values/creating-values.md)
* [Built-in Values](/values/built-in-values.md)
* [Set value (Data)](/test-steps/data/set-value.md)
* [Set value (Action)](/test-steps/action/set-value.md)
* [Store element text](/test-steps/data/store-element-text.md)
* [Run Recipes](/configuration/run-recipes.md)
* [CI / CD](/configuration/ci-cd.md)
