Call Toll Free: 1-888-484-3535    

 Automation Anywhere - The Automation Software

Automate Testing -> T10- Automated Test Data Generator

Task Description: To test your application, you often need large random data created in database. This example demonstrates how to use random variables to generate test data for testing. See more Automated Testing examples

Solution
1.Record a new task. Record a task that enters a value in one of the columns in your database for e.g. Microsoft Access
2.Create a random variable. Create a random variable using the Tools->Variable Manager. Screenshot 1

You can generate two types of random values in Automation Anywhere

  • String - Specify the length of random string you want to generate
  • Numbers - Specify the lower and upper range between which you want to generate random numbers. For e.g. to generate random numbers between 4 and 10 you would specify 4 in From and 10 in To.
3.Populate seed data in multiple columns Open the recorded task in Editor and put a loop of 100 around the keystroke action that enters the value in your database. Replace the recorded keystroke action with a random variable as shown in Screenshot 2
 
When you run this task, it will enter 100 random values in your table. You can change 100 to any other number and enter thousands of rows for testing purposes and save time creating those records in your database.

Screenshot 1:

Screenshot 2:

 

Tags: automated software testing, load testing, web testing, automation software

E-Mail: Enter your email address to receive information about new products & offers from Tethys Solutions.


 PRODUCTS

 Automation Anywhere
   Standard & Premier
   Enterprise
   Integration Pack
 Workspace Macro Pro
 Workspace Macro
 Launch-n-Go
 Free Downloads
 Compare Products
 

 SERVICES

 Ask The Expert
 Consulting Service
 

 PURCHASE

 BUY NOW
 Pricing
 Upgrades
 Our Guarantee

 CUSTOMERS

 Customer List
 Case Studies
 Testimonies

 SUPPORT

 FAQ & Examples
 Have a Question?
 Open A Support Case
 Forums
 

 QUICK LINKS

 Productivity Essentials
 Developers
 

 GENERAL

 Partners
 Affiliates
 Articles: Macro &
 Automation

 Get RSS Feeds

 Press & News
 Contact Us
Home |Site Map |Privacy Policy |About Us |Contact Us

Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved. Trademarks