Int J Performability Eng ›› 2017, Vol. 13 ›› Issue (8): 1281-1292.doi: 10.23940/ijpe.17.08.p10.12811292

• Original articles • Previous Articles     Next Articles

A Plug-in Test Case Generation Method based on Contact Layer Proximity and Node Probability Coverage

Qian Zhongsheng, Hong Dafei, and Wang Xiaojin   

  1. School of Information Technology, Jiangxi University of Finance & Economics, Nanchang 330013, China
  • Submitted on ; Revised on ; Accepted on
  • Contact: Qian Zhongsheng
  • About author:Zhongsheng Qian graduated from the School of Computer Engineering and Science, Shanghai University, China, for the degree of Ph. D. He entered the Post-doctoral station of Computer Science & Technology Department in Jiangxi University of Finance & Economics, China, from 2013 to 2015. He visited Aalborg University, Denmark as a guest professor in 2016. Now he is an associate professor of the School of Information Technology, Jiangxi University of Finance & Economics, Nanchang, China. His current research interests include cloud testing, Web testing, software engineering, formal verification.|Dafei Hong is a master student from the School of Information Technology, Jiangxi University of Finance & Economics, Nanchang, China. His research interests include plug-in testing & verification, software engineering, Web testing.|Xiaojin Wang is a master student from the School of Information Technology, Jiangxi University of Finance & Economics, Nanchang, China. His research interests include cloud testing, software modelling & testing, Web testing.

Abstract: Genetic Algorithm (GA for short), which simulates the process of natural evolution to search and achieve the optimal solution, is often employed to generate test cases. Therefore, a GA-based test case generation policy, which introduces the concept of node probability coverage as the detection method for nodes in unreachable paths, is proposed in this work. Moreover, in the application under test, complex decisions and nested structures often lead to different execution difficulty of each statement. Therefore, a path coverage method based on contact layer proximity is presented, which quantifies the difficulty difference of different statements using contact vector. Besides, contact layer proximity and node probability coverage are combined to design the fitness function in GA. Then, the experiments about two classical benchmark cases, namely triangle-classifying program and bubble sort program, are conducted. The result is compared and analyzed with a similar method, namely the method of node probability coverage. It is shown that the proposed test case generation method is more efficient. Finally, a plug-in using the proposed test case generation method is developed.

Key words: path coverage, contact layer proximity, node probability coverage, contact vector, test case, plug-in