| 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.
T06.tamn
Note: Save the .tamn file in My Documents -> Testing Anywhere -> Testing Anywhere -> My Projects
|
| Solutions |
 |
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.
|
 Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5
|
 |
Create Variables
- Using Variable Manager, create a list variable, $NameOfFiles$ and two value type variables, $TempGDIObject$ and $PrevGDIObjects$ to store value of GDI Object
|
 |
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
|
 |
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. |
|
 |
| 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 >> |
|