The widespread use of Graphical user interfaces (GUIs) makes the GUIs construction more and more complicated It makes the GUIs testing become a challenging problem. In this paper, a framework of component-based library (CBL) for GUI regression testing is proposed. Test components, which encapsulate associated properties, operations and meta-information, are defined as reusable object. Three key processes of CBL are introduced in detail. The first process is the CBL organization structure based on message mechanism. The second process is the test components regeneration guidelines for GUI testing. The third process is to divide test procedure into several phases to improve the testing efficiency. The phases include message segment capture phase, component abstract phase, regenerate test component phase and component-driven testing phase. Experimental results show that CBL model can performance well and the proposed reusable component for GUI regression testing can regenerate a large number of test cases automatically and efficiently.
展开▼