Running and Analyzing Data-Driven Tests - WinRunner

You run and analyze data-driven tests much the same as for any WinRunner test. The following two sections describe these two procedures.

Running a Test

After you create a data-driven test, you run it as you would run any other WinRunner test. WinRunner substitutes the parameters in your test script with data from the data table. While WinRunner runs the test, it opens the data table. For each iteration of the test, it performs the operations you recorded on your application and conducts the checks you specified.

Note that if you chose to import data from a database, then when you run the test, the ddt_update_from_db function updates the data table with data from the database.

Analyzing Test Results

When a test run is complete, you can view the test results as you would for any other WinRunner test. The Test Results window contains a description of the major events that occurred during the test run, such as GUI and bitmap checkpoints, file comparisons, and error messages. If a certain event occurs during each iteration, then the test results will record a separate result for the event for each iteration.

For example, if you inserted a ddt_report_row statement in your test script, then WinRunner prints a row of the data table to the test results. Each iteration of a ddt_report_row statement in your test script creates a line in the Test Log table in the Test Results window, identified as “Table Row” in the Event column. Double-clicking this line displays all the parameterized data used by WinRunner in an iteration of the test.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics