Open Access Open Access  Restricted Access Subscription or Fee Access

A Survey on Basic JUnit Framework for Java Applications

A. Dharani, S. P. Rajamohana

Abstract


Software testing plays an important role in the achievement of software quality and reliability. Testing process can start at initial phase of development and continue till the deployment phase. Testing the software module by module reduces the number of bugs released during the deployment. Unit testing is used to determine whether the source code is fit for use. The major goal of unit testing is to separate each part of the program and test that the individual modules are working correctly. It isolates the modules of testable software from the entire code and finds whether it behaves exactly as your expectation. It is proven that a large percentage of defects are identified during unit testing. It supports automation and reduces the difficulty of discovering errors contained in more complex parts of the application. It gives attention to each unit of the code. In unit testing, JUnit framework with GUI techniques plays a significant role in development of real time software. Since the bugs are found early, Junit testing helps reduce the cost of bug fixes. Because the cost of debugging at the deployment phase is higher than the cost at module building phase. It deals with multiple test cases so that various boundary conditions are checked for each module.


Keywords


Alpha Testing, Assertion, Beta Testing, Depth First Order, Functional Test JUnit Framework Test Case and Test Suite, Test Class, Unit Testing, White Box Testing.

Full Text:

PDF

References


Mohammad Wahid and Dr Abdullah, Almalaise, JUnit Framework: An Interactive Approach for Basic Unit Testing Learning in Software Engineering, 3rd International Congress on Engineering Education (ICEED), 2011.

Hesari, S. Mashayekhi, H. Ramsin, 'Towards a General Framework for Evaluating Software Development Methodologies'", R., Computer Software and Applications Conference (COMPSAC), 2010 IEEE 34th Annual, Seoul page(s): 208 – 217.

Hong Mei, Dan Hao, Lingming Zhang, Lu Zhang, Ji Zhou, and Gregg Rothermel, A Static Approach to Prioritizing JUnit Test Cases, IEEE transactions on Software Engineering, vol. 38, no. 6, November/December 2012.

Dirk Riehle, "JUnit 3.8 Documented Using Collaborations" ACM SIGSOFT Software Engineering Notes Page I, New York, NY, USA, March 2008 Volume 33 Number 2

Kent Beck, "Test Driven Development'" Addison-Wesley 2002. [5] Michael Ellims & James Bridges & Darrel C. "The Economics of Unit Testing"' Ince, Empir Software Eng (2006) 11: 5-31, Springer Science + Business Media, Inc. 2006.

G. Rothermel, R. Untch, C. Chu, and M. Harrold, “Test Case Prioritization: An Empirical Study,” Proc. Int’l Conf. Software Maintenance, pp. 179-188, 1999.

B. Beizer, Software Testing Techniques. Van Nostrand Reinhod, 1990.

J.A. Jones and M.J. Harrold, “Test-Suite Reduction and Prioritization for Modified Condition/Decision Coverage,” IEEE Trans. Software Eng., vol. 29, no. 3, pp. 195-209, Mar. 2003.

Andy Hunt and Dave Thomas "Pragmatic Unit Testing in Java with JUnit”, http://www.pragmaticprogram mer.com/starter_kit.

"NetBeans IDE 7.0: The Smarter Way to Code"' NetBeans, 2011: www, junit.org.

Lu Luo, Paul Li, ”Software Testing Techniques- Technology Maturation and Research Statergies”, Class report for 17-939A, Institute of Software Research International, Carneige Mellon University, Pittsburgh USA. URL:http://www.cs.cmu.edu/~luluo/Courses/17939Report.pdf.

Hitesh T Ahbildar, Bichitra Kalita, “Automated Software Test Data Generation: Direction of Research”, International Journal of Computer Science & Engineering Survey (IJCSES) Vol.2, No.1, Feb 2011, pp.99-120, DOI: 10.5121/ijcses.2011.2108.

Reshma D. Abhang, B. B. Gite,”Testing Methods and Tools in Cloud Computing Environment”, International Journal of Engineering Research & Technology (IJERT), pp.1400-1403, Vol.3 Issue 11, November-2014.

Walt Scacchi,”Process Model in Software Engineering”, Institute for Software Research, University of California, Irvine, Encyclopedia of Software Engineering, 2nd Edition, John Wiley and Sons, Inc, New York, December 2001.

Magne Jorgesen,”Software Quality Measurement”, University of Oslo, Department of Informatics, Norway.

Antonia Bertolino,”Software Testing Research and Proactice”, ACM’03 Proceedings of the abstract state machines 10th International Conference on Advances in theory and practice, pp.1-21.

Rasneet Kaur Chauhan, Iqbal Singh, “Latest Research and Development on Software Testing Techniques and Tools”, International Journal of Current Engineering and Technology, pp.2368-2372, Vol.4, No.4 (Aug 2014).


Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.