DevOps: Running Unit Tests during Build using Robot.exe

I’m using an altered version of this unit testing framework which I like quite a bit: https://go.uipath.com/component/uipath-testing-framework

I’ve also created a build plan in Azure Pipelines that generates a .nupkg file from a .nuspec definition using nuget pack. That’s actually working great and Orchestrator is able to run that .nupkg file and I’m quite happy with that. But, I would like to run my unit tests during the build. I’ve altered that framework to output a junit valid results .xml file that Azure Pipelines can parse. The framework has a RunAllTests.xaml file that runs all of the unit tests.

The issue is that I need the UiPath Robot to run that file which I don’t have access to in Azure Pipelines. An idea: If I could install robot.exe on my Azure Pipelines agent (the machine that runs the build plan), I could run the RunAllTests.xaml file using that. My question with this is licensing, would I need to pay for a license to use the Robot.exe file on my agent? How can I feed parameters to the Robot.exe file to execute the RunAllTests.xaml file specifically?

Any thoughts on this would be much appreciated!

I’m not an expert, but this is how we are deploying our projects in case this helps.

We are utilizing the UiPath Package agent:
image

And, we use a Powershell script to create the version number before using the package agent.

It appears that the UiPath Package is designed to download and install the Robot.exe into the agent machine. Here is a log of a build using this:

I am not sure about the licensing.

@Bogdan_Popescu worked on this DevOps integration, so reach out to him for more info or documentation.

Regards.

Hi both,

You don’t need to license the robot from the build agent machine as long at it is utilized to build nuget packages and not to run automation processes.

@kellen, the Azure DevOps integration Clayton is talking about can be found here in case you didn’t find it yet.

Thank you,
Bogdan

1 Like

Hi Kellen,

We are migrating to Azure Test Plans and I am wondering if you ever figured this out?

We are also investigating this issue and I would love to hear more from anybody already doing it. I’m particularly interested in any modifications to adapt the framework to operate within the build/release pipeline, and how to return its results/metrics.

Bogdan_Popescu, you write: " You don’t need to license the robot from the build agent machine as long at it is utilized to build nuget packages and not to run automation processes." I take this to mean that a license is not needed to build the .NuPkgs on the build agent. But what we are talking about here is, specifically, then executing an automation process on this agent (tho what the automation is doing is not, strictly speaking, a workflow), so am I correct in concluding that a license is required?

rabbit