摘要
给出了测试用例的定义和如何根据UML活动图模型来生成测试用例的基本方法, 包括基于活动图模型控制流结构的测试场景生成和针对活动的输入量的测试数据生成。根据 活动图模型的层次型特点,引入了针对活动的层次化的测试剖面(Test Profiles)概念和 输入输出数据描述规范,用以支持用户在活动图上分层次地提供有关测试数据生成的约束条 件。同时,给出了基于测试剖面的基本测试数据的生成方法,以及基于测试场景和基本测试 数据的组合来生成一组测试用例的方法。
Definition of test case is brought out at the beginning of the paper , then the test case generation model is put forward, which consists of the gene ration of scenarios based on the control flows of activity model and the generat ion of basic test data for the input of activities. Considering the layered stru cture of the activity diagrams, the concept of layered test profiles for activit ies and the test specification on input and output data are introduced, which ca n be used to describe test requirements and constricts for the test data generat ion. Meanwhile, the approach to generate basic test data for each input of the a ctivity upon its test profile and test cases upon the combination of test scenar ios and basic test data are also presented.
出处
《计算机工程》
CAS
CSCD
北大核心
2003年第21期45-47,共3页
Computer Engineering
基金
国家自然科学基金资助项目(60073005)
国家"863"计划资助项目(2001AA113 100)