Generate test report from workflows

I have created some test cases as workflows (click on project → Add → Workflow). To verify the expected result to actual result, I used an if condition and added log messages to print whether the test scenario is failed or not. Now I want to get test result/report for each workflow; instead of the log message, I want to get pass or fail status through UiPath like other IDEs. When I search to get those results, we need to create a testcase (click on project → Add → testcase) instead of creating a workflow (click on project → Add → Workflow). In my project, I don’t get the create testcase option when I click on project, so I click on workflow I created and selected ‘Create test case’. Then a test case is created and it refers to my workflow inside the when category. Even though I run that test case, I don’t get any test result. I have attached a screenshot of my project. My questions are:

  1. How can I get test results from UiPath?
  2. Is there a way to get a test report of all the test cases?
  3. Since I have created considerable test scenarios as workflows, how can I convert my existing test scenarios to whatever method which can get answers for question 1 and 2,

Hi @pd2897

You have Verification activities in Testing, which you can use in Then section and verify if the test case is pass of Fail.

Activities:

Hope it helps!!

Hey @Parvathy,

A few remarks:

  1. In P-Projects, you can only create Test Cases by right-clicking on sequences, workflows, etc. The reason behind this is that P-Projects are meant for RPA Testing, while T-Projects are used for Application Testing.
  2. As already mentioned, you can use Verify activities. Start with the basics to see how they work. Then, you can use the Test Explorer in combination to check results on an overall level.
  3. Test Manager provides a proper report.

Hope this helps a bit!

Hi,

For your first question, there are multiple activities to get the results from Test Cases which you can find in UiPath.Testing.Activities.

For your second question, yes there are options to save the results in each verification activity. Save the result into a variable and put it into an excel is one of the options.

For your third question, instead of clicking on Create Test Case, use the option “Convert to Test Case” to convert an existing workflow into a test case.

Hope this info helps.

Cheers!