Automation Anywhere Examples

Ratings:
(4)
Views:0
Banner-Img
  • Share this blog:

Example No: 1 - Automate Windows Services - Check telnet service status and start telnet service if not started

Task Description

While running terminal commands, telnet service must be in started. For the purposes of this we check whether telnet service is started or not, if not then we will start the telnet service. T80.atmx Note: Save the xls in C: drive, the .atmx file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks

Solutions

Create a new task

  • Click on New->Task Editor

Insert service command to ‘Get Service Status’

  • Drag and drop services command.
  • Select ‘Get service status’ option.
  • Select Telnet service from the list.
  • Select the variable from the list.
  • Save the command.

Enter if condition to check whether the service is started or not.

  • Select $Prompt-Assignment$ in variable.
  • Select Equal to operation.
  • Select ‘Fix’ option.
  • Type ‘SERVICE STOPPED’
  • Save the command.
h3>Insert services command to START service
  • Drag and drop services command.
  • Select ‘Start service’ option.
  • Select Telnet service from the list.
  • Save the command.

Enter Else if condition to check the service is paused or not.

  • Select $Prompt-Assignment$ in variable.
  • Select Equal to operation.
  • Select ‘Fix’ option.
  • Type ‘SERVICE PAUSED’
  • Save the command

Insert services command to Resume Service

  • Drag and drop services command.
  • Select ‘Resume service’ option.
  • Select Telnet service from the list.
  • Save the command.

Insert all terminal commands which you want to run

Insert stop services command

  • After all the terminal commands put stop service command.
  • Drag and drop services command.
  • Select Stop service status option.
  • Select Telnet service from the list.
  • Save the command.

Save and Run the task

  • When you run this task, telnet service is started if it is not already started or paused. The service stops after executing all terminal commands./li>

How to run the task

  • In case you do not have Automation Anywhere installed, please download and install it from, http://www.automationanywhere.com/download/freeTrial.htm
  • Download T80.atmx to location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks
  • Launch Automation Anywhere and from Task List select T80.atmx and click on RUN button to run the task.

Example No: 2 - Using OCR to integrate with command line FTP

Task Description

Web and Desktop applications are filled with images that need to be converted to a readable text for certain actions to be performed. OCR technology is used to do just that.

The task below logs into FTP server via DOS and waits to check if logged in successfully. It uses OCR technology to retrieve information from Command Prompt in to readable text to check whether login was successful.

T79.atmx Note: Save the xls in C: drive, the .atmx file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks

Solutions

Create a new task

  • Click on New->Task Editor

Insert ‘Open Program/File’ command to open command prompt

  • Type ‘cmd.exe’ in program/file text box.
  • Save the command.
  • Enter necessary keystrokes required to log in to the ftp server.

Insert Loop command

  • Insert 5 times loop command.

Insert OCR command to capture the text from command prompt.

  • Select window from the drop down.
  • Click on view capture text.
  • Select variable from drop down.
  • Click on save button.

Enter if command to check logged in successfully or not.

  • Enter $str$ variable.
  • Select ‘Includes’ operation.
  • Select ‘Fix’ option.
  • Type ‘logged in’ in fix text box.
  • Save the command.

Enter exit loop command in if condition.

Save and Run the task.

When you run this task, all the commands necessary to login to server are entered. It waits for some time to login to server. It uses the OCR technology to check whether login was successful or not.

Resource Credits : Automation Anywhere Examples

You liked the article?

Like : 0

Vote for difficulty

Current difficulty (Avg): Medium

Recommended Courses

1/15

About Author
Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox