Automated GUI Testing for J2ME Software Based on FSM

J2ME (Java 2 Micro Edition) software is playing a more and more significant role in embedded systems. However, with the growing complexity and function enhancement of J2ME software, its GUI (Graphical User Interface) testing is facing with great challenges. This paper proposes a new automated GUI testing method for J2ME software, which adopts an automated test case generation means based on FSM model and uses a unique program instrumentation scheme. Test cases are translated to the test script, which drives the J2ME program under test, and generates test report. In our experiments the automated testing system is implemented. Example Results show this testing method can automatically generate test cases for GUI based on the specification of the J2ME program and can also drive the running of the tests in the automated way. The testing method is more effective than the traditional ones; it has advantages, such as higher automation level, full fault-detection capability and general applicability. So, this method can see its applicable prospect in J2ME software testing.

[1]  Atif M. Memon,et al.  Automatically repairing event sequence-based GUI test suites for regression testing , 2008, TSEM.

[2]  Claude Caci,et al.  Testing object-oriented systems , 2000, SOEN.

[3]  James A. Whittaker Stochastic software testing , 1997, Ann. Softw. Eng..

[4]  Tsun S. Chow,et al.  Testing Software Design Modeled by Finite-State Machines , 1978, IEEE Transactions on Software Engineering.

[5]  Chang Liu,et al.  Using application states in software testing , 2000, Proceedings of the 2000 International Conference on Software Engineering. ICSE 2000 the New Millennium.

[6]  Atif M. Memon,et al.  GUI ripping: reverse engineering of graphical user interfaces for testing , 2003, 10th Working Conference on Reverse Engineering, 2003. WCRE 2003. Proceedings..

[7]  Güney Gönenç,et al.  A Method for the Design of Fault Detection Experiments , 1970 .

[8]  Chen Huo Survey of Model-Based Software Testing , 2004 .

[9]  Harry Robinson,et al.  Applying models in your testing process , 2000, Inf. Softw. Technol..

[10]  Boris Beizer,et al.  Black Box Testing: Techniques for Functional Testing of Software and Systems , 1996, IEEE Software.

[11]  Ferhat Khendek,et al.  Test Selection Based on Finite State Models , 1991, IEEE Trans. Software Eng..

[12]  Krishan K. Sabnani,et al.  A Protocol Test Generation Procedure , 1988, Comput. Networks.

[13]  Jeffrey D. Ullman,et al.  Introduction to Automata Theory, Languages and Computation , 1979 .