UiPath certificate questions and possible answers – updated

NOTE: Please note the answer which is might not be correct answers are they are just opinions.

You can download a working example of REframework from here

You can download security hash workflow from here

You can download yearly report workflow from here

How can you provide more details to explain the purpose of the activities in a workflow?

Annotation – Annotation is one of the way you can explain more details about the activities in workflow.

How can you dynamically change parts of a select?

One of the way you can use change the selector is to store dynamic part in variable and use the variable as selector.

Let’s say you have selector which type email in input textbox. And you would like to change the textbox to password dynamically.

You can create a variable called emailid and store the value as “email” text and change the select as “<webctrl id=’”+ emailid +”’ tag=’INPUT’ />”. When you change the value of emailid to “password” the type into activity try to put value in input box with id value as “password”

 

Which of the following types of variables can be defined in UiPath Studio?

In variable tabs, you can create variable as string, int32, Boolean, object and array[T]. you can also define other variable type by choosing “Browser for Types” option in drop down. “Browser for types” allows you to choose variable types like datatable, datarow, browser etc.

Is there any way to hide the execution of one activity in the logs?

Each activity have property called “Private”, you can find it in “MISC” property group. By clicking Private, the UiPath studio treat them as private activates and would not write to log

What direction can the arguments of a workflow have?

There are three kids of direction of arguments In, Out and in/out.

In  – In arguments are used to pass the variable values from parent workflow to child

Out – out argument are used to return the variable values from child workflow to parent workflow.

In/Out – in/out argument are used when the variable values can be change in parent and child workflow.

Which emails are deleted if you use Get IMAP Mail Messages with the DeleteMessages property set to true?

Only the emails that were marked as previously read,

Why is renaming activities considered to be one of the best practices?

For better readability and maintainability

Can you store a Selector in a variable?

Yes, you can store selector in a variable.

What can be used to debug a workflow?

You can use breakpoint, highlighter and slow stop. Breakpoint use to stop the execution when you are debugging the workflow. The highlighter is used when you would like to see which activities are getting executed and slow stop is used when you would like to slow down the debug processing.

What robots can be selected when you start a job from Orchestrator?

The one in which allocated to the same environment as the job – Jobs are tied to the environment and you can only choose robots to execute jobs which are in same environment.

What is the best way of restricting the access of a person to a limited number of pages in Orchestrator?

Create group and restricting access via group – creating group is the best way to restricting access for new users. When you create access control based on users, it might be difficult to manage when individual leaves or change the position.

What robot state is displayed on the Robots page while a job is being executed?

Busy

What happens when a new version of a package is published?

You need to update package to newer version – when you published new version of package, UiPath does not automatically update the package in workflow as it might break the workflow, instead it allows use to choose which version of package workflow needs. So you might have multiple version of same package and have different workflow running different version.

What do the Items in the Orchestrator queues consist of? Select all the options that apply.

Data for jobs to execute – Queue are the set of data which will get use by jobs. And jobs process the workflow from packages. And it’ not necessary to have queue item to run the process. Queue item as used to help run multiple robots to speed up the executions.

How can a process be executed on three different robots?

You can assign jobs to robots, you can run jobs by selecting on robot on desktop – you can create job which are in same environment as three different robot and run the job. Or you can log on to machine where the robots are running and choose the jobs to run.

 “Add Assets” in Orchestrator has the following option:

You can add asset by robot or you can add asset as single value.

This is a reliable selector for a dynamic web page: webctrl idx=’144′ tag=’IMG’/

No – it’s not idx is not a good selector. Idx attribute is not idel for selector when there is dynamic page. Idx – stands for the index number of the element. Given that the website is dynamic, there are higher number of chances that the number of element will be change hence idx. If you have options, look for class property or name property in parent element to make the selector reliable.

Where should you store the environment settings that are prone to changes?

Assets on orchestrator, or setting file excel or JSON file – best way to store the settings which are common for robots is assets. Seond best options is to store in excel or json file. Excel and json file are less secure option as they are part of package and they get copied to local machine where the jobs are running. Hence, person who have access to machine on which the jobs are running can change the file content.

You want to build a Dispatcher process to populate an Orchestrator Queue for parallel processing on multiple robots. Which activity should you use to add a queue item for each work item?

Add Queue Item – by adding queue item, the initial state of queue item is new. When you add by Add Transaction item – initial state will be Transaction

In the UiPath Robotic Enterprise Framework template, in the Main workflow, the State Machine includes the following states:

Init – Init process initialize the application, kill any past application and get any configuration settings from orchestrator or excel files

Get transaction Data – get list of transactions to process

Process Transaction – this state actually process the transaction and increment transaction number to next one

End Process – this state close the applications

Which of the following statements are true? Select all the options that apply.

The recorder is used to create a skeleton for the UI automation

The Desktop recorder generates partial selectors

How should exceptions be handled? Select all the options that apply.

By using Try Catch activities inside the workflow for unexpected application exceptions.

By validating data using conditional blocks for business exceptions.

How can you retrieve the value stored in a Queue Item variable?

Use the SpecificContent property

Downloading a report from a web application takes a variable amount of time, but a pop-up window is shown when the download is finished. What should you do to check whether the file has been fully downloaded before continuing the process?

Use the On Element Appear activity and indicate the download pop-up window

If a large item collection is processed using For Each, which activity enables you to efficiently exit the loop after a specific moment?

Break activity – break activity is used to break out from for each, while and do while activity

In the UiPath Robotic Enterprise Framework template, if a System Error is encountered in the Init state of the Main workflow, which state is executed next?

End

What happens in the Init state of the Main workflow, in the UiPath Robotic Enterprise Framework template?

The robot reads the configuration file and initializes all the required applications.

Where should credentials be stored? Select all the options that apply.

Asset, encrypted on windows

What is the difference between a Click activity whose SimulateClick property is checked and another one with the same property unchecked?

The activity with the SimulateClick flag unchecked moves the mouse cursor over the target element, while the one with the flag set does not move the mouse cursor.

What layout should be used for UI navigation and data processing?

Sequence

UiPath Robotic Enterprise Framework, the value of MaxRetryNumber in the Config.xlsx file should be set to a number greater than 0 to enable the retry mechanism in the following cases:

Retry of login activity

One of the steps in your process is to authenticate on a web application. How can you check if the login succeeded or not?

Use an Element Exist activity to check whether the login succeeded by searching for an element that is only displayed in that case.

Which of the following are considered best practices?

Start your new sequence with a short annotation meant to explain the purpose of the workflow.

Think about the exceptions that might occur during the execution of the process.

In the UiPath Robotic Enterprise Framework template, in the Get Transaction Data state of the Main workflow, what happens before the next transaction item is retrieved?

We check if a stop signal was sent from Orchestrator

In the UiPath Robotic Enterprise Framework template, if a System Error is encountered in the Process Transaction state of the Main workflow, which state is executed next?

Init

What is the best way to select a row with a certain value from a column in Excel?

Use a Read Range Activity to retrieve the contents of the Excel file, and then use a Select method to identify the desired row.

Is it possible to retrieve the color of a specific Excel cell?

Only with an OCR Engine.

How does the Anchor Base activity work?

It searches for an UiElement by using another UiElement as anchor.

Which of the following SQL statements can be executed by using the activity called Execute Non Query?

You can use insert, update and delete activity to run the execute non query activity as these statement does not generate any result

Which activity provides the easiest way to loop through all the rows in a DataTable?

For Each Row – For each row allows easiest way to iterate through row in DataTable.

You need to collect employees data and send it by email as an Excel file. What type of workflow is the most suitable for the final part, which adds the file attachment, formats the email, and sends it?

Sequence – getting emails and processing it does not require complex business processing and there are no multiple state involded as well so above problem can be solved by using sequence workflow.

What robots can be selected when you start a job from Orchestrator?

Any robot in the same environment as the process to be executed – To execute job, robot have to be in same environment. And robot can be assigned to multiple environment as well. So if you have robots which can run production workflow you can use same robot to run test processes as long as you configured your assets to  read test settings instead of production.

 “Add Assets” in Orchestrator has the following option:

You can add asset by “Value Per Robot” and “Single Value”

What types of assets can be stored in Orchestrator?

Bool, String, Integer, Credential

What happens if you try to end the execution of a job by clicking the Kill/Terminate button in Uipath Orchestrator?

The execution process is killed.

Where can the logging level of a robot be changed from?

The robot settings, which are accessed via the UiPath Robot icon in the System tray.

Orchestrator, in the Edit Robot section, the Settings tab.

The best way of managing variable values within a workflow, so that they can be shared on different robots and environments is:

Using assets defined in Orchestrator.

What is the best practice to stop an ongoing job in Orchestrator?

By cancelling it and using a Should Stop activity inside the workflow.

One of the actions below is not required when starting processes with UiPath Orchestrator.

Creating a queue in Orchestrator – not all jobs require queue item to exists to run processes.

In the UiPath Robotic Enterprise Framework template, in the Get Transaction Data state of the Main workflow, what happens before the next transaction item is retrieved?

We check if a stop signal was sent from Orchestrator

How should a UiPath developer handle frequent changes in the project files?

By using a source control solution, such as SVN, TFS, etc. – with new version you can store workflow in GIT as well.

 

After adding an Invoke Workflow File activity and selecting the workflow to invoke, you need to:

Click Import Arguments, and then bind the arguments to the local variables or to some default values – by adding import argument UiPath studio, import the argument and create placeholder for argument in local workflow. From there you can either assign local variable as default value or hard code default values. By adding edit argument, you can only edit the imported argument.

How can you retrieve the value stored in a Queue Item variable?

Use the SpecificContent property – you can define like queueitem.SpecificContent(“property anme”).ToString  – to retrieve the value. By default the value of property is objct so you need to convert to string or integer based on your requirement.

How can you improve a selector?

By replacing the dynamic parts of an attribute with wildcards.

By using intermediate containers for a better matching of the UI element.

In the UiPath Robotic Enterprise Framework template, where can the GetAppCredentials workflow retrieve credentials from?

Orchestrator Asset

In the UiPath Robotic Enterprise Framework template, what happens if the processing of a transaction item fails with an Application Exception or a System Error?

All used applications are closed and then re-initialized.

The execution of the transaction item is retried if the MaxRetryNumber config value is greater than 0.

 

What is the best way to select a row with a certain value from a column in Excel?

Use a Read Range Activity to retrieve the contents of the Excel file, and then use a Select method to identify the desired row.

In the UiPath Robotic Enterprise Framework template, if a System Error is encountered in the Process Transaction state of the Main workflow, which state is executed next?

Init

You want to build a Dispatcher process to populate an Orchestrator Queue for parallel processing on multiple robots. Which activity should you use to add a queue item for each work item?

Add Queue Item

In which workflow in the UiPath Robotic Enterprise Framework template is the TransactionNumber global variable incremented by default?

SetTransactionStatus workflow

In the UiPath Robotic Enterprise Framework template, in the Main workflow, what is the default type of the TransactionItem variable?

QueueItem

What are the functions of the Outline panel?

It shows the structure of the workflow

If the Activities are properly named, it can be used to search and select specific Activities used inside the workflow

Which of the following are considered best practices?

Start your new sequence with a short annotation meant to explain the purpose of the workflow.

Include a Should Stop activity at the end of the workflow.

Think about the exceptions that might occur during the execution of the process.

One of the steps in your process is to authenticate on a web application. How can you check if the login succeeded or not?

Use an Element Exist activity to check whether the login succeeded by searching for an element that is only displayed in that case.

Downloading a report from a web application takes a variable amount of time, but a pop-up window is shown when the download is finished. What should you do to check whether the file has been fully downloaded before continuing the process?

 

 

In a Try Catch activity, how many times is the Finally section executed if no error occurs in the Try section?

Once

While automating an installation wizard, a pop-up window may or may not appear. What can you use to close the window without stopping the workflow?

Use a Click activity inside a Try Catch activity.

Use a Click activity with the ContinueOnError property set to True.

What happens in the Init state of the Main workflow, in the UiPath Robotic Enterprise Framework template?

The robot reads the configuration file and initializes all the required applications.

Which statement about the UiPath Robotic Enterprise Framework template is false?

The framework can be used only if you get the input data from the UiPath​ ​server​ ​queues.

Where should you store the environment settings that are prone to changes?

In Orchestrator, as assets

Inside config files (.xml, .json, .xlsx, etc.)

Which one of the statements below regarding the GetAppCredentials workflow included in UiPath Robotic Enterprise Framework is true?

It​ ​first​ ​tries​ ​to​ ​fetch​ ​​a​ ​credential ​​from​ ​Orchestrator.

In the UiPath Robotic Enterprise Framework template, if a System Error is encountered in the Init state of the Main workflow, which state is executed next?

End Process

Advertisements

UiPath certificate solution

Hello UiPath students,

I have build four workflow solutions using REframework, which most likely you will find in one of your cert exams.

You will get all four solutions in one file.

1. Get List of items greater/less than x vendor ID

2. Get List of items to have a date greater/less than a certain date

3. Create two workflows the dispatcher and worker to verify invoice details

4. Generate a list of Vendor belongs to the list of cities

You can use the above solutions as reference material on how to use REFramework and not necessarily to pass your exam.

You can buy the solution by clicking the following link.

You will get zip file and once you extract the zip, it contains all workflow item it needs to run. Since all workflow uses assets to store credentials, please create an asset in orchestrator before continue.

You might need to change parameters based on your questions.

https://gumroad.com/l/uipathcert

 

Const and Let keyword in TypeScript

Const – keyword constant in typescript act same as the const in C# lanugage, Value of the variable can not change once it’s defined

Let – JS is scripting language and there is no type checking, so when any variable is not defined, it’s default value is undefined. And next declaration override the current value


console.log(`This is var ${var1}`);
var var1 = '10';
console.log(`This is var ${var1}`);

Above will print
undefined
10.

To remove confusion, typescript introduce let keyword.
By default, all variable must defined.

console.log(`This is var
let var1= 10;

Parameters in function argument in Typescript

Option arguments
function add(a:number, b:number, c:number) {
console.log(a+b+c);
}

add(10,10);

 

above code show error: An argument for ‘c’ was not provided.
function add(a:number, b:number, c?:number) {
console.log(a + b);
}

add(10,10);

 

output:
20

Default arguments
function add(a:number, b:number, c:number = 10) {
console.log(a + b + c);
}

add(10,10);

 

output:
30

Rest Parameters

When you want to pass an array as an argument

function addArray(... arg:number[]) {
return arg.map(o=>o).reduce((o,n)=>o+n);
}
result = addArray(1,2,3,4,5,6,7,8,9,10);
console.log(result);

output:
55

Defined callback method signature

function doWork(work:string, actualWork : (work:string)=>void) {
actualWork(work);
}
function actualWork(work:string) {
console.log(work);
}

doWork('this is actual work', actualWork);

function overloading

function add(var1: number, var2: number): number;
function add(var1: string, var2: string): string;
function add(var1: any, var2: any): any {
return var1 + var2;
}

let result1 = add(10, 10);
let result2 = add('first','second');

output:
20
firstsecond

const and let in TypeScript

Const – keyword constant in typescript act same as the const in C# language, Value of the variable cannot change once it’s defined

Let – JS is scripting language and there is no type checking, so when any variable is not defined, it’s default value is undefined. And next declaration override the current value


console.log(`This is var ${var1}`);
var var1 = '10';
console.log(`This is var ${var1}`);

Above will print
undefined
10.

To remove confusion, typescript introduce let keyword.
By default, all variable must defined.

console.log(`This is var ${var`}`);
let var1= 10;
console.log(`This is var ${var1`}`);

Above code result in error. “can not find name var1”.

In addition to that variable defined with let is scoped.


let var1 = 10;
if(true){
let var1 = 20;
console.log(`${var1}`);
}
console.log(`${var1}`);

output:
20
10.

Replacing string using regex in VSCode

Replace with regex in VSCode is easier than you think.

Create Reged with group ie.(\w+)(:)([a-z-“]+)(:)(\s)([\[]+)

Use $(group index) to replace the text with. Let’s say we wan to remove “:” from the text from above regex group: we can simply put $1$3$4$5$7$8. $2 and $4 – is the :.

Similar way if you would like to add new character or remove any group simply put that in between group.

 

UiPath RPA Certificate solution – assignment 2 Solution Yearly Report

You can download a new assignment from here 

You can download client security hash assignment from here

I have design solution for invoice merge – assignment 2 for UiPath RPA advance training – Yearly Report

You can buy the solution by clicking the following link.

You will get zip file and once you extract the zip, it contains all workflow item it needs to run.

Make sure you change the username and password for your ACME-TEST website in Config.xlsx file in Data folder.

https://gumroad.com/l/uipathassignment2

NOTE: The solution is build using UiPath 2019.1 – Community edition, so if you are planning to give it a go then please make sure you have same Studio version install on your machine.

The second thing is – UiPath Chrome plugin – Make sure you have the latest UiPath plugin install.

The solution is not supported by the language other than English, so for international students make sure you have English as a default language in Google Chrome.