> 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).

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

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

### 概要

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

### テスト段階

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

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

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

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

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

* インストールファイルをRealmJoinのパッケージ形式（NuGet、intunewin）に整理します
* パッケージのメタデータとスクリプトを定義し、必要に応じてドキュメントを追加します

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

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


---

# 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.
