Method and appratus for automatic generation of expected results for testing composite component
暂无分享,去创建一个
Provided are a method and an apparatus for automatic generation of expected results for testing a composite component. The method for automatic generation of expected results for testing a composite component includes the steps of generating a set of all test data using at least one input parameter of the composite component including a plurality of unit components; analyzing an input and output relationship of the composite component which indicates a relationship between at least one input parameter and at least one output parameter of the composite component using information on an input and output relationship between the unit components and information on an internal input and output relationship of the unit components; generating a set of reduced test data for the set of all test data based on the analyzed relationship; searching for a plurality of mapping tables corresponding to each of the unit components based on the set of reduced test data; generating expected results of reduced test outputs corresponding to the set of reduced test data using a result of searching for the mapping tables; and generating expected results for all test outputs corresponding to the set of all test data using the expected results for reduced test output.