Test Data Generator to Improve Code Coverage in Object Oriented Programming

R.E. Harish Goud*, C. Kishore**, Srinivasulu Asadi***
* PG Scholar, Department of Information Technology, Sree Vidyanikethan Engineering College (Autonomous), Andhra Pradesh, India.
** Department of Information Technology, Sree Vidyanikethan Engineering College (Autonomous), Andhra Pradesh, India.
*** HOD, Department of Information Technology, Sree Vidyanikethan Engineering College (Autonomous), Andhra Pradesh, India.
Periodicity:October - December'2015
DOI : https://doi.org/10.26634/jse.10.2.3733

Abstract

The features of Object Oriented Programming (i.e., abstraction, encapsulation and visibility) prevent the direct access to some modules of the source code, so that the automated test data generation becomes a challenging task. To solve this problem, Search Based Software Testing (SBST) has been applied. Previously, Random search approach has been applied to generate test suite which achieves code coverage of 70% in less than 10 sec. To address the same problem, new search approach algorithms are used which generates a test suite of high code coverage than early approaches in less search time. The proposed approach, first describes how to structure the test data generation problem for unit-testing. Based on static analysis, it considers methods or constructors to change the state that may reach to test the target. After that, it introduces a generator of instance of classes using two strategies to increase the likelihood to reach the test target, such as Seeding and Diversification, which may produce test suite of high code coverage with less search time.

Keywords

Test Data Generation, SBST, Unit-Class Testing, Seeding, Diversification.

How to Cite this Article?

Goud, R. E. H., Kishore, C., and Srinivasulu, A. (2015). Test Data Generator to Improve Code Coverage in Object Oriented Programming. i-manager’s Journal on Software Engineering, 10(2), 30-37. https://doi.org/10.26634/jse.10.2.3733

References

[1]. Abdelilah Sakti, Gilles Pesant, and Yann-Ga El Gueh Eneuc, (2013). “Instance Generator and Problem Representation to Improve Object Oriented Code Coverage,” IEEE Transactions on Software Engineering, pp.1-21.
[2]. Arcuri, A., Yao, X. (2008). “Search based software testing of object oriented containers”. Information Sciences, Vol.178(15), pp.3075–3095.
[3]. Fraser, G., and Arcuri, A. (2011). “Evosuite: automatic test suite generation for object-oriented software”. Proceedings of the 19th ACM SIGSOFT symposium and the 13th European conference on Foundations of Software Engineering. pp.416–419.
[4]. Korel, B. “Automated software test data generation”. Software Engineering, IEEE Transactions on, Vol.16(8), pp.870–879.
[5]. McMinn, P. (2004). “Search-based software test data generation: a Survey”. Software Testing Verification & Reliability, Vol.14, pp.105–156.
[6]. Alshahwan, N., and Harman, M., (2011). “Automated web application testing using search based software engineering”. Proceedings of the 2011 26th IEEE/ACM International Conference on Automated Software Engineering. pp.3–12.
[7]. Alshraideh, M., and Bottaci, L. (2006). “Search-based software test data generation for string data using program-specific search operators”. Software Testing, Verification and Reliability, Vol.16(3), pp.175–203.
[8]. Andrews, J.H., Haldar, S., Lei, Y., Li, and F.C.H. (2006). Tool support for randomized unit testing. In: Proceedings of the 1st international workshop on Random Testing, pp.36-45, ACM.
[9]. Andrews, J.H., Menzies, T., and Li, F.C., (2011). “Genetic algorithms for randomized unit testing”, Software Engineering, IEEE Transactions on, Vol.37(1), pp.80–94.
[10]. Arcuri, A., and Briand, L. (2014). “A hitchhiker's guide to statistical tests for assessing randomized algorithms in software engineering”, Software Testing, Verification and Reliability, Vol.24(3), pp.219–250.
[11]. Arcuri, A., and Fraser, G., (2011). “On parameter tuning in search based software engineering”, Search Based Software Engineering, Lecture Notes in Computer Science, Vol.6956, pp.33–47. Springer Berlin Heidelberg.
[12]. Barbey, S., and Strohmeier, A. (1994). “The problematics of testing objectoriented software”. SQM 94 Second Conference on Software Quality Management, Vol.2, pp.411–426, Citeseer.
If you have access to this article please login to view the article or kindly login to purchase the article

Purchase Instant Access

Single Article

North Americas,UK,
Middle East,Europe
India Rest of world
USD EUR INR USD-ROW
Pdf 35 35 200 20
Online 35 35 200 15
Pdf & Online 35 35 400 25

Options for accessing this content:
  • If you would like institutional access to this content, please recommend the title to your librarian.
    Library Recommendation Form
  • If you already have i-manager's user account: Login above and proceed to purchase the article.
  • New Users: Please register, then proceed to purchase the article.