Each input data in testing path has attributes of type,
domain and constraint.
Data type includes: a. control information inputted through
behavior component; b. data information inputted through
information component.
Data domain includes: exhaustive domain and exhaustless
domain. Trigger event inputted through behavior component
usually is exhaustive. For example, btn_click event triggered
through button, item_select event triggered though list are
exhaustive. Data inputted through information behavior usually
is exhaustless. For example, domains of username and
password inputted through textbox in login page are
exhaustless.
For exhaustless data, an exhaustive set could be determined
based on corresponding data flow constraints and testing
strategies. For example, for username and password, based on
data flow constraint and equivalent partition, there are two
types of values: one is the data existing in database, another is
the data not existing in database. In the testing, at least one of
data in the two types should be selected to cover user login
page.
IV. CONCLUSIONS
In this paper, a test case generation method for interactive
software based on data flow graph is proposed. For an
interactive software, to test a specified function, the data flow
graph is abstracted firstly according its’ logic completion
process and interface. Then, testing paths and test data could be
abstracted based on the data flow graph. This method could test
the function comprehensively. With this testing method, testing
processes could be organized orderly, faults could be located
and coverage rate could be calculated conveniently.