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

# テスト結果の見た目の差分表示

前回テストしたときと比べて、画面のどの部分の見た目が変わったか確認したいことはありませんか？ Autifyでは同じ実行環境における2回目以降のテストで、テスト結果の各ステップで前回成功したテストのスクリーンショットが存在する場合に、画像比較をすることができます。 **差分** タブを開くと、前回と今回のテストのスクリーンショット間の差分がハイライトで表示されます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-7fbd40869ded3f12d2e366d45cfcce71681ca45c%2FScreen%20Shot%202022-06-30%20at%2019.47.56.png?alt=media)

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-0bd2b08fb3afed3e811f1c9f96d7036289504938%2FScreen%20Shot%202022-06-30%20at%2019.48.38.png?alt=media)

差分は、画面内のピクセルや色の変化から算出しています。これまで検出できなかった見た目の変化を確認するために、ぜひご活用ください。

{% hint style="info" %}
**差分の表示期間**

差分タブの表示は[テスト結果の閲覧期間(ログ保存期間)](https://help.autify.com/nocode-web/faq/faq-test-result/how-long-are-test-results-save.md)に基づきます。そのため、直前のテスト成功が閲覧可能期間外だった場合は、差分タブは表示されません。
{% endhint %}

{% hint style="warning" %}
**今回タブのみが表示されるケース**

以下のケースでは、「比較」タブが表示されず、「今回」タブのみが表示されます。

* JSステップにおいて、前回実行した実行環境と異なる環境で実行した場合
* JSステップにおいて、一旦削除したり変更した場合
  {% endhint %}


---

# 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/test-results/visual-diff-for-test-results.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.
