はじめてのオートメーションをわずか数分で作成できます。Studio Web を試す →
作成者: Stefan Krsmanovic
1
アクティビティ
3.7k
要約
要約
Custom activity for comparing variables to be used with UiPath Testing Framework
概要
概要
This assembly consists of three core parts:
* It contains custom **Assert Unit Test** activity that must be used when making **Unit Tests**.
* **Assert Unit Test** activity is used as a container for writing **Assert methods** (imported from _CustomActivities.VariableComparer_ namespace) which are used to evaluate unit test outputs.
* Assert.AreEqual(expected,actual) - contains method overloads that are used to check if the compared variables contain the exact same values.
* Assert.AreNotEqual(expected,actual) - contains method overloads that are used to check if the compared variables doesn't contain the exact same values.
* Assert.AreSame(expected,actual) - contains method overloads that are used to check if the compared variables reference the same object in memory.
* Assert.AreNotSame(expected,actual) - contains method overloads that are used to check if the compared variables doesn't reference the same object in memory.
* Assert.Contains(item, target) - contains method overloads that are used to check if the item is contained inside of the target object.
* Assert.NotContains(expected,actual) - contains method overloads that are used to check if the item is not contained inside of the target object.
* Assert.IsNull(actual) - checks if variable is referencing null object
* Assert.IsNotNull(actual) - checks if variable is not referencing null object
* **Assert methods** throw custom exceptions that are used by the **Framework** to log test results and give important information in case of a test failiure.
* AssertException is main exception thrown by Assert methods.
* AssertNullException is exception thrown when Assert.IsNull or Assert.IsNotNull method returns false.
* CustomAssertException is generic exception that is thrown when random boolean expression that returns false is passed to Assert Unit Test activity
Quick guide:
* Install this package using [Package manager]
* [Import] _CustomActivities.VariableComparer_ namespace in your workflow
* In Activities side-bar search for Assert Unit Test activity
* Use Assert Unit Test activity to write any of the above Assert methods (e.g. Assert.AreEqual(var1,var2))
機能
機能
Compares objects (which are by default compared by reference equality) using value equality.
その他の情報
その他の情報
依存関係
Newtonsoft.Json 11.0.2
コード言語
Visual Basic
ランタイム
Windows レガシ (.Net Framework 4.6.1)
ライセンス契約とプライバシー条項
MIT
プライバシー条項
技術情報
バージョン
2.1.6更新日
2020年2月18日対応製品
Studio: 18.2 - 22.10
認定
シルバー 認定済み
サポート
UiPath コミュニティ サポート