Research Article

Automatic unit test generator software by collecting run-time data

Volume: 42 Number: 4 August 1, 2024

Automatic unit test generator software by collecting run-time data

Abstract

Quality and productivity needs are considered together in software. For this reason, any existing software should be tested automatically with test automation. Software test automations is automated software testing activities. Automating constantly manually written tests, on the other hand, saves time, reduces error rates, produces better quality software, and reduces costs. This study aims to produce an automatic unit testing framework that is planned to work in run-time on software products. This developed application performs unit test transformations that can respond to the desired test scenarios on the product being studied.. Java agent is used as the basis of all these transformations. All information about the objects, methods, and variables of the sample java classes to be worked on is converted into data in run-time using byte code. During this transformation, information is saved in the database, and unit tests are created automatically through the template engine. Compared to the products developed on automatic unit test generation in the literature, the opcode parsing method was developed for this study. This method reads a byte code at run-time, uses the properties of the java class it belongs to, and automatically creates the unit test class and test methods. The study can also examine different object definitions and conditional and loop structures within a method and produce alternative test scenarios. The automatic unit test scenario produced has been turned into a flexible framework that can encounter minimum errors at run-time. Considering the scarcity of studies in the field of national software testing; It is thought that the automatic unit test generation product developed within the scope of this study, using byte code, will contribute to the work area.

Keywords

References

  1. REFERENCES
  2. [1] Damar M, Özdağoğlu G, Özdağoğlu A. Software quality and standards on a global scale: Trends in the literature from scientific and sectoral perspective. Alphanumeric J 2018;6:325–348. [CrossRef]
  3. [2] Felice S. JUnit Vs TestNG: Differences between JUnit and TestNG. Available at: https://www.browserstack.com/guide/junit-vs-testng. Accessed on Jun 26, 2024.
  4. [3] Graham D, Fewster M. Software test automation: effective use of test execution tools. Boston: Addison-Wesley Professional; 1999.
  5. [4] Csallner C, Smaragdakis Y. JCrasher: An automatic robustness tester for Java. Softw Pract Exp 2004;34:1025–1050. [CrossRef]
  6. [5] Pacheco C, Lahiri SK, Ernst MD, Ball T. Feedback-directed random test generation. In proceedings of the 29th International Conference on Software Engineering; 2007: Minneapolis, MN, USA. IEEE; 2007. pp.75– 84. [CrossRef]
  7. [6] Pacheco C, Ernst MD. Randoop: Feedback-directed random testing for Java. Proceedings of the Conference on Object-Oriented Programming Systems, Languages, and Applications, OOPSLA 2007:815–816. [CrossRef]
  8. [7] Simons AJH. JWalk: A tool for lazy, systematic testing of java classes by design introspection and user interaction. Autom Softw Eng 2007;14:369–418. [CrossRef]

Details

Primary Language

English

Subjects

Clinical Chemistry

Journal Section

Research Article

Publication Date

August 1, 2024

Submission Date

November 17, 2022

Acceptance Date

April 4, 2023

Published in Issue

Year 2024 Volume: 42 Number: 4

APA
Genç, S. (2024). Automatic unit test generator software by collecting run-time data. Sigma Journal of Engineering and Natural Sciences, 42(4), 988-1008. https://izlik.org/JA56KC45RL
AMA
1.Genç S. Automatic unit test generator software by collecting run-time data. SIGMA. 2024;42(4):988-1008. https://izlik.org/JA56KC45RL
Chicago
Genç, Sevdanur. 2024. “Automatic Unit Test Generator Software by Collecting Run-Time Data”. Sigma Journal of Engineering and Natural Sciences 42 (4): 988-1008. https://izlik.org/JA56KC45RL.
EndNote
Genç S (August 1, 2024) Automatic unit test generator software by collecting run-time data. Sigma Journal of Engineering and Natural Sciences 42 4 988–1008.
IEEE
[1]S. Genç, “Automatic unit test generator software by collecting run-time data”, SIGMA, vol. 42, no. 4, pp. 988–1008, Aug. 2024, [Online]. Available: https://izlik.org/JA56KC45RL
ISNAD
Genç, Sevdanur. “Automatic Unit Test Generator Software by Collecting Run-Time Data”. Sigma Journal of Engineering and Natural Sciences 42/4 (August 1, 2024): 988-1008. https://izlik.org/JA56KC45RL.
JAMA
1.Genç S. Automatic unit test generator software by collecting run-time data. SIGMA. 2024;42:988–1008.
MLA
Genç, Sevdanur. “Automatic Unit Test Generator Software by Collecting Run-Time Data”. Sigma Journal of Engineering and Natural Sciences, vol. 42, no. 4, Aug. 2024, pp. 988-1008, https://izlik.org/JA56KC45RL.
Vancouver
1.Sevdanur Genç. Automatic unit test generator software by collecting run-time data. SIGMA [Internet]. 2024 Aug. 1;42(4):988-1008. Available from: https://izlik.org/JA56KC45RL

IMPORTANT NOTE: JOURNAL SUBMISSION LINK https://eds.yildiz.edu.tr/sigma/