> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/autify-university/foundation/creating-a-scenario/creating-data.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# データの作成

## データ機能とは

データ機能を使用すると、1つのシナリオで複数のデータパターンをテストできます。

### CSVファイルの作成

まず、実行したいパターンを記述したCSVファイルを用意します。

```csv
姓,名,アドレス,会社名,職種,規模
佐藤,太郎,test@autify.com,Autify,QA,1-15
Smith,John,john@test.com,"Test, Inc.",SET,"5,000+"
鈴木,一郎,abc@autify.com,テスト株式会社,エンジニア,201-500
山田,はじめ,yamada@burning.com,"Burning, Inc.",カスタマーサポート・サクセス,16-50
```

* **1行目の値は変数名** として「シナリオ」の各ステップで利用できます。
* **ファイルの文字コードはUTF-8** である必要があります。
* 1行が1データパターンとして扱われます。上記の例では、4件のデータパターンがあるということになります。
* 別の行の値と組み合わせることはできません。新しい行としてパターンを追加してください。

### データをアップロードする

1. シナリオ画面上部の **オプション** をクリックし、「データタブを表示する」にチェックを入れ、データタブを表示します。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-7c8197c3cb55c8361757e6c7f31e6a07c1ef343c%2Fja-show-data-tab.png?alt=media)
2. データタブに移動し、「CSVアップロード (UTF-8)」ボタンをクリックしてアップロードします。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-0779b4bc965f32016c83013fb4a77e2ab2573ec1%2Fja-csv-upload.png?alt=media)
3. アップロードに成功すると、取り込まれた値が以下のように表示されます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-df67405207a2dc7063a9cd77d6f3426e4bde8d61%2Fja-csv-uploaded-data.png?alt=media)
4. **保存** をクリックします。

CSVを更新したい場合、CSVのデータを変更してから **更新** をクリックしてください。また、**削除** をクリックすると、CSVを削除できます。

### シナリオでデータを使用する

取り込んだデータは、任意の入力ステップで使用できます。入力ステップの入力値のドロップダウンから **データ** を選択しましょう。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-2c7853b6a5e9507bd706573b252a93cc925e358c%2Foption_data.png?alt=media)

次に、このステップで使用したいデータ列を選択します。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-d581d1320b98daef146085dbca315c13f5de4cd6%2Fdata_select_ja.png?alt=media)

## 留意点

* 登録されているデータの数だけテストが実行されます。例えば、冒頭のCSVの例では、4つのテストが実行されます。
* データがあるシナリオは、テスト実行の仕方により並列・直列どちらで実行されるかが決まります。詳しくは [**並列実行・直列実行の指定が適用される範囲**](https://help.autify.com/nocode-web/autify-university/advanced/test-execution-order/scope-of-application-of-parallel-or-sequential-execution.md) をご覧ください。
* ローカルリプレイの時はデータの一列目が使用されます。

## よくある質問

* データにて改行や空白の入力はできますか？
  * はい、可能です。改行は、セル内でEnterキー（またはShift + Enterキー）を使用して入力できます。空白（スペース）もそのまま入力・利用可能です。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/autify-university/foundation/creating-a-scenario/creating-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
