# Assertion path

**URL:** <https://forum.uipath.com/t/assertion-path/545163>\
**Category:** StudioX\
**Tags:** question, activities\
**Created:** [May 16, 2023, 4:48am UTC](https://forum.uipath.com/t/assertion-path/545163 "2023-05-16T04:48:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachinthana\_Kulathunga](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sachinthana_kulathunga/32/376815_2.png) [@Sachinthana\_Kulathunga](https://forum.uipath.com/u/Sachinthana_Kulathunga)\
**Post date:** [May 16, 2023, 4:48am UTC](https://forum.uipath.com/t/assertion-path/545163/1 "2023-05-16T04:48:26Z")

</div>

How to compare expected result and actual result in UiPath?

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [May 16, 2023, 6:12am UTC](https://forum.uipath.com/t/assertion-path/545163/2 "2023-05-16T06:12:33Z")

</div>

@Sachinthana_Kulathunga

Use if conditions or flow decisions and then give the conditions inside them

Cheers

---

<div class="post-metadata">

**Author:** ![efelantti](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@efelantti](https://forum.uipath.com/u/efelantti)\
**Post date:** [May 16, 2023, 6:25am UTC](https://forum.uipath.com/t/assertion-path/545163/3 "2023-05-16T06:25:21Z")

</div>

In case you want to assert results in unit test workflows, I would suggest to install package UiPath.Testing.Activities. These activities could be used to assert expressions:

- [Activities - Verify Expression With Operator - https://docs.uipath.com/](https://docs.uipath.com/activities/other/latest/user-guide/verify-expression-with-operator)
- [Activities - Verify Expression - https://docs.uipath.com/](https://docs.uipath.com/activities/other/latest/user-guide/verify-expression)
