对于交互式软件而言,功能的实现是通过复杂的人机交互完成的,目前的功能测试用例生成方法常常只考虑软件的界面信息,而不考虑软件的具体需求和逻辑实现流程,这就导致产生的测试用例随意性较大,测试过程难以有序进行,为此,本文将软件功能的逻辑实现流程和界面信息结合在一起考虑,提出一种基于数据流图的测试用例生成方法,以业务处理中数据的流向来描述业务流程,生成测试用例.该方法能够生成有效的测试用例,更全面地测试交互式软件功能,并便于定位错误.
For interactive software,function is completed with complicated human-machine interactions.Current test case generation methods of function testing usually consider software interface,while ignoring software requirement and logic completion process.With these testing methods,test cases are generated ignorantly,and testing process may be disordered.In this paper,considering function's logic completion process and interface together,a test case generation method based on data flow graph for interactive software function testing is proposed.This method describes transaction and generates test cases with data flows.This method could generate effective test cases,test interactive software function more comprehensively,and locate faults conveniently.