-- When we test our application we may want to check how it performs the
same operations with multiple sets of data.
For Example:-
Suppose we want to check how our application responds to multiple sets of data
we should record multiple separate tests each with it s own set of data. We
should create a data driven test with a loop that runs multiple times (how much
we should specify).
In fact we can say that testing the functionality with more test-cases
becomes laborious and time consuming as functionality grows. For multiple sets
of data or Test-cases. We can execute the test once in which we can figure out
for which data it has failed and which data the test has passed. The features is
available in the Winrunner with Data Driven Test where the data can be taken
from excel sheet or notepad.
For non-data-driven tests the testing process is performed in these steps:
Step1--- Creating a Test
Step2--- Converting to a data driven test and Preparing a data table
Step3-- Running the Test
Step4-- Analyzing Test Results
The procedure for converting a test to a data-driven test is composed of the
following main steps:
1)Replacing fixed value in checkpoints statements and in recorded statement
and in recorded statements with parameters and creating a data table containing
values for the parameters this is known as parameterising the test.
2)Adding statements and functions to our test so that it will read from data
table and run in loop while it reads each iteration of data.
3)Adding statement to our script that open and close the data table.
4)Assigning a variable name to the data table.