摘要
测试元模型在模型驱动的测试中居于核心地位,在测试过程中保证测试元模型能够被正确地存储与读取是非常重要的。借助于JUnit这一通用测试框架,对测试元模型的存储与读取功能进行了单元测试。在明确测试需求的基础上,提出了测试用例的设计方法与测试结果的判定原则,并结合实例进行了说明。最后讨论了测试的具体实现和相应的测试结果。
Test metamodel is the key element in the model driven testing, so it is very important to assure the test metamodel to be saved and loaded correctly.This paper discussed the unit test of save and load function for test metamodel with the JUnit,which is the general testing framework.Based on declaration of test requirement, it proposed design method of test case and verdict principle of test result, and explained it with example.In the end it discussed test implementation and the test result.
出处
《软件导刊》
2009年第3期24-26,共3页
Software Guide