アクティビティ
最新
バナーの背景画像
ワークフローに関するアクティビティ
最終更新日 2024年4月22日

プレビュー
範囲を検証

式が指定した範囲内にあるかどうかを検証します。

定義

名前 空間: UiPath.Testing.API

アセンブリ: UiPath.Testing.Activities.Api (UiPath.Testing.Activities.Api.dll の場合)

オーバー ロード

  
VerifyRange(object,VerificationType, object, string)式が指定した範囲内にあるかどうかを検証します。
VerifyRange(object,VerificationType, object, object,string, bool, string, bool, bool)式が指定した範囲内にあるかどうかを検証します。また、出力メッセージ形式の設定や、アサーションが失敗した場合のスクリーンショットの取得など、検証に加えて他の設定を実行することもできます。

VerifyRange(object,VerificationType, object, string)

式が指定した範囲内にあるかどうかを検証します。

bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit
)bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit
)
expression オブジェクト
指定した範囲内で検証する式です。
verificationType VerificationType
検証の種類を選択します 。範囲内か範囲外かを選択します。
  • IsWithin
  • IsNotWithin
lowerLimit オブジェクト
範囲の下限値です。
upperLimit オブジェクト
範囲の上限値です。
outputMessageFormat 文字列
出力メッセージの形式です。次の引数がサポートされています。
  • {LeftExpression}
  • {LeftExpressionText}
  • {RightExpression}
  • {RightExpressionText}
  • {Result}
  • {Operator}
たとえば、次の出力メッセージ形式を使用できます。
"{LeftExpressionText}
    (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression})
    has result {Result}."{LeftExpressionText}
    (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression})
    has result {Result}.
このメッセージ形式は、特定の演算子を使用した 2 つの値または変数 (LeftExpressionRightExpression) の比較を示します。{Result} は、この比較の結果を表します。

VerifyRange(Object,VerificationType, Object, Object,String, Boolean, String, Boolean, Boolean)

式が指定した範囲内にあるかどうかを検証します。出力メッセージ形式の設定や、アサーションが失敗した場合のスクリーンショットの作成など、検証に追加して他の構成を実行することもできます。

bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit,
	string outputMessageFormat,
	bool continueOnFailure,
	string alternativeVerificationTitle,
	bool takeScreenshotInCaseOfFailingAssertion,
	bool takeScreenshotInCaseOfSucceedingAssertion
)bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit,
	string outputMessageFormat,
	bool continueOnFailure,
	string alternativeVerificationTitle,
	bool takeScreenshotInCaseOfFailingAssertion,
	bool takeScreenshotInCaseOfSucceedingAssertion
)
expression オブジェクト
指定した範囲内で検証する式です。
verificationType VerificationType
検証の種類を選択します 。範囲内か範囲外かを選択します。
  • IsWithin
  • IsNotWithin
lowerLimit オブジェクト
範囲の下限値です。
upperLimit オブジェクト
範囲の上限値です。
outputMessageFormat 文字列
出力メッセージの書式です。 サポートされている引数: {LeftExpression}{LeftExpressionText}{RightExpression}{RightExpressionText}{Result}{Operator}。 例: " {LeftExpressionText}" (値が {LeftExpression}の場合) {Operator} {RightExpressionText} (値が {RightExpression}の場合) は、結果 {Result}
continueOnFailure Boolean
アクティビティが例外をスローしてもオートメーションの実行を継続するかどうかを指定します。既定値は False です。その結果、フィールドが空白でエラーが発生すると、プロジェクトの実行が停止します。値を True に設定すると、プロジェクトの実行はエラーに関係なく継続されます。
alternativeVerificationTitle 文字列
これは Orchestrator に表示されます。
takeScreenshotInCaseOfFailingAssertion Boolean
[ Trueに設定すると、検証に失敗した場合に対象プロセスのスクリーンショットを作成します。
takeScreenshotInCaseOfSucceedingAssertion Boolean
[ Trueに設定すると、検証に成功した場合に対象プロセスのスクリーンショットが作成されます。

戻り値

検証が成功/成功した場合は「True」、検証に失敗した場合は「False」です。

Was this page helpful?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
UiPath ロゴ (白)
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.