Automation Anywhere Call: 1-888-484-3535   

 
Automation AnywhereGUI Automation
  Home > Product > Solutions > GUI Automation > T87  
T87 - Automation application testing and validation using Image recognition
Task Description
Create a task that will automate testing and validation in an application by using image recognition. Optionally it can prompt user for the values to input. For this task we are testing our application 'Launch-n-Go'.

To see how the task runs in Automation Anywhere, download the file.

T87.atmn

Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks

Solutions
Record the task

  • For the purpose of this test we will add a keyword in Launch-n-Go.
  • Press 'Record' in the Automation Anywhere to start recording.
  • Record adding a keyword process in the application as you would.
  • Stop the recording and save the task.

Screenshot 1












Screenshot 2





Optionally prompt user for a keyword

  • Open the task in task editor by clicking 'Edit'.
  • Identify the action where you typed in the keystroke for 'Keyword' and 'Document/Program'. Click Actions button and select 'Convert to Prompt'. In case of 'Keyword' assigned the prompted value to the variable 'Prompt-Assignment'.
  • Specify custom prompt message "Enter keyword" and "Enter program/keyword".
  • Save the task.
Check if the keyword already exists

  • Here we will use Image recognition to check if keyword already exists. Use If condition with Image recognition to see if keyword already exist.
  • If the above condition is satisfied then again using IF condition(2) with Image Recognition option, find the command button 'No' and click on it. Insert a 'Log to file' command to log that the keyword already exists.
  • If the condition(1) is not satisfied then insert a 'Log to file' command to log that the keyword has been successfully added.

Perform the above steps for 'n' number of times

  • Insert a 'Times' loop around the recorded actions to allow adding 'n' number of keywords.
  • Insert an IF condition after the 'Prompt' command for the keyword, to check whether the 'Prompt-Assignment' variable to which the value input for the keyword has been assigned, has a null value. If the condition is satisfied then exit the loop.

When you run this task, it will prompt the user for a keyword and document/program. If the information entered is already existing then the task will check whether the window with the appropriate message is displayed and also click on the command button 'No' so that the keyword is not overwritten.
Buy Now Free Trial

Next Steps
Compare versions Compare versions
Watch a flash demo Watch a flash demo
Contact me Contact me
Ask the Expert Ask the Expert
Request live demo Request live demo

Call 1-888-484-3535

25,000+ Customers
25,000+ Customers
Customer list | Case Studies

We started using this product to copy data from legacy system to new system. Now we use it just to do about anything automated. Countless hours saved. Thank you guys.
- Jack Greenberg

Read Customer Testimonies >>
  Products     Download     Purchase     Services     Support     Customers     Company     Sitemap     Trademark FacebookTwitterAutomation Anywhere Blog © Automation Anywhere 2010 Privacy Policy