Creating error-proof reusable workflows in UiPath

Hi @Kenneth_Balana,

We had tried this (unit-testing) within the REFramework in the initial stages of our CoE establishment. To keep the development and test phases separate, we choose to use Test-Suite instead where we can test all the activities we developed for a given project and perform integrated test (similar to the flow of process we are automating).

  • We modify the UiPath test-suite to our use case and write outputs to a custom excel file depending on the process we are automating.

  • The “test cases” in the test-suite can also further be tested using a “test robot” license on a prod-like VDI or alternatively in AzureDevops (Tests) before deployment.

  • Our final test phase is to run the robot for the suggested Cochran’s Sample Size given the expected cases for the robot (population). This sample size gives us number of test cases to be run before we can represent the outcome to the entire population of robot cases. We require a minimum of 90% test cases are success. We try to keep the p sample proportion to 0.5 as we have no observed evidence towards success or failure in the testing population.

    We run this test in REFramework process on NonProduction license so that we have a robust robot which tackles production-like environment and data. If we do not meet the success ratio, then we have to identify where the most failures originated, fix it and run the test for the same sample size.

But if you have regime for unit-testing, the inbuilt Tests folder in the REFramework is a useful tool.

1 Like

Thanks, @jeevith

I’m on the initial stage of my RPA journey and this information was too much for me to understand in just one sitting, but I am glad that you are sharing this with everyone. I want to learn more from this do you have a site or blog post for this? I want to learn more about the final test phase you have like what about the confidence level with precision etc.

Hi @Kenneth_Balana,

I will try to make a tutorial on RPA testing (how to validate test runs) in the coming weeks. Currently, I am working on another tutorial on automating the documentation of workflows using PowerShell.

RPA is a great career to start with as you will quickly learn a lot about not just building robots, validating their performance and communicating their value to the stakeholders. You can take the learnings from this field to many other fields, be it data science, machine learning or business development. But my advice to you as you are starting out is to just repeat the basics. 80% of a RPA developers workflow is based on the basics course.

Like Bruce Lee quotes: I do not fear a person who has practiced 10000 kicks, but I do fear the one who has practiced 1 kick 10000 times.

I wish you great success in your RPA endeavours.