计算机工程
計算機工程
계산궤공정
COMPUTER ENGINEERING
2014年
7期
242-246,253
,共6页
优先级排序%函数调用路径%回归测试%测试用例%扇入系数%缺陷检测率
優先級排序%函數調用路徑%迴歸測試%測試用例%扇入繫數%缺陷檢測率
우선급배서%함수조용로경%회귀측시%측시용례%선입계수%결함검측솔
prioritization%function calling path%regression test%test case%fan-in coefficient%fault detection rate
基于覆盖的优先级排序技术通常以代码覆盖信息作为测试用例的特征加以度量,忽略了其他优先级的影响因素,缺乏全面性和动态性。针对该问题,提出基于函数调用路径的测试用例优先级排序方法。以函数调用路径为基础,通过对源代码新旧版本的对比,分析回归测试影响域,确定回归测试用例集的范围。将测试用例函数调用路径覆盖能力、单元测试时函数中检测出缺陷的个数,以及函数的扇入系数等影响因素应用于优先级排序,确定测试用例优先级量化方法,并在测试执行过程中,通过调整算法实现优先级的动态调整,优化优先级排序。实验结果表明,优先级量化方法能提高测试的缺陷检测率,发现程序中的缺陷,降低测试成本。
基于覆蓋的優先級排序技術通常以代碼覆蓋信息作為測試用例的特徵加以度量,忽略瞭其他優先級的影響因素,缺乏全麵性和動態性。針對該問題,提齣基于函數調用路徑的測試用例優先級排序方法。以函數調用路徑為基礎,通過對源代碼新舊版本的對比,分析迴歸測試影響域,確定迴歸測試用例集的範圍。將測試用例函數調用路徑覆蓋能力、單元測試時函數中檢測齣缺陷的箇數,以及函數的扇入繫數等影響因素應用于優先級排序,確定測試用例優先級量化方法,併在測試執行過程中,通過調整算法實現優先級的動態調整,優化優先級排序。實驗結果錶明,優先級量化方法能提高測試的缺陷檢測率,髮現程序中的缺陷,降低測試成本。
기우복개적우선급배서기술통상이대마복개신식작위측시용례적특정가이도량,홀략료기타우선급적영향인소,결핍전면성화동태성。침대해문제,제출기우함수조용로경적측시용례우선급배서방법。이함수조용로경위기출,통과대원대마신구판본적대비,분석회귀측시영향역,학정회귀측시용례집적범위。장측시용례함수조용로경복개능력、단원측시시함수중검측출결함적개수,이급함수적선입계수등영향인소응용우우선급배서,학정측시용례우선급양화방법,병재측시집행과정중,통과조정산법실현우선급적동태조정,우화우선급배서。실험결과표명,우선급양화방법능제고측시적결함검측솔,발현정서중적결함,강저측시성본。
The test case prioritization based on coverage usually uses the code coverage as the measurement of the test case. In this way, however, the other factors are ignored which leads to incomprehensiveness, and it is lack of dynamics. According to the two problems, this paper proposes a prioritizing method based on the function calling paths. According to the analysis of the influencing area of regression testing by comparing the new and old versions based on the function calling paths, it can get the scope of the test case. Combining the coverage of the function calling paths in the test case, the count of the defects in unit test and the function fan-in coefficient as influence factors, it applies the influence factor to prioritization, and ensures the quantization method of test case prioritization. During the test, it realizes dynamic adjusting of priority by adjust the algorithm to optimize the prioritization. The experiment shows that the method of priority quantization can promote the fault detection rate of test significantly in order to detect the faults in software as soon as possible, and reduce the cost of testing.