Breaking News
yeni film izle hd film seyret film izle

Data Driven testing

Once Data Driven testing the test script is created, we may sometimes want to check how the test script behaves for multiple data. Data Driven testing can be done by creating that many number of test cases and by running each test case individually, Data Driven testing is very long process. In such cases we use of data driven wizard. This involves 3 steps.
  1. Inserting the statements to open and close the data table.
  2. Retrieving that data from the data table.
  3. Replacing the static values with the variables containing the retrieved value from the data table. This is known as parameterize the test.
Converting test to Data Driven test
  1. Create a new test script.
  2. Run the Data Driven test.
    Choose TOOLS> DATA DRIVER WIZARD.
  3. Create a data table for the test.
    You can create a new or use existing excel table box. The data driver wizard creates an Excel table with this name.
  4. Assign a table variable name.
  5. Select global parameterization options.
    Select Add statements to create a data driven test. Select parameterize the test and choose line by line option. When you select parameterize the test, you instruct win runner to find fixed values in recorded statements and selected checkpoints and to replace them with the parameter.
  6. Select the data to parameterize.
Adding Data to the Data table
When you will parameterize your test, you can add the data that the parameterized test will use.
  1. Open the data table.
    Choose TOOLS>DATA TABLE.
  2. Add data to the table.
  3. Save and close the table.
    Choose FILE>SAVE from the data table menu.
  4. Save the test
    Choose FILE>SAVE button.
Data driven testing tips
  • You can parameterize only part of your test script or a loop within it, and a single data driven test can contain more than one parameterized loop.
  • You can open and save data tables other than default data table. This enables you to use several different data tables in one test script.
  • You can parameterize statements containing GUI checkpointsbitmap checkpoints and synchronization points.
  • You can use the data table in same way as an excel spreadsheet, including inserting formulas in to cells.
You can change the active row, or read from a non active row during the test run by using TSL statements.

Check Also

CREATING CHECKPOINTS

CREATING CHECKPOINTS A checkpoint verifies that expected information is displayed in your application while running …