Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

SIES College of Management Studies MCA Batch 2020-22 Subject: Robotic Process Automation Assignment No. 1 1. Demonstrate Use of Recorder. Program

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 80

SIES College of Management Studies

MCA Batch 2020-22


Subject: Robotic Process Automation
Assignment No. 1
1. Demonstrate use of Recorder.
Program:
1. Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

2. Insert an conditional sequence that verifies that the calculator is open and
activates the window.
a. Double-click or drag the If action.

b. Select Window exists from the Condition drop-down list.

c. Select Calculator from the Window drop-down list.


The Calculator window is saved to the variable window-1.
d. Drag the Message box action into the If container.
e. In the Enter the message to display field, enter The calculator is
running.

f. Drag the Window > Activate action into the If container below


the Message box action.

g. In the Window field, insert the window-1 variable


3. Insert an alternative sequence that opens the calculator.
a. Double-click the If > Else action.

b. Drag the Message box action into the Else container.

c. In the Enter the message to display field, enter The calculator is not


running.
d. Drag the Application > Open program/file action into the If container
below the Message box action.

e. In the Location of the program/file field,


enter C:\Windows\System32\calc.exe.

4. Drag Recorder from the Actions


a. Drag the Record Capture from the Action

b. Capture Object Keystroke 9


c. Drag the Record Capture from the Action

d. Capture Object Keystroke +


e. Drag the Record Capture from the Action

f. Capture Object Keystroke 8


g. Drag the Record Capture from the Action

h. Capture Object Keystroke =


5. Click Save to save the bot.
6. Run the bot.
When the bot runs, the calculator is not running So bot then Opens the
Calculator window, and the calculation is performed.
7. Run the bot again.
8. When the bot runs, the calculator is running already then, the Calculator
window activates, and the calculation is performed.
2. Build a bot to display message “Hello World”.
Program:
Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

Flow of Actions:-
II)Drag the Message box action 
In the Enter the message to display field, enter “Hello World”

III)Click Save to save the bot.


Run the bot.
The message is displayed:-“Hello World”

3. Build a simple bot to open “amazon.co.in” a new tab of browser. And


then to close it
Program:
I)Open a new bot.
a.From Automation Anywhere web interface, select BOTS > My bots.
b.Click Create new > Bot.
c.Enter a bot name and click Create and edit.
Flow of actions

II)Drag Browser action from the activities .


a)Browser:Open
1.select Browser:Open
In Browser:Open , select New Tab option, in that select Variable.
2.Select “Insert a value” icon in the left.
3.Click Insert Value, to choose variable.
Select Dropdown and from that choose browser variable.

4.Click On “Yes insert “ tab.


b.Browser Close.
In Browser:Close , select Tab option, in that select Variable.
2.Select “Insert a value” icon in the left.

3.Click Insert Value, to choose variable.


Select Dropdown and from that choose browser variable.
Select the variable which was earlier selected for browser:open option.
4.Click On “Yes insert “ tab.

III)Click on”Save” Button and Run the Bot.


4. Build a bot to notepad application.
Program:
1)Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.
Flow of Actions:

2)Insert an conditional sequence that verifies that the “Notepad is open and activates
the window.
a. Double-click or drag the If action.

b. In if action , select the condition, a dropdown will appear in that select


the condition as Window:Window exists
c. Next, Click on application tab from the window option
d. Select the Notepad application: “Untitled-Notepad”
e. In variable tab , Choose window tab by inserting value to variable as
window .
3)Drag the Message box action into the If container.

In the Enter the message to display field, enter The Notepad is running.

4)Drag the Window > Activate action into the If container below the Message


box action.

1.Select the Notepad application: “Untitled-Notepad”


In the Window field, insert the window-1/2…n variable

5)Insert an alternative sequence that opens the calculator.


a.Double-click the If > Else action.

b.Drag the Message box action into the Else container.


c.In the Enter the message to display field, enter The calculator is not
running.

6)Drag the Application > Open program/file action into the If container below


the Message box action.
a.In the Location of the program/file field,
enter C:\Windows\System32\notepad.exe.

7.Click Save to save the bot.


8.Run the bot.
When the bot runs,If, the Notepad is running , It will display the message.
.

9.Run the bot again.
When the bot runs, if the notepad is not running, the message will be displayed
as”Notepad is not Running” and then it will open The Notepad Application

i)Opens The Notepad , if it is not running.


Assignment No.2

1. Build a bot check whether calculator is open if yes activate that it else
open it. Simulate keystroke for “5*5”.
Program:
9. Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

10. Insert an conditional sequence that verifies that the calculator is open and
activates the window.
a. Double-click or drag the If action.

b. Select Window exists from the Condition drop-down list.

c. Select Calculator from the Window drop-down list.


The Calculator window is saved to the variable window-1.
d. Drag the Message box action into the If container.

e. In the Enter the message to display field, enter The calculator is


running.
f. Drag the Window > Activate action into the If container below
the Message box action.

g. In the Window field, insert the window-1 variable


11. Insert an alternative sequence that opens the calculator.
a. Double-click the If > Else action.

b. Drag the Message box action into the Else container.

c. In the Enter the message to display field, enter The calculator is not


running.

d. Drag the Application > Open program/file action into the If container


below the Message box action.

e. In the Location of the program/file field,


enter C:\Windows\System32\calc.exe.
12. Insert the Simulate keystrokes action to perform the calculation.
a. Drag the Simulate keystrokes action below
the If and Else containers.

b. In the Window field, insert the window-1 variable.


c. In the Keystrokes field, enter 5*5=.
d. In the Delay field, enter 500.
13. Click Save to save the bot.
14. Run the bot.
When the bot runs, the The calculator is not running message appears, then
the Calculator window opens, and the calculation is performed.

15. Run the bot again.


When the bot runs, the The calculator is running message appears, then the
Calculator window activates, and the calculation is performed.
2. Build a bot to copy a file from one location to another.
Program:
1. Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

2. Insert from file Copy Command which help to copy the File from One Folder to
another.
a. Insert the Copy Command from the File.

b. Add the Source file and Destination file/Folder.

3. Before Run the Bot we can see the Destination File/Folder is Empty.
4. Run the bot again. When the bot runs, the file will be from the Source File will
be Copied to the Destination File/Folder.

3. Build a bot to copy a folder from one location to another.


Program:
1. Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

2. Insert from file Copy Command which help to copy the File from One Folder to
another.
a. Insert the Copy Command from the Folder.

b. Add the Source Folder and Destination Folder.


3. Before Run the Bot we can see the Destination Folder Doesn’t Contain the
New Folder.

4. Run the bot again. When the bot runs, the folder from the Source Folder will
be Copied to the Destination Folder.
Assignment No.3

1. Build a bot to exact data from notepad to excel file.


Program:
1. Open a new bot.

a. From the Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

2.Select CSV/Text Option and select open in it:

a. Select the file and also select ‘Comma’ as a delimiter.

3.Select Excel Basic.

a. Select Open Excel Basic in it.


b. Set the property such as file name and open in as both READ-WRITE .

4.Select excel basic and select ‘Go to cell’ in it.

5.Select a loop with setting up the properties as.


Inside the loop follow the following conditions

i.Select csv/text:Read

a.Set the properties as:

ii.Select excel basics:set cell

a.Set the properties as ‘Active Cell’ and set the value


iii.Select the Excel basics:Go to cell.

a.Set the properties as:

iv.Select the Excel basics:Set cell:

a.Set the property as:


v.Select Excel basics:Go to cell

a.Set the property as:

vi.Select Excel basics:Go to cell

a.Set the property as:

vii.Select Clipboard clear.


6.Select Excel Basic:Close.

7.Run the bot.

Output:

Extract.txt:

Txtto Excel.xlsx:
2. Write a bot to perform string operations.
Program:
1. Open a new bot.

a. From the Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

2.Extracting Date,month and year from a file name.

a. Select String Split operator.

i.Set the property as follow:

b. Select the message Box:


i.Set the property as:

c. d.Select the List:Clear.

i.Select the variable as List data:

d. e.Run Bot.
Output:
3.String operations.

a. Select csv/txt:open.

i.set the properties as

b. Select csv/txt:Read.

i.Set the property as.

c. Select csv/txt:Close.
d. Select String :Find.

i.Set property as.


e. Select String:Substring

i.Set the property as.

f. Select String:Uppercase.
i.Set the property as.

g. Select Message Box.

i.Set the property as:

h. Run the Bot.


Output:

Txt File:
4.Performing Regex Operation:

a.Select String:Replace

i.set the property as:

b.Select Message Box:

i.set the property as.


c.Run Bot.

Output:

String declaration:
3. Extract a table from webpage.
Program:
1. Open a new bot.

a. From the Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

2. Open a browser window to the web page from which you will extract the table.

Double-click or drag the Browser > Open action.

In the URL field, enter https://www.nmitd.edu.in/publications/.

Select your preferred browser and Click on Save.


3.Specify the table.
Double-click or drag the Recorder > Capture action.

Click the Window tab and select the Daily Stock Market Overview

Click the Capture object


From the Action drop-down list, select Get table.
In the Assign output to the variable field, create the tNasdaqTable.

The Daily Stock Market Overview window is saved as the variable window-1.
4. Specify the file where to save the data.
Double-click or drag the Data Table > Write to file action.

From the Data table name list, select tNasdaqTable.

Provide a file path to create a CSV file.


For example, C:\Users\<username>\Desktop\NasdaqTable.csv.
Select the Create folders/files if it doesn't exist option and Select to overwrite the existing
file.

5. Close the Daily Stock Market Overview window.


Double-click or drag the Window > Close action.

Select the Variable tab and insert window-1.

6. Run the BOT.


Output:
Assignment No.4

1. Automate task of extracting a text from a window and display text.


Program:
1. Creating a Bot
a. On Dashboard Click on Create a Bot button under Getting Started

b. Give appropriate name to your Bot & click on Create & Edit

2. Setting Up
a. Create A folder on your system & insert images containing text in it.

b. Inside the bot search for Loop Activity, Drag & Drop it between Start & End
point

Click on Loop Activity, set iterator type to ‘For each file in folder’.
And provide the image folder path under folder section.
Below that, select ‘Dictionary’ in variable section & create variable
c. Inside Loop, add ‘OCR: Capture image by path’

In Image Path settings, select desktop file.


And enter the image folder path, followed by dictionary variable & pass the
name & extension parameters inside it
Ex. D:\RPA\OCR\$FilesInFolder{name}$.$FilesInFolder{extension}$

And assign value to variable


d. Below ‘OCR’ add ‘Log to file’ Activity

Under File Path option, provide the path where you want to store the text
file containing OCR data
And provide variable where you saved the OCR data
2. Automate task of writing text into Notepad file.
Program:
1. Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My
bots.

b. Click Create new > Bot.

c. Enter a bot name and click Create and edit.

2. Open the Windows panel and select Activate Window.

3. Select the terminal of notepad.

4.Select the simulate keystrokes.


5.Select the terminal notepad and enter the keystroke as “Hello World”.

6.Run the Bot.

Output:
3. Extract data from JSON file and display output in message box.
Program:
1. Open a new bot.
a. From Automation Anywhere web interface, select BOTS > My bots.
b. Click Create new > Bot.
c. Enter a bot name and click Create and edit.

2. Read the Data From a Json File


a. Drag the Rest Web Service : Post Method From Action

b. Add URL
c. Create a Variable name JSONData

3. Displaying the Message


a. Drag the Message Box from action

b. In Enter the Message to Display, add the Variable which we have


created during the Rest Post Method

4. Save and Run the Bot


5. When we run the bot we can see that in the Message Box data is being
Displayed
Assignment No. 5

1. To automate the task of extracting the data from an Excel File according
to some condition and storing the extracted data in another File.
Program:

2. To automate the task of extracting the data from multiple PDF


documents and storing the data into a CSV file
Program:
Assignment no.6

Apply UiPath tool for D


1. Display “Welcome to UI path message”
Program:
1. Open UI Path Studio & Create new process.
a. From UI Path Studio welcome page, Click on New Process.
b. Enter process Name & Description.

2. Adding Activities
a. Click on Main.xaml in project panel to get started

b. Click on Activities Tab and Drag & Drop Sequence Activity in workspace
area

c. Drag & Drop Message Box Activity inside Sequence Activity


And type the message as displayed

3. Running & Debugging the Bot


Click on the Play button on the Top-Left

Or press F6 button on the keyboard


If there’s some error, Debug options should pop up
Else, there should be output like this:

2. Comparing two numbers


Program:
1. Open UI Path Studio & Create new process.
a. From UI Path Studio welcome page, Click on New Process.
b. Enter process Name & Description.
2. Adding Activities
a. Click on Main.xaml in project panel to get started

b. Click on Activities Tab and Drag & Drop Flowchart Activity in workspace
area

Double Click on it to start working

c. Drag & Drop Assign Activity Under the start button & it will be
automatically connected
d. Drag & Drop Input Dialog Activity Under the Assign & it will be
automatically connected

e. Drag & Drop Flow Decision Activity Under the Input Dialog & it will be
automatically connected

f. Drag & Drop Message Box Activity on both the sides of the Flow Decision
Activity to display output

3. Configuration
a. Click on Variables Tab on bottom panel
b. Click on create variable & Insert data as shown

c. Now select Assign Activity & inside properties panel on the right enter this
data

d. Double Click on Input Dialog Activity


Enter the data as displayed
Then navigate back to Flowchart
e. Select Flow Decision Activity & Inside Properties panel, click on 3-dot
menu in front of conditions option

This Dialog will pop up, insert the condition as displayed

f. Double Click on Message Box on the left of Flow Decision and enter this
statement
"Your Entered number "+GuessNumber.ToString+" is greater than the
number "+RandomNumber.ToString

Then go back to Flowchart


g. Double Click on Message Box on the right of Flow Decision and enter this
statement
"Your Entered number "+GuessNumber.ToString+" is smaller than the
number "+RandomNumber.ToString

Then go back to Flowchart


4. Running & Debugging the Bot
a. Save the project & Click on Play button on top-left

Or press F6 button on the keyboard


If there’s some error, Debug options should pop up
Else, there should be output like this:

3. Check entered year is leap year or not.


Program:
1. Open UI Path Studio & Create new process.
a. From UI Path Studio welcome page, Click on New Process.
b. Enter process Name & Description.

2. Adding Activities & Configuration


a. Click on Main.xaml in project panel to get started

b. Drag & Drop Sequence Activity from Activities Menu


c. Drag & Drop Input Dialog Activity inside the Sequence

d. Click on Variables Tab on the bottom panel & Create Variable as shown

e. Then Fill-out Input Dialog activity as shown

f. Drag & Drop If Activity under Input Dialog & Click on Show Else
Add Message Box in both the sides
g. Enter the data inside If activity as shown

3. Running & Debugging the Bot


a. Save the project & Click on Play button on top-left

Or press F6 button on the keyboard


If there’s some error, Debug options should pop up
Else, there should be output like this
Assignment no.7
1. Extract data from website and store it in excel or database.
Program:

2. Demonstrate Scheduler and trigger


Program:

3. Design IQ BOT and resilience BOT


Program:

You might also like