Call Toll Free: 1-888-484-3535    

  Automation Anywhere - The Automation Software

Automated Testing -> T51 - Data Driven Testing: Convert your test scripts into Data Driven scripts

Task Description: Convert your test scripts into Data Driven scripts. Data-Driven automated testing allows you to create automated test scripts that are more "generic". You can specify different set of data files and script will perform tests with that dataset.

Often problems found in applications are because certain data variation was never attempted. To improve quality generate large & different dataset and test the application with that.

Solution
1.Record new task The following example is recorded on our support page http://www.tethyssolutions.com/support_form.htm to illustrate how you can use Automation Anywhere to convert your test scripts into Data Driven scripts.
  • Start recording a new task by clicking on 'Record' button
  • Go to the website (or application) you want to test
  • Fill out various parts of the form using keystrokes and mouse clicks.
  • Stop recording.
  • The task would look like as shown in Screenshot 1
2.Convert your script into Data Driven scripts Automation Anywhere provides a feature where you can easily read data values from a text file. Using this feature you can separate your data and test scripts. Please see below how you can do that.

Create a new variable to read from a text file:

  • Go to Tools->Variable Manager. Select user variables and click on new. Specify the name of a variable, select the type 'Value' and specify an option to 'Read from File' Screenshot 2

Separate the script and data:

  • Select any keystroke action, and double-click it to edit it.
  • Replace the keystrokes with the variable defined above. Screenshot 3
  • Now, when you run this task, instead of playing the recorded keystrokes, it will read the value of the variable from the text file and play that value. The format of the variable in the text file will look as shown in Screenshot 4. For more information about how to read variables from a text file please refer to http://www.tethyssolutions.com/T12.htm

Using this data-driven test scripts now you can test various different scenarios simply by changing the value in the text file instead of changing the script every time.

 
When you run this task it plays back your recorded actions. Whenever it comes across any variables, it reads the values from the text file and plays that value.

Screenshot 1:

Screenshot 2:

Screenshot 3:

Screenshot 4:

 

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
 Workspace Macro Pro
 Workspace Macro
 Launch-n-Go
 Free Downloads
 Compare Products
 

 SOLUTIONS FOR

 Home & Home Office
 Business & IT
 Partners
 Developers
 

 SERVICES

 Ask The Expert
 Consulting Service
 

 PURCHASE

 BUY NOW
 Pricing
 Upgrades
 Our Guarantee

 SUPPORT

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

 QUICK LINKS

 Productivity Essentials
 Pre-defined Templates
 

 GENERAL

 Tell A Friend, Win a CD
 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