Automation SoftwareAutomation Anywhere
  Home > Product > Solutions > Automated Testing > T10  

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.

Test File T10.htm

Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks. Before executing the task make sure Microsoft Access with a blank table is open.

Solutions
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





Variable Manager
Screenshot 1


Test Editor
Screenshot 2
2 Create a random variable

Create a random variable using the Tools->Variable Manager.

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.
 
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.
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
Our Customers
Automation Anywhere 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, Inc. 2012 Privacy Policy
Automation Anywhere