Skip to main content

Automation Debugging


Automation Debugging:
   It is a process of identifying & removing errors from a project
   Logging & Breakpoints are two techniques which helps to the project as error-free.
   Logging – Display details about what is happening in a project in Output panel.
   Breakpoints – It enables user to pause the execution, find out the status at particular point in Project.


Example:
1.       Select the True branch between the Input Dialog and Flow Decision activities, and press Delete. The True branch has been deleted.
2.       Add a Log Message activity next to the Flow Decision.

3.       Connect the Log Message activity to the True branch of the Flow Decision and to the Input Dialog activity. The automation should look as in the following screenshot.




4.       Select the Log Message. The Properties panel is updated accordingly.
5.       From the Level list, select Error, and in the Message field type what error message to be returned, such as "Invalid user name." When you execute the project, the error message is displayed in the Output panel every time the user does not fill in the Hello World window.
6.       Press F5 to execute the automation and do not fill in the Hello World window the first time when you are prompted. The Output panel has logged the error message you added at step 5.



7.      On the Execute tab, in the Debug group, from the Options menu, select Log Activities. This will display logs in the Output panel.
8.       Select the Log Message activity and, on the Execute tab, in the Debug group, click Toggle Breakpoint. Note that a small that a red dot with white stripes is displayed next to it. This signals that this activity has a breakpoint applied.



9.    On the Execute tab, in the Launch group, click Start Debug. The debugging process starts and the Hello World window is displayed.
10.  Do not fill in the field and click OK. The breakpoint has been triggered and, as a result, the automation stopped. Note that, in the Output panel, the error and all steps covered until now have been logged, and the Log Message activity is highlighted.



11.   On the Execute tab, in the Launch group, click Stop. An information dialog box is displayed, letting you know that the debugging process has been canceled. 

Comments

Popular posts from this blog

Key Points of Leading RPA Tools

Key Points of Leading RPA Tools Automation Anywhere(AA) Blue Prism(BP) UI Path Developer friendly tool RPA Term was invented by Blue Prism Extremely User Friendly Offers Front and Back Office Robots It is an Enterprise grade RPA Solution tool Implementation Speed is high Script based, More Programming Skills required Supports only Back Office robots Re Usability is more since various integrations available with different workflows Smart Recorder Option available Code Insertion is difficult and not user friendly Free Community edition (PDF’s, Videos available for FREE) AA Bots can deploy in Physical Front Office machines & Cloud Extreme control over activities (Object Creation, Coding etc.) Con is - No Coding Annual support cost and license cost is higher What is Best RPA Tool...

Types of Recording

Types of Recording: 4 types of recording modes are available Ø   Basic Ø   Desktop Ø   Web Ø   Citrix 2 ways of Recording Ø   Automatic Ø   Manual Basic – generates a full selector for each activity and no container, the resulted automation is slower than one that uses containers and is suitable for single activities. Desktop – suitable for all types of desktop apps and multiple actions; it is faster than the Basic recorder, and generates a container (with the selector of the top-level window) in which activities are enclosed, and partial selectors for each activity. Web – designed for recording in web apps and browsers (supported: Internet Explorer, Google Chrome), generates containers and uses the Simulate Type/Click input method by default. Citrix – used to record virtualized environments (VNC, virtual machines, Citrix, etc.) or SAP, permits only image, text and keyboard automation, and requires explici...

HELLO WORLD

As of now, you've learned some basics of RPA & UI Studio . Now, It's a time to create your first program (Obviously " HELLO WORLD ") in UI Studio as below. Creating a New Sample Project : Here I’m displaying HELLO WORLD along with User Input with Flow Chart workflow 1)        Open UI Path studio 2)        On the Start tab, under the New section, click Blank . The New Project window is displayed. 3)        Enter NAME for the Project (say HELLOWORLD) & Select Project Location and Click on CREATE button. New Project (Main.xaml) is created in Chosen Location. 4)        Add/Drag and Drop any workflow/activity (like Flowchart) from Activities Panel 5)        Add Input Dialog activity 6)        Connect Input Dialog activity to Start node by selecting ‘Se...