Tuesday, December 1, 2020

RPA Developer Advanced Certification Online Quiz 0


How does the Anchor Base activity work?

  • It searches for an UiElement at a fixed anchor position.
  • It searches for an UiElement using a relative coordinate position.
  • It searches for an UiElement by using another UiElement as anchor.

What direction can the arguments of a workflow have?

  • In arguments.
  • Out arguments
  • In/Out arguments.

At the end of the execution of Workflow1, which retrieves some items from a database, is the database connection closed automatically?

  • Yes, the connection is closed after 30 seconds.
  • The connection has to be closed using a Disconnect activity.
  • Only the database admin can decide this aspect.

Where can we see the logs generated by running robots?

  • In the Output panel.
  • In the local Logs folder.
  • In the Orchestrator logs.

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

  • In case of an exception, to be able to find its source activity
  • To be able to understand the process logic without expanding each sequence or invoked workflow.
  • To easily understand the high-level business logic from a workflow.

What type of Output variable do all Get Mail activities return? (POP3, IMAP, Outlook, Exchange)

  • MailMessage
  • List
  • List

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

  • Yes, by using Get Cell Color
  • No. The color cannot be retrieved from a workbook.
  • Only with an OCR Engine.

Can you store a Selector in a variable?

  • No
  • Yes, in a UiElement variable.
  • Yes, in a String variable.

What can be used to debug a workflow?

  • Breakpoints
  • Highlighting activities.
  • The Slow Step option.

How can a robot start an application in Citrix?

  • By using a command line.
  • By double clicking on a Desktop icon.
  • By using an Open Application activity.
  • By defining a shortcut key for the application and then triggering the app with a Send Hotkey activity.

What is Orchestrator used for?

  • Running Windows processes on the local machine.
  • Remotely controlling any number of robots and performing workflow management.
  • Designing workflows to be run by robots in a supervised mode.
  • Designing workflows to be run by robots in an unsupervised mode.

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

  • The processes using the package are automatically updated to the latest version
  • The processes have to be updated in order for the robots to run the latest version of the package
  • The old version of the package is overwritten

What types of assets can be stored in Orchestrator?

  • Array, Datatable, Bool, String
  • Bool, String, Integer, Credential
  • Integer, Password, GenericValue, String

Where can you trigger an unattended robot from? Select all the options that apply.

  • The UiPath Robot icon in the system tray
  • UiPath Studio
  • Remotely, from Orchestrator

How can a process be executed on three different robots?

  • By deploying the process in the environment of the robots, which run it automatically
  • By creating a job and selecting all three robots
  • It is not possible to allocate a process to three different robots
  • By scheduling the process and adjusting the settings in the Execution Target tab accordingly

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

  • Using Json config files.
  • Using excel config files
  • Using assets defined in Orchestrator.

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

  • Any robot provisioned in Orchestrator.
  • Any robot you have access to according to your role permissions.
  • Any robot in the same environment as the process to be executed.

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

  • That option does not exist. Everyone is able to see everything
  • By changing the rights of the Administrator to the desired state.
  • By creating a different account and role for that person. When creating a new role, restrictions can be applied.

“Add Assets” in Orchestrator has the following option:

  • Value Per Robot
  • Value Per Environment
  • Value Per Process
  • Single Value

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

  • Busy
  • Runnning
  • Pending

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

  • In Windows Credential Store.
  • In Orchestrator, as assets.
  • Directly inside the workflows, as variables.

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

  • It first requests the credential from user.
  • It​ first tries ​to​ fetch​ a​ credential from​ the Windows ​Credential Manager.
  • It​ first​ tries​ to ​fetch​ a ​credential from ​Orchestrator.

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

  • No activity can be used. Instead, you have to create a Boolean variable based on which the For Each loop is broken
  • The “Break” activity is the most suitable in For Each
  • A While loop should be used instead of For Each

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

  • You cannot use a recorder in a Citrix environment
  • The recorder is used to create a skeleton for the UI automation
  • The Desktop recorder generates partial selectors

In UiPath Robotic Enterprise Framework, what are the transitions of the Init state?

  • In the case of Success, the transition is to the Get Transaction Data state.
  • In the case of System Error, the transition is to the Init state.
  • In the case of Success, the transition is to the Process Transaction state.
  • In the case of System Error, the transition is to the End Process state.

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

  • The​ ​framework​ ​is​ ​meant​ ​to​ ​be​ ​a​ ​template​ ​that​ ​helps​ ​the​ ​user​ ​design​ ​processes​.
  • The framework can be used only if you get the input data from the UiPath​ ​server​ ​queues.
  • The framework has ​a​ ​robust exception​ ​handling​ ​scheme​ ​and​ ​event​ ​logging.

Which of the following are considered best practices? Select all the options that apply.

  • Keeping environment settings hard coded inside workflows.
  • Breaking the process into smaller workflows.
  • Reusing workflows across different projects.

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?

  • Get Transaction Data
  • Init
  • End 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 the previous transaction has been completed
  • We check if a kill signal was sent from Orchestrator
  • We check if a stop signal was sent from Orchestrator

When should an Attended Robot be used? Select the option that applies.

  • When the processing of some input data relies on human decision.
  • When a workflow needs to be modified and corrected.
  • When the process might be interrupted by exceptions and errors.

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.
  • The transaction items are extracted from the Queue.
  • The robot checks if the previous transaction is complete and then starts the next one.

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.
  • UiPath handles exceptions by default.

In which workflow in the UiPath Robotic Enterprise Framework template is the retry mechanism implemented?

  • The SetTransactionStatus workflow
  • The Main workflow
  • The GetTransactionData workflow

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

  • Init state
  • Get transaction data state
  • Process​ ​Transaction​ ​State
  • Set Transaction State
  • End​ ​Process​ ​State

Which of the following are considered best practices?

  • Removing unreferenced variables.
  • Deleting disabled code.
  • Leaving target applications opened.

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

  • Once
  • The Finally section is executed only when the Catch section is executed.
  • Zero

In 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:

  • Get data from spreadsheets,​ ​databases, email,​ ​web​ ​API.
  • Do not work with UiPath​ ​Orchestrator ​queues.
  • Get data from UiPath Orchestrator queues with Auto Retry disabled.

The return value of the Get Transaction Item activity is of the following type:

  • Object
  • String
  • QueueItem
  • List

Which is the best way to navigate to a specific page in a web browser?

  • Use the Navigate To activity inside an Attach Browser container
  • Use the Type Into activity inside an Attach Browser container
  • Use a Type Into activity with a full selector

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

  • By creating daily backups of the files
  • By using a source control solution, such as SVN, TFS, etc.
  • Old versions of the project files are not relevant

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

  • Flowchart
  • Sequence
  • State Machine

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?

  • Get Transaction Data
  • Init
  • End Process

How can you pass data between workflows?

  • By using arguments.
  • By using variables.
  • By using a pipe.

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?

  • The process executes the End Process state.
  • 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.

Which of the following are required to have efficient execution of automation projects?

  • Proper exception handling
  • Recovery abilities
  • Effective logging mechanisms

Monday, January 28, 2013


Turn off SharePoint Custom Error Messages


Here is how to turn off SharePoint custom error messages so you can see the “true” ASP.NET error message along with the callstack/stack trace. I would recommend only making the following changes in a development environment – not production. Navigate to the site directory, Backup web.config, Open web.config.
  1. Switch Custom Errors off. Search for “customErrors” and set the value to “Off” instead of “On”. You can also set the value to “RemoteOnly” to troubleshoot a production issue.
  2. Enable CallStack. Search for “CallStack” and set the value to “true” instead of “false”.
  3. Save web.config.
That's all, now you should be able to view actual error message.

Sunday, November 25, 2012

dynamic keyword in C# 4


The "dynamic" keyword-Working with compiled .NET types is easy in C#
-Type information is available through Reflection
-- It is possible to make runtime calls dynamically
When a decision about calls and call targets is made at runtime, we talk about “dynamic dispatch", or “late binding"
Other language platforms have their own dynamic dispatch techniques (Python, Ruby, but also Automation, Web Services, ...)
--"dynamic" builds a bridge to the Dynamic Language Runtime (DLR)
--The DLR unifies different dynamic dispatch approaches

First Impressions

dynamic i=4
dynamic s="Hi there";
i.DoS0methingImpossible();
Foreach (dynamic thing in things)
DoFal1(thing);


-"dynamic" is used in place of a type
-"dynamic" does NOT correspond to any type
-Runtime types of variables are similar to what you'd expect when using "var"
-Member access on variables declared "dynamic" IS deferred to runtime


Things that don't work
Deriving from "dynamic"
Implementing lEnumerab|e
Extension methods for “dynamic”
Remember: "dynamic" is not a type


Demo:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynamicBasics
{
    class Program
    {
        static void Main(string[] args)
        {
            dynamic i = 42;
            dynamic s = "Hi thcrl";
            Console.WriteLine("Length of my string " + s.Length);
            //i.DoSomethingImp05sible( );
            var things = new dynamic[] { 42, "text value" };
            //dynamic k;
            foreach (dynamic item in things)
            {
                Console.WriteLine(item);
            }
            foreach (dynamic item in GetEnu())
            {
                Console.WriteLine(item);
            }

        }
        static IEnumerable GetEnu()
        {
            yield return "Hi there..";
            yield return 42;
            yield return true;
        }
        static void UseDynamicThing(dynamic thing)
        {
        }


        // The following code snippet is invalid
        //static void UseDynamicThing(var thing)
        //{
        //}
    }
    ///Inheriying from dynamic is not allowed
    ///
    //public class test : dynamic
    //{
    //}
}



The Reflection Misconception
-Dynamic dispatch through the DLR is quite fast
-The idea is obvious to replace mechanisms like Reflection with DLR dynamic dispatch
-The AP|s offered by the DLR don't make this easy
-The "dynamic" keyword makes it easy because the compiler does the work
-If information relevant to the dispatch is not available at compile time "dynamic" can't help

 

XHTML

What  is XHTML?
The advantages of XHTML are:
-Since it is XML syntax, tools can easily parse and work with a XHTML document
-Tools can easily validate the structure of a XHTML document
-The structure of the document can be easily manipulated by the JavaScript DOM API to create
powerful and rich client side applications
-- This is the primary reason for us to use XHTML with AJAX applications
-XHTML provides a way to extend the default markup language This can lead to more specialized
languages


The DTD and MIME Type
- There are three separate DTD files to capture three types of structures
- -XHTML strict — Proper XHTML syntax. IE does not support this very well
- -XHTML transitional — The syntax matches HTML 4 more closely. Supported by all browsers. Recommended for now
- - XHTML frameset — Use this if you are using frames.
- The MIME type of XHTML should ideally be "application/xhtml+xml“
- However, IE does not support this. So, keep using the MIME type "text/html" until IE supports the actual MIME


The Basic Syntax
- The document should start with an XML preamble
-
- Next, the document must have a DOCWPE element and specify the DTD location
- "http://www.w3.org/TR/xhtml1lDTD/xhtm|1-
transitional .dtd" >

- Next, the root level element must be
- This and all other XHTML elements are defined in the "http://www.w3.org/1999/xhtml" namespace.
- It is recommended that you use an empty prefix for this namespace to simplify the document



"http://www.w3.org/TR/xhtm11/DTD/xhtm11-transitional.dtd“>





Differences With HTML 4
- In XHTML, all element names are in lower case
- - Valid in XHTML
- - Valid in HTML 4
- All elements must be nested properly
- Hel|o World.
- Valid
- Hel|o World
.
- Invalid XHTML- Some XHTML elements must have a body. They must have an end tag
- Hello World.
- Valid
- Hello World. - Invalid
- Some XHTML elements must not have any body
-
or

- Valid
-
or

- Invalid

- Attribute values must be quoted
- - Valid
- - Invalid
- An attribute must have a value
-



- In HTML 4, some elements (such as form and img) used the attribute "name" and "id" interchangeably to identify the element
- In XHTML, only the "id" attribute should be used
-

- In HTML 4, values of enumerated attributes were case insensitive. In XHTML, they must be
in lower case
- - Valid
- - Invalid for XHTML


Embedding Scripts and Styles
- The
-

XHTML

What  is XHTML?
The advantages of XHTML are:
-Since it is XML syntax, tools can easily parse and work with a XHTML document
-Tools can easily validate the structure of a XHTML document
-The structure of the document can be easily manipulated by the JavaScript DOM API to create
powerful and rich client side applications
-- This is the primary reason for us to use XHTML with AJAX applications
-XHTML provides a way to extend the default markup language This can lead to more specialized
languages


The DTD and MIME Type
- There are three separate DTD files to capture three types of structures
- -XHTML strict — Proper XHTML syntax. IE does not support this very well
- -XHTML transitional — The syntax matches HTML 4 more closely. Supported by all browsers. Recommended for now
- - XHTML frameset — Use this if you are using frames.
- The MIME type of XHTML should ideally be "application/xhtml+xml“
- However, IE does not support this. So, keep using the MIME type "text/html" until IE supports the actual MIME


The Basic Syntax
- The document should start with an XML preamble
-
- Next, the document must have a DOCWPE element and specify the DTD location
- "http://www.w3.org/TR/xhtml1lDTD/xhtm|1-
transitional .dtd" >

- Next, the root level element must be
- This and all other XHTML elements are defined in the "http://www.w3.org/1999/xhtml" namespace.
- It is recommended that you use an empty prefix for this namespace to simplify the document



"http://www.w3.org/TR/xhtm11/DTD/xhtm11-transitional.dtd“>





Differences With HTML 4
- In XHTML, all element names are in lower case
- - Valid in XHTML
- - Valid in HTML 4
- All elements must be nested properly
- Hel|o World.
- Valicl
- Hel|o World
.
- Invalid XHTML- Some XHTML elements must have a body. They must have an end tag
- Hello World.
- Valid
- Hello World. - Invalid
- Some XHTML elements must not have any body
-
or
- Valid
-
or
- Invalid

- Attribute values must be quoted
- - Valid
- - Invalid
- An attribute must have a value
-

- In HTML 4, some elements (such as form and img) used the attribute "name" and "id" interchangeably to identify the element
- In XHTML, only the "id" attribute should be used
-

- In HTML 4, values of enumerated attributes were case insensitive. In XHTML, they must be
in lower case
- - Valid
- - Invalid for XHTML


Embedding Scripts and Styles
- The
-

XHTML

What  is XHTML?
The advantages of XHTML are:
-Since it is XML syntax, tools can easily parse and work with a XHTML document
-Tools can easily validate the structure of a XHTML document
-The structure of the document can be easily manipulated by the JavaScript DOM API to create
powerful and rich client side applications
-- This is the primary reason for us to use XHTML with AJAX applications
-XHTML provides a way to extend the default markup language This can lead to more specialized
languages


The DTD and MIME Type
- There are three separate DTD files to capture three types of structures
- -XHTML strict — Proper XHTML syntax. IE does not support this very well
- -XHTML transitional — The syntax matches HTML 4 more closely. Supported by all browsers. Recommended for now
- - XHTML frameset — Use this if you are using frames.
- The MIME type of XHTML should ideally be "application/xhtml+xml“
- However, IE does not support this. So, keep using the MIME type "text/html" until IE supports the actual MIME


The Basic Syntax
- The document should start with an XML preamble
-
- Next, the document must have a DOCWPE element and specify the DTD location
- "http://www.w3.org/TR/xhtml1lDTD/xhtm|1-
transitional .dtd" >

- Next, the root level element must be
- This and all other XHTML elements are defined in the "http://www.w3.org/1999/xhtml" namespace.
- It is recommended that you use an empty prefix for this namespace to simplify the document



"http://www.w3.org/TR/xhtm11/DTD/xhtm11-transitional.dtd“>





Differences With HTML 4
- In XHTML, all element names are in lower case
- - Valid in XHTML
- - Valid in HTML 4
- All elements must be nested properly
- Hel|o World.
- Valid
- Hel|o World
.
- Invalid XHTML- Some XHTML elements must have a body. They must have an end tag
- Hello World.
- Valid
- Hello World. - Invalid
- Some XHTML elements must not have any body
-
or

- Valid
-
or

- Invalid

- Attribute values must be quoted
- - Valid
- - Invalid
- An attribute must have a value
-



- In HTML 4, some elements (such as form and img) used the attribute "name" and "id" interchangeably to identify the element
- In XHTML, only the "id" attribute should be used
-

- In HTML 4, values of enumerated attributes were case insensitive. In XHTML, they must be
in lower case
- - Valid
- - Invalid for XHTML


Embedding Scripts and Styles
- The
-

Saturday, November 24, 2012


Web Application Architecture

Web front end-Hosts web applications that users access with a browser or other types of client
Application Services - hosts service applications and Central Admin
Sql Server - Database

File Locations and Storage
-Some resources always come from the file System
--Core list definitions
--Application pages
--Core user controls
--More
-Some always come from the content database
--List items
--Documents
-Sometimes it depends on the state of the resource (User customization)

Configure Management
-Do not directly edit files that SharePoint Installers
-Use solution packages
-SharePoint will keep the servers in the form in sync.

Security, Safety and scalability.
-SharePoint Designer based customization could be dangerous
-Inline code blocks
-Unapproved controls and web parts
-Too many controls on a page

Sharepoint provide safety
-SPRequest HttpModule
-SPVirtualPathProvider
-SPPageParserFilter
-Safe Mode processing

-Adding a control is allowed but inline code block not allowed by default
-In order to allow inline code blocks, add following in in web.config in tag


entry in config to allow rendering the control.

Form and Sandbox
-Files in Sharepoint root are deployed as farm solution.
-Farm solution deployment requires admin access to the form.
-Problem for hosted and governed environmrnts
-Sandbox solutions provide a safe alternative
-Sandbox solution pages are subject to Safe mode
-Additional  restriction apply.