> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/apurikshon/packages/packaging-requests/application-package-testing.md). Agents can also search and read this documentation through its [MCP server](https://docs.realmjoin.com/~gitbook/mcp).

# アプリケーション パッケージ テスト

RealmJoin の 4 段階のパッケージ テスト サイクルでは、インストールの仕組み、終了コード、展開動作をパッケージ要求ごとに検証します。

### 概要

ほとんどのアプリケーション・パッケージング要求は、インストールの仕組み、終了コード、および展開時の動作を検証するために、4段階のテストサイクルを経ます。アプリケーション機能の機能テストは、顧客側のアプリケーション所有者の責任です。

### テスト段階

#### 1. サンドボックスシステムでの手動インストール

* アプリケーションのバイナリは、ベンダーのドキュメントに従って手動でインストールされます
* 依存関係と環境要件が特定され、文書化されます
* 既存のインストール上への再インストールがテストされます
* ベンダー提供のバイナリによるアンインストールが検証されます

#### 2. コマンドラインインストール

* 提供されたサイレントインストールのパラメーターとフラグがテストされ、検証されます
* 成功および失敗のシナリオについて終了コードが検証されます
* インストールスクリプトが作成され、実行されます
* 自動化された再インストールおよびアンインストール手順が検証されます
* すべてのプロセスがユーザーの操作なしで実行されることが確認されます

#### 3. パッケージ準備

* インストールファイルは RealmJoin パッケージ形式（NuGet、intunewin）に整理されます
* パッケージのメタデータとスクリプトが定義され、ドキュメントが追加されます（該当する場合）

#### 4. 自動化インストール

* パッケージは新しいサンドボックスシステムにインストールされます
* インストール動作は、以前の手動テストおよびCLIテストと照合して検証されます
* パッケージベースの再インストールとアンインストールがテストされます
* すべてのシナリオにわたって終了コードが検証されます
* **マルウェアスキャン** は、自動ビルド中に必須のセキュリティゲートとして汎用パッケージに対して実行されます


---

# 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://docs.realmjoin.com/ja/apurikshon/packages/packaging-requests/application-package-testing.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.
