> 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/when-the-test-doesnt-work/tips/feature-to-help-troubleshoot-test-result.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# テスト結果のトラブルシューティングに役立つ機能

この記事ではトラブルシューティングに役立つAutifyの便利な機能紹介します。

## エラーメッセージ

テストが失敗した場合、テスト結果の上部には失敗したステップとエラーメッセージが表示されます。このエラーメッセージはテストが失敗した原因を探る際の重要な情報です。

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

よくあるエラーと対策については [**トラブルシューティング - よくあるエラー**](https://help.autify.com/nocode-web/when-the-test-doesnt-work/common-errors.md) をご覧ください。

## スクリーンショット

Autifyではテスト結果の各ステップでスクリーンショットが撮られます。このスクリーンショットはエラーが発生した時に、どこで問題が発生しているかを確認するためにも役立ちます。失敗したステップでは[**フルスクリーンショット**](https://help.autify.com/nocode-web/autify-university/foundation/test-results/full-screenshots-for-failed-steps.md)が確認できます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-0b3018db225baeee55c35c4fe350991eb40b12d0%2FScreen%20Recording%202022-10-31%20at%2016.47.17.gif?alt=media)

エラーの原因は、エラーが発生したステップではなく、その前のステップが原因であることもあります。そのため、エラーが発生したステップだけでなく、その前のステップのスクリーンショットも注意深く観察しましょう。

## ブラウザログ

Chrome環境で実行したテストでは[**ブラウザログ機能**](https://help.autify.com/nocode-web/autify-university/foundation/test-results/browser-log-on-chrome-environment.md)が使用できます(Android実機は対象外)。

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

どうしても成功しないテストや、いつもは成功するテストが突然失敗した場合は、エラーが発生したステップやその前のステップのブラウザログにエラーログが出力されていないかを確認しましょう。エラーの原因となるログが出力されている可能性があります。

よくあるケースは、テスト対象のアプリケーションのAPIへのリクエストが失敗しているケースです。怪しいログを発見した場合は開発チームに共有し、エラー原因の発見に役立ててください。

## ビデオログ

スクリーンショットに写っていない情報でも、[**ビデオログ**](https://help.autify.com/nocode-web/autify-university/foundation/test-results/video-logs-for-test-results.md)でなら確認できることがあります。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-ac641470ea715dc653c46da66e967d5c96e5db56%2FScreen%20Recording%202023-01-28%20at%2010.15.57.gif?alt=media)

スクリーンショットやブラウザログで原因が分からない場合は、エラーが発生したステップやその前のステップのビデオログに失敗のヒントがないかを確認しましょう。

## 別環境での実行

ブラウザログやビデオログを利用できない実行環境があります。これらの機能が使えない実行環境でのテストが原因不明のエラーで失敗している場合は、一度Chrome / Linux環境等、機能が使える環境でも実行してみましょう。ブラウザログやビデオログからエラーの原因が確認できる可能性があります。

また実機環境でのテストは、[**Autifyクラウド環境**](https://help.autify.com/nocode-web/autify-university/foundation/execution-environments/autify-cloud-environment.md)に比べて実行時間が長くなります。そのため、テストが安定するまではAutifyクラウド環境で実行し、テストが安定してから実機環境で実行することで、トライ＆エラーにかける時間を短くすることができます。

## 再実行

[**内部エラー**](https://help.autify.com/nocode-web/faq/faq-test-result/what-does-internal-error-mean.md)で失敗したテストは、[**再実行**](https://help.autify.com/nocode-web/autify-university/foundation/rerun/rerun-test.md)をすることで解決することが多いです。

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

内部エラーに限らずテスト対象のアプリケーションの一時的なAPIエラーなどにより、テストが失敗することもあるため、一度再実行することはトラブルシューティングする上で有用です。

## ローカルリプレイ

テストが意図せず失敗した場合、その事象がAutifyを使用しなくても発生するかを確認することは重要です。[**ローカルリプレイ**](https://help.autify.com/nocode-web/autify-university/foundation/creating-a-scenario/local-replay.md)を活用して、問題が起きている画面まで遷移し、ローカルPC上でも問題が発生するかを確認しましょう。


---

# 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/when-the-test-doesnt-work/tips/feature-to-help-troubleshoot-test-result.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.
