> 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-mobile/using-autify-nocode-mobile/scenario-creation-and-maintenance/data.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# データ機能

## データ機能とは

データ機能はData Driven Testing（データ駆動テスト）を可能にする機能で、1つのテストシナリオに対して外部のデータを読み込み、複数の入力パターンをテストすることができます。\
この機能を利用する主な利点は以下になります。

* 再利用性
  * 別途アップロードしたデータを利用するので、新しくシナリオを作成せずに多くのパターンを試すことができます。
* テストカバレッジの向上
  * 外部のデータを利用することで簡単に複数のパターンを試し多くのケースを網羅することが可能です。

## データ機能の使い方

1. 実行したいデータパターンを記述したCSVファイルを用意\
   **注意：CSVファイルの文字コードはUTF-8である必要があります。**

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-f19a03b57e268a3b30efca58b84769431b3d1069%2FCleanShot_2022-04-12_at_13.35.30.png?alt=media)

1行が1データパターンとして扱われますので、上記スクリーンショットの場合は3件のデータパターンが与えられているということになります（一行目はカラム名として扱われます）。別の行で設定されている値と組み合わせることはできません。

2. CSVファイルをシナリオにアップロード\
   シナリオ詳細画面の「データ」タブ内にある「CSVアップロード」のボタンからアップロードできます。

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-2b1422c59ccb847e76c51487cf18d6b02e57b5c7%2FCleanShot_2022-04-12_at_13.35.45.png?alt=media)
3. データ機能を利用したいステップでCSVを参照\
   CSVで与えた値を使いたいステップのスクリーンショットをクリックしステップの詳細を開き **値を指定** から **データ** に変更すると、CSVの一行目に記述した値（カラム名）がプルダウンで表示されます。利用したい列の名前を指定することでその列に記載しているCSVの値を使うことができるようになります。

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-cad29244ba2e81d65b21f7a4b78d5680c2981709%2FCleanShot_2022-04-12_at_13.37.58.png?alt=media)

## データ機能のテスト実行件数

例えば、3つの行を含むCSVファイルを利用する場合は、１つのシナリオに対して3件のテストが実行されます。以下のような結果画面になります。それぞれの結果では、**シナリオ名 + (n/CSVの行数）** となります。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-c691c62bacbfec258c43a91d1c2dd27c8123e4e5%2FCleanShot_2022-04-12_at_13.30.59.png?alt=media)

## データ機能の制約

アップロードしたデータは以下のステップでのみ利用可能です：

* シナリオの文字入力ステップ


---

# 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-mobile/using-autify-nocode-mobile/scenario-creation-and-maintenance/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.
