> 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/advanced/tests-on-private-environments/setup-autify-connect.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Autify Connectのセットアップ

Autify Connect を使用して、プライベートな環境に対してテストを実行するには、次のことを行う必要があります。

1. **シナリオを作成する**
2. [**ワークスペース設定**](https://help.autify.com/nocode-web/autify-university/foundation/settings-1/workspace-settings.md)**画面から Autify Connect の設定を行う**
3. **Autify Connect Client を手元のマシンへインストールする**
4. **テストプランを設定する**
5. **テストプランを実行する**

それぞれのステップを詳しく見ていきましょう。

## 1. シナリオを作成する

テストを行いたいプライベート環境にあるアプリケーションに対するシナリオを作成します。これは、インターネットに公開されたアプリケーションのシナリオを作成するのと同じように、Autify Recorder を使って行うことができます。

## 2. ワークスペース設定画面から Autify Connect の設定を行う

### アクセスポイントの作成

1. ワークスペース設定画面に移動し、Autify Connectセクションへ移動します。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-73756cb06441390d3de2101f83938d1961a5f5c1%2FUntitled%20\(2\).png?alt=media)
2. **追加** をクリックし、**アクセスポイント** の名前を入力します。アクセスポイントは、Autify Connectクライアントで使用される一意のキーに関連付けられた識別子になります。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-01260c7cff1df0ca2f14ac84d0f24d3b74c07ae1%2FUntitled%20\(3\).png?alt=media)
3. **作成** をクリックします。**アクセスポイントキー** が表示されます。後ほどAutify Connectクライアントを設定する際に必要となりますので、安全な場所に保管してください。

## 3. Autify Connectクライアントを手元のマシンへインストールする

### Autify Connectクライアントのダウンロード

#### 個別のバイナリファイル

ご利用環境の環境にあったAutify Connectクライアントをダウンロードし、OS毎に記載されている手順に沿ってインストールします。

<table data-search="false"><thead><tr><th>OS</th><th>アーキテクチャ</th><th>ファイル形式</th><th>ダウンロード</th></tr></thead><tbody><tr><td>Linux</td><td>i386 32 bit</td><td>tar.gz</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_linux_386.tar.gz">stable</a></td></tr><tr><td>Linux</td><td>x86-64 64 bit</td><td>tar.gz</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_linux_amd64.tar.gz">stable</a></td></tr><tr><td>Linux</td><td>Arm 32 bit</td><td>tar.gz</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_linux_arm.tar.gz">stable</a></td></tr><tr><td>Linux</td><td>Arm 64 bit</td><td>tar.gz</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_linux_arm64.tar.gz">stable</a></td></tr><tr><td>macOS</td><td>x86-64 64 bit</td><td>tar.gz</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_darwin_amd64.tar.gz">stable</a></td></tr><tr><td>macOS</td><td>Arm 64 bit</td><td>tar.gz</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_darwin_arm64.tar.gz">stable</a></td></tr><tr><td>Windows</td><td>i386 32 bit</td><td>zip</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_windows_386.zip">stable</a></td></tr><tr><td>Windows</td><td>x86-64 64 bit</td><td>zip</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_windows_amd64.zip">stable</a></td></tr><tr><td>Windows</td><td>Arm 32 bit</td><td>zip</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_windows_arm.zip">stable</a></td></tr><tr><td>Windows</td><td>Arm 64 bit</td><td>zip</td><td><a href="https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions/stable/autifyconnect_windows_arm64.zip">stable</a></td></tr></tbody></table>

#### Dockerイメージ

Dockerイメージを、AWS 上の ECR Public Gallery にご用意しています。マシンに単体のバイナリをインストールするよりも、Docker イメージを利用する運用が適している場合は、ぜひお試しください。 <https://gallery.ecr.aws/autifyhq/autifyconnect>

**Docker Imageの利用方法**

1. \--keyオプションを利用して起動する

```
docker run --platform=linux/amd64 public.ecr.aws/autifyhq/autifyconnect:latest --key=[アクセスポイントキー]
```

2. 環境変数（AUTIFY\_CONNECT\_KEY）を設定して起動する

```
docker run --platform=linux/amd64 --env AUTIFY_CONNECT_KEY public.ecr.aws/autifyhq/autifyconnect:latest
```

{% hint style="warning" %}
**Windows containerモードはサポートしていません。**

提供しているDockerイメージは、Windows containerモードをサポートしていません。Linux containerモードに切り替えてから起動してください。
{% endhint %}

### Autify Connectクライアントのインストール

#### Linux / macOS

1. ダウンロードしたファイルを解凍します。
2. 以下のコマンドを実行し、ヘルプが表示されるかどうか確認します。うまくいかない場合は、違う環境のアプリをダウンロードした可能性がありますので改めてご確認ください。

   ```bash
   ./autifyconnect -h
   ```
3. xxxxxx をアクセスポイントキーに置き換えて、以下のコマンドを実行します。Autify Connectクライアントは Autify Connectサーバーへの接続の確立し、テストを実行する準備が整います。

   ```bash
   ./autifyconnect --key xxxxxx
   ```

{% hint style="info" %}
**Tips**

キーは環境変数 `AUTIFY_CONNECT_KEY` に指定することも可能です。
{% endhint %}

#### Windows

1. ダウンロードしたファイルを解凍してください。 ダウンロード中に警告メッセージが表示された場合は、無視してダウンロードを続行してください。Chromeの場合、破棄ボタンの右側にある許可アイコンをクリックすると、「保存」オプションが表示されます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-e7d43991f5e6e12823add879253dacdb3fe96fbe%2FUntitled%20\(6\).png?alt=media)
2. cmd、powershell、またはWindowsターミナル（ストアアプリ）を起動し、以下のコマンドを実行すると、オプションコマンドを確認できます。実行前に、適宜実行ファイル(autifyconnect)のある場所に移動する、もしくは実行ファイルへのパスを通すなどの対応が必要です。

   ```powershell
   autifyconnect -h
   ```

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

   注意：クライアントアプリを実行すると、Windows defenderが保護通知を表示したり、実行をブロックしたりします。

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

   その場合、接続先のクライアントを除外リストに追加する必要があります。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-2d018d1038e57b1a682bd2cd38d5b7c7a536a391%2FUntitled%20\(9\).png?alt=media)
3. xxxxxx をアクセスポイントキーに置き換えて、以下のコマンドを実行します。Autify Connectクライアントは Autify Connectサーバーへの接続の確立し、テストを実行する準備が整います。

   ```powershell
   autifyconnect --key xxxxxx
   ```

## 4. テストプランの設定

1. テストプラン詳細ページに移動し、「シナリオ」の横にある「編集」 ボタンをクリックします。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-402ecdb3d0fdf0a62af158fa4f287468b7604740%2FUntitled%20\(10\).png?alt=media)
2. ページの右側にアクセスポイントを設定する欄があります。作成したアクセスポイントを選択します。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-f8e59da097c9dff919214e9455e52ac150c5ed91%2FUntitled%20\(11\).png?alt=media)
3. プライベートな環境にあるアプリケーションに対して作成したシナリオをテストプランに追加します。

## 5. テストプランの実行

1. お手元のマシンでAutify Connectクライアントを起動します。Autify Connectサーバーとの接続が正常に確立されたことを確認します。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-ce9139b4d5ad7a2f5a2a5178b481af578eb7d3c1%2FScreen%20Shot%202022-08-17%20at%2018.04.22.png?alt=media)
2. 画面からテストプランを実行します。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-f826eb1bf6d1d5c09d61dd06cd9e16cbfcf53c71%2FUntitled%20\(12\).png?alt=media)
3. Autify Connectクライアントを`-V`オプションつきで起動した場合、Autify ConnectサーバーからAutify Connectクライアントを経由してアプリケーションにリクエストが行われると、その詳細がログに出力されます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-23e82238e6341b26be277625d352efcdcf358baa%2FScreen%20Shot%202022-08-17%20at%2018.04.34.png?alt=media)
4. テストが完了したら、結果を確認します。テストに使用したアクセスポイントが「Autify Connect」の欄に表示されていることに注目してください。

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

{% hint style="info" %}
**APIによるテスト実行**

Autify Connectを使ったテストのAPI実行は、以下の方法で行えます。

* アクセスポイントが指定されたテストプランを `/schedule` エンドポイントから実行する
* アクセスポイントの名前をパラメータに指定して `/execute_scenarios` エンドポイントから実行する

さらに、[Autify CLI](https://help.autify.com/nocode-web/autify-university/integrations/autify-command-line-interface.md)もAutify Connectをサポートしています。

詳細は以下のドキュメントをご覧ください。

* [Autify API](https://autifyhq.github.io/autify-api/#/)
* [Autify CLI](https://github.com/autifyhq/autify-cli)
  {% 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/advanced/tests-on-private-environments/setup-autify-connect.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.
