Automated Data-driven TestingTesting Anywhere
  Home > Product > Solutions > Data-driven Testing > T06  

T06 - Data-driven Testing

Test 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.

Automated Test T06.tamn

Note: Save the .tamn file in My Documents -> Testing Anywhere -> Testing Anywhere -> My Projects

Solutions
1 Record a new test case
  • Start recording a new task by clicking on 'Record' button
  • Open notepad and add necessary data.
  • Click on File – ‘Save As’
  • Provide name of the file and save it.
  • Stop the recording and save the test.

Insert Loop
Screenshot 1

System Resource Command
Screenshot 2

Testing Checkpoints
Screenshot 3

Test Editor
Screenshot 4

Automated Test Logs
Screenshot 5
2 Create Variables
  • Using Variable Manager, create a list variable, $NameOfFiles$ and two value type variables, $TempGDIObject$ and $PrevGDIObjects$ to store value of GDI Object
3 Convert your script into Data Driven scripts
  • In this example we will save the notepad file with different filenames.
  • Save list of filenames in List variable, $NameOfFiles$.

  • Note: Testing Anywhere also provides feature where you can easily read data values from a text file. Using this feature you can separate your data and test scripts.

  • To read data from $NameOfFiles$, insert ‘Loop for List Variable’ command. Screenshot1
4 Using System Resource command, check the GDI object
  • Double click ‘System Resource’ command found under ‘Advanced’ command category.
  • Choose 'Program' option under the Select Resource.
  • Select ‘GDI object’ from the Select Resource type section.
  • Click Browse to select the .exe file of your application that you wish to analyze i.e. notepad.exe. Assign the value found to a variable, $TempGDIObject$ and click on Save. Screenshot2
  • Insert Checkpoint command to check the GDI object after each save is same or not. Screenshot3

When you run this test it will save the notepad.exe with different names, taking filenames from the list variable one by one.
Buy Now Free Trial

Next Steps
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

Our Customers
Testing

We are currently using the software to do functional and performance testing of our customized version of Microsoft CRM. In addition, we are also using it for functional testing of a custom, in-house, financial application, and to do quality assurance on a CD that contains encrypted Adobe .pdf files, that are distributed for us by a third-party vendor. It allows us to do repeatable, reliable performance and functional testing, load test data with only “one-click”, and verify third-party vendors work. It saves us time and money, because after the initial “ramp-up” time learning it, we can quickly write tests that perform hours of work in only minutes. A great test tool, that we highly recommend! Thank you !!!
- David Abrahams,
Manager - Quality Assurance, Commonwealth Financial Network
Read Customer Testimonies >>
  Products     Download     Purchase     Support     Customers     Company     Sitemap     Trademark FacebookTwitterBlog © Automation Anywhere, Inc. 2012 Privacy Policy
Testing Anywhere Call: 1-888-484-3535 x1