Create your first automation in just a few minutes.Try Studio Web →
by Internal Labs
1
Tool
215
Summary
Summary
Run UiPath Studio's Workflow Analyzer via command line and pipe results to file
Overview
Overview
Overview
The Workflow Analyzer tool, which is part of versions 2019.10.x and later of UiPath Studio, is used to catch errors and warnings within an automation. As of version 2020.10.x of Studio, the IDE does not have the ability to export the results of the Workflow Analyzer, but the product instead provides an executable to run the analysis via the command line, in which the results can be piped to file
The Workflow Analyzer CLI Script is a PowerShell script used to run Studio's Command Line Executable to analyze an automation and pipe the results to a JSON file. This script can be easily integrated into an automated error/warning check within a DevOps pipeline, without the hassle of opening the Studio application in its entirety
Script Parameters
-ProjectFilePath:
The path to the project.json or individual workflow (XAML) file to analyze. By default, this value is set to ".\project.json"
-ExecutableFilePath:
The path to Studio's Command Line Executable. By default, this value is set to "C:\'Program Files (x86)'\UiPath\Studio\UiPath.Studio.CommandLine.exe"
, which is the executable's location if Studio was installed in Service Mode. The value should instead be pointed to "%LocalAppData%\UiPath\[Studio_version]\UiPath.Studio.CommandLine.exe"
if Studio was installed in User Mode, replacing [Studio_version]
with the actual name of the version folder in that path
-OutputFilePath:
The path where the results of Workflow Analyzer should be piped. By default, this value is set to ".\$(Get-Date -Format 'yyyy-MM-dd-HH-mm-ss')-Workflow-Analysis.json"
Running the Script
Open a PowerShell session as Administrator
Optionally run the following to allow the current session to run scripts not digitally signed:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
For example, running the following from the same directory where Workflow-Analyzer-CLI-Script.ps1
is will analyze C:\Date-Reminder\src\project.json
, point to the default location for a Service Mode Studio's Command Line Executable, and pipe the results to .\Workflow-Analysis.json
:
.\Workflow-Analyzer-CLI-Script.ps1 -ProjectFilePath "C:\Date-Reminder\src\project.json"
-ExecutableFilePath "C:'Program Files (x86)'\UiPath\Studio\UiPath.Studio.CommandLine.exe" `
-OutputFilePath .\Workflow-Analysis.json
Features
Features
This PowerShell script can be easily integrated into an automated error/warning check within a DevOps pipeline, without the hassle of opening the Studio application in its entirety
Additional Information
Additional Information
Dependencies
PowerShell, Studio
License & Privacy
MIT
Privacy Terms
Technical
Version
1.4.1Updated
November 16, 2020Works with
Studio: 19.10 - 22.10
Certification
Silver Certified
Tags
Support
UiPath Community Support