Computer and Modernization

Previous Articles     Next Articles

GUI Software Test Case Generation Method Based on WEHG Model

  

  1. (College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing 211106, China)
  • Online:2018-04-28 Published:2018-05-02

Abstract: The graphic user interface represents the frontend in the underlying code. In software development at this stage, the GUI accounts for over 60 percent of the total code. In view of the existing model based method to generate test cases can not find software defects as soon as possible, the paper embarks from the code layer and interface layer to analyze the test program, and puts forward a WEHG GUI test model. The model features are: 1) According to the number of the defined variables and reference variables of eventhandler and the corresponding node, we can set weight’s value, thus ensuring more variable nodes generate test cases preferentially; 2) According to the definition of the event handler function, the dependency value of the dependency on the node is set up, so that the node with high dependency can be first added to the test sequence. The experimental results show that this method can detect defects in software faster, improve the detection efficiency of test cases, and reduce the cost of software testing.

Key words: graphic user interface, test cases generating, software testing

CLC Number: