> 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/ml-assertion.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Machine Learning(ML) アサーション

## ML アサーションとは

既存のアサーション機能では、実装方法により認識しきれない要素（文字、ボタン、アイコン等）のアサーション安定的に実現します。Autifyにある大量の学習データを用いて、要素情報を理解し、画面上のあらゆる要素に対してアサーションを行うことができます。

## MLアサーションと他のアサーションとの違い

ML アサーションでは、画面上の要素を認識するための方法が異なります。つまり、ML アサーションは、Objective-C、Swift、Flutter、React Nativeなど、より幅広いアプリ開発言語やライブラリで作成されたアプリに対応できるようになります。また、ML アサーションは、従来のアサーション手法と比較して、パフォーマンスの向上も実現しています。 (注：ML アサーションを使用するために必要な追加作業や動作の変更はありません）

## MLアサーションの利用方法

### シナリオ詳細画面の場合

1. シナリオ詳細画面に遷移
2. アサーションを追加したい画面上部の “ML Assert” を押下

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-420afc11ba49a42a88c338f734e4ac0a535ffd55%2FCleanShot%202022-06-06%20at%2001.13.25.png?alt=media)
3. 利用するアサーションキーワード、期待値を選択

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-a1f349726ac89c146ef04dac09109ce2bb9ca927%2FCleanShot%202022-06-06%20at%2001.15.04.png?alt=media)
4. “保存” を押下することでもとのステップの前に追加されます

### レコーディング画面の場合

1. レコーディングを開始
2. 端末操作から ML Assert を選択

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-78f16bed847385ae815518911c8bee87a9e5d2a4%2FCleanShot%202022-06-06%20at%2001.17.41.png?alt=media)
3. 利用するアサーションキーワード、期待値を選択

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-a1f349726ac89c146ef04dac09109ce2bb9ca927%2FCleanShot%202022-06-06%20at%2001.15.04.png?alt=media)
4. “保存” を押下することでステップが追加されます

## ML アサーションキーワードとその説明

| コマンド                     | 説明                            |
| ------------------------ | ----------------------------- |
| 対象が表示されていることを確認する        | 対象要素が目視できる状態であることを確認します       |
| 対象のテキストが〇〇であることを確認する     | 対象要素の文字列が指定した文字列と一致することを確認します |
| 対象のテキストが ○○ を含むことを確認する   | 対象要素が指定した文字列を含むことを確認します       |
| 対象のテキストが ○○ を含まないことを確認する | 対象要素が指定した文字列を含まないことを確認します     |


---

# 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/ml-assertion.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.
