Monday, June 2, 2008

About Parameterization

To data drive we have to parameterize.
Through parameterization only we can drive a transaction with different set of data.

Parameterization:
When we test the application, we may want to check how it performs the same operations with multiple set of data.
In parameterization, data can be typed or import from database, spread sheet or text files.

4 Types of parameters:
1. Test, Action parameter - enable you to use values passed from the test or values from other actions in our test.
2. Data table parameter - enable you to create a data driven test, that runs several times using the data you supply. In each iteration quick test uses a different value from the datatable.
3. Environment Variable parameter - enable you to use values from other sources during run session.
4. Random Number Parameter - enable you to insert random numbers as values in our test.
Ex: RandomNumber(0,20)