Uipath Marketplace

Create your first automation in just a few minutes.Try Studio Web

Variable Comparer

Variable Comparer

by Stefan Krsmanovic

1

Activity

Downloads

3.7k

back button
back button
carouselImage0
next button
next button

Summary

Summary

Custom activity for comparing variables to be used with UiPath Testing Framework

Overview

Overview

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

Features

Features

Compares objects (which are by default compared by reference equality) using value equality.

Additional Information

Additional Information

Dependencies

Newtonsoft.Json 11.0.2

Code Language

Visual Basic

Runtime

Windows Legacy (.Net Framework 4.6.1)

Publisher

Stefan Krsmanovic

Visit publisher's page

License & Privacy

MIT

Privacy Terms

Technical

Version

2.1.6

Updated

Feb 18, 2020

Works with

Studio: 18.2 - 22.10

Certification

Silver Certified

Support

UiPath Community Support

Similar Listings