お客様がUI経由ですべてのテストまたは単一のテストを実行した際のApexテストの失敗数と、デプロイ実行時に確認される失敗数との間に、差異が生じることがあります。この差異を比較すると、UI上では「Connection Canceled(接続がキャンセルされました)」エラーが確認されるもののデプロイメントでは確認されないことが、この違いの要因であるという結論に至ります。これはなぜでしょうか?
デプロイ時は固定テストの実行時間について上限チェックを行わないのに対し、UI を使用する場合は実行時間の上限チェックを行います ([すべてのテストを実行] または個々のクラスに対するテストの実行)。デプロイ時には、この制限が緩和されています。UI とデプロイ時で生じるテスト失敗の差異が「Connection Canceled (接続がキャンセルされました)」エラーのみである場合、デプロイ時では意図的にこのハードチェックを行わないため、これは想定通りの動作であるとみなすことができます。
注意: デプロイ/検証シナリオ以外でメタデータ API を介してテストを実行した場合にも同じ動作が見られます。これもまた想定内の動作です。
000396102

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.