A novel Object-Oriented class testing approach, proposed in this paper, combines functional with structural testing techniques. Based on state-based testing, test cases generated from the MACT (Method for Automatic Class Testing) tool can be used to execute functional testing. The definition-use information of data members, occur in public member functions of a class under test, is generated from MACT to facilitate data flow analysis.
Testers can compute definition-use path with the information in order to ensure that the class is also satisfied with data flow coverage at intra-class level. The paper describes a queue class example to reveal that using a hybrid testing technique benefits class testing.