Efficient Test Case Generation in Software Testing Using DistilGPT-2 and EfficientNet-Lite
DOI:
https://doi.org/10.70454/IJMRE.2022.20201Keywords:
Lightweight Deep Learning, Test Case Generation, Software Testing, DistilGPT-2, EfficientNet-LiteAbstract
Software testing plays a critical role in ensuring software reliability, yet traditional test case generation approaches often suffer from high computational overhead and inefficiency. Traditional methods, including genetic algorithms, struggle with scalability and fail to optimize execution time while maintaining high test coverage. To address these limitations, this paper proposes a lightweight deep learning-based test case generation approach using DistilGPT-2 and EfficientNet-Lite. Unlike conventional deep learning models, our method efficiently generates both text-based and GUI-based test cases while reducing computational cost. The novelty of this approach lies in integrating CodeT5-Small for feature extraction, DistilGPT-2 for textual test case generation, and EfficientNet-Lite with an RNN for GUI-based testing, enabling a more effective, low-resource test generation pipeline. The results demonstrate that our method achieves higher test coverage (95%), improved efficiency (90%), and greater testing reliability (98%) compared to advanced genetic algorithms, while also reducing computational overhead to 60%. Compared to existing approaches, our method outperforms traditional AI-based testing solutions in terms of accuracy, fault detection rate, and efficiency. The proposed method enhances software testing by minimizing redundant test cases, improving execution pass rates, and ensuring broader code coverage, making it a scalable and cost-effective solution for modern software development. This work paves the way for lightweight transformer-based models in test case generation, ensuring robust test automation with minimal resource consumption.
References
[1] Manès, V. J., Han, H., Han, C., Cha, S. K., Egele, M., Schwartz, E. J., & Woo, M. (2019). The art, science, and engineering of fuzzing: A survey. IEEE Transactions on Software Engineering, 47(11), 2312-2331.
[2] Akhil, R.G.Y. (2021). Improving Cloud Computing Data Security with the RSA Algorithm. International Journal of Information Technology & Computer Engineering, 9(2), ISSN 2347–3657.
[3] Liang, H., Pei, X., Jia, X., Shen, W., & Zhang, J. (2018). Fuzzing: State of the art. IEEE Transactions on Reliability, 67(3), 1199-1218.
[4] Yalla, R.K.M.K. (2021). Cloud-Based Attribute-Based Encryption and Big Data for Safeguarding Financial Data. International Journal of Engineering Research and Science & Technology, 17 (4).
[5] Zhang, J. M., Harman, M., Ma, L., & Liu, Y. (2020). Machine learning testing: Survey, landscapes and horizons. IEEE Transactions on Software Engineering, 48(1), 1-36.
[6] Peng, H., Shoshitaishvili, Y., & Payer, M. (2018, May). T-Fuzz: fuzzing by program transformation. In 2018 IEEE Symposium on Security and Privacy (SP) (pp. 697-710). IEEE.
[7] Harikumar, N. (2021). Streamlining Geological Big Data Collection and Processing for Cloud Services. Journal of Current Science, 9(04), ISSN NO: 9726-001X.
[8] Zou, D., Liang, J., Xiong, Y., Ernst, M. D., & Zhang, L. (2019). An empirical study of fault localization families and their combinations. IEEE Transactions on Software Engineering, 47(2), 332-347.
[9] Basava, R.G. (2021). AI-powered smart comrade robot for elderly healthcare with integrated emergency rescue system. World Journal of Advanced Engineering Technology and Sciences, 02(01), 122–131.
[10] Ampatzoglou, A., Bibi, S., Avgeriou, P., Verbeek, M., & Chatzigeorgiou, A. (2019). Identifying, categorizing and mitigating threats to validity in software engineering secondary studies. Information and software technology, 106, 201-230.
[11] Sri, H.G. (2021). Integrating HMI display module into passive IoT optical fiber sensor network for water level monitoring and feature extraction. World Journal of Advanced Engineering Technology and Sciences, 02(01), 132–139.
[12] Mohanani, R., Salman, I., Turhan, B., Rodríguez, P., & Ralph, P. (2018). Cognitive biases in software engineering: A systematic mapping study. IEEE Transactions on Software Engineering, 46(12), 1318-1339.
[13] Rajeswaran, A. (2021). Advanced Recommender System Using Hybrid Clustering and Evolutionary Algorithms for E-Commerce Product Recommendations. International Journal of Management Research and Business Strategy, 10(1), ISSN 2319-345X.
[14] Zou, W., Lo, D., Kochhar, P. S., Le, X. B. D., Xia, X., Feng, Y., ... & Xu, B. (2019). Smart contract development: Challenges and opportunities. IEEE transactions on software engineering, 47(10), 2084-2106.
[15] Sreekar, P. (2021). Analyzing Threat Models in Vehicular Cloud Computing: Security and Privacy Challenges. International Journal of Modern Electronics and Communication Engineering, 9(4), ISSN2321-2152.
[16] LeClair, A., Jiang, S., & McMillan, C. (2019, May). A neural model for generating natural language summaries of program subroutines. In 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) (pp. 795-806). IEEE.
[17] Sarker, I. H., Abushark, Y. B., Alsolami, F., & Khan, A. I. (2020). Intrudtree: a machine learning based cyber security intrusion detection model. Symmetry, 12(5), 754.
[18] Naresh, K.R.P. (2021). Optimized Hybrid Machine Learning Framework for Enhanced Financial Fraud Detection Using E-Commerce Big Data. International Journal of Management Research & Review, 11(2), ISSN: 2249-7196.
[19] Barricelli, B. R., Cassano, F., Fogli, D., & Piccinno, A. (2019). End-user development, end-user programming and end-user software engineering: A systematic mapping study. Journal of Systems and Software, 149, 101-137.
[20] Sitaraman, S. R. (2021). AI-Driven Healthcare Systems Enhanced by Advanced Data Analytics and Mobile Computing. International Journal of Information Technology and Computer Engineering, 12(2).
[21] Tantithamthavorn, C., McIntosh, S., Hassan, A. E., & Matsumoto, K. (2018). The impact of automated parameter optimization on defect prediction models. IEEE Transactions on Software Engineering, 45(7), 683-711.
[22] Mamidala, V. (2021). Enhanced Security in Cloud Computing Using Secure Multi-Party Computation (SMPC). International Journal of Computer Science and Engineering( IJCSE), 10(2), 59–72
[23] Wang, S., Liu, T., Nam, J., & Tan, L. (2018). Deep semantic feature learning for software defect prediction. IEEE Transactions on Software Engineering, 46(12), 1267-1293.
[24] Sareddy, M. R. (2021). The future of HRM: Integrating machine learning algorithms for optimal workforce management. International Journal of Human Resources Management (IJHRM), 10(2).
[25] Zhu, J., He, S., Liu, J., He, P., Xie, Q., Zheng, Z., & Lyu, M. R. (2019, May). Tools and benchmarks for automated log parsing. In 2019 IEEE/ACM 41st International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) (pp. 121-130). IEEE.
[26] Chetlapalli, H. (2021). Enhancing Test Generation through Pre-Trained Language Models and Evolutionary Algorithms: An Empirical Study. International Journal of Computer Science and Engineering( IJCSE), 10(1), 85–96
[27] Combemale, B., & Wimmer, M. (2019, May). Towards a model-based devops for cyber-physical systems. In International Workshop on Software Engineering Aspects of Continuous Development and New Paradigms of Software Production and Deployment (pp. 84-94). Cham: Springer International Publishing.
[28] Basani, D. K. R. (2021). Leveraging Robotic Process Automation and Business Analytics in Digital Transformation: Insights from Machine Learning and AI. International Journal of Engineering Research and Science & Technology, 17(3).
[29] Dingsøyr, T., Moe, N. B., Fægri, T. E., & Seim, E. A. (2018). Exploring software development at the very large-scale: a revelatory case study and research agenda for agile method adaptation. Empirical Software Engineering, 23(1), 490-520.
[30] Feist, J., Grieco, G., & Groce, A. (2019, May). Slither: a static analysis framework for smart contracts. In 2019 IEEE/ACM 2nd International Workshop on Emerging Trends in Software Engineering for Blockchain (WETSEB) (pp. 8-15). IEEE.
[31] Sareddy, M. R. (2021). Advanced quantitative models: Markov analysis, linear functions, and logarithms in HR problem solving. International Journal of Applied Science Engineering and Management, 15(3).
[32] Chen, Z., Kommrusch, S., Tufano, M., Pouchet, L. N., Poshyvanyk, D., & Monperrus, M. (2019). Sequencer: Sequence-to-sequence learning for end-to-end program repair. IEEE Transactions on Software Engineering, 47(9), 1943-1959.
[33] Bobba, J. (2021). Enterprise financial data sharing and security in hybrid cloud environments: An information fusion approach for banking sectors. International Journal of Management Research & Review, 11(3), 74–86.
[34] Menzel, T., Bagschik, G., & Maurer, M. (2018, June). Scenarios for development, test and validation of automated vehicles. In 2018 IEEE intelligent vehicles symposium (IV) (pp. 1821-1827). IEEE.
[35] Narla, S., Peddi, S., & Valivarthi, D. T. (2021). Optimizing predictive healthcare modelling in a cloud computing environment using histogram-based gradient boosting, MARS, and SoftMax regression. International Journal of Management Research and Business Strategy, 11(4).
[36] Althoff, M., & Lutz, S. (2018, June). Automatic generation of safety-critical test scenarios for collision avoidance of road vehicles. In 2018 IEEE Intelligent Vehicles Symposium (IV) (pp. 1326-1333). IEEE.
[37] Kethu, S. S., & Purandhar, N. (2021). AI-driven intelligent CRM framework: Cloud-based solutions for customer management, feedback evaluation, and inquiry automation in telecom and banking. Journal of Science and Technology, 6(3), 253–271.
[38] Koyuncu, A., Liu, K., Bissyandé, T. F., Kim, D., Klein, J., Monperrus, M., & Le Traon, Y. (2020). Fixminer: Mining relevant fix patterns for automated program repair. Empirical Software Engineering, 25.
[39] Srinivasan, K., & Awotunde, J. B. (2021). Network analysis and comparative effectiveness research in cardiology: A comprehensive review of applications and analytics. Journal of Science and Technology, 6(4), 317–332.
[40] Pham, V. T., Böhme, M., & Roychoudhury, A. (2020, October). Aflnet: A greybox fuzzer for network protocols. In 2020 IEEE 13th International Conference on Software Testing, Validation and Verification (ICST) (pp. 460-465). IEEE.
[41] Narla, S., & Purandhar, N. (2021). AI-infused cloud solutions in CRM: Transforming customer workflows and sentiment engagement strategies. International Journal of Applied Science Engineering and Management, 15(1).
[42] Jiang, N., Lutellier, T., & Tan, L. (2021, May). Cure: Code-aware neural machine translation for automatic program repair. In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) (pp. 1161-1173). IEEE.
[43] Anderson, J. A., Glaser, J., & Glotzer, S. C. (2020). HOOMD-blue: A Python package for high-performance molecular dynamics and hard particle Monte Carlo simulations. Computational Materials Science, 173, 109363.
[44] Budda, R. (2021). Integrating artificial intelligence and big data mining for IoT healthcare applications: A comprehensive framework for performance optimization, patient-centric care, and sustainable medical strategies. International Journal of Management Research & Review, 11(1), 86–97.
[45] Hu, X., Li, G., Xia, X., Lo, D., & Jin, Z. (2020). Deep code comment generation with hybrid lexical and syntactical information. Empirical Software Engineering, 25, 2179-2217.
[46] Ganesan, T., & Devarajan, M. V. (2021). Integrating IoT, Fog, and Cloud Computing for Real-Time ECG Monitoring and Scalable Healthcare Systems Using Machine Learning-Driven Signal Processing Techniques. International Journal of Information Technology and Computer Engineering, 9(1).
[47] Mossberg, M., Manzano, F., Hennenfent, E., Groce, A., Grieco, G., Feist, J., ... & Dinaburg, A. (2019, November). Manticore: A user-friendly symbolic execution framework for binaries and smart contracts. In 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE) (pp. 1186-1189). IEEE.
[48] Pulakhandam, W., & Samudrala, V. K. (2021). Enhancing SHACS with Oblivious RAM for secure and resilient access control in cloud healthcare environments. International Journal of Engineering Research and Science & Technology, 17(2).
[49] Kim, J., Feldt, R., & Yoo, S. (2019, May). Guiding deep learning system testing using surprise adequacy. In 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) (pp. 1039-1049). IEEE.
[50] Jayaprakasam, B. S., & Thanjaivadivel, M. (2021). Integrating deep learning and EHR analytics for real-time healthcare decision support and disease progression modeling. International Journal of Management Research & Review, 11(4), 1–15. ISSN 2249-7196.
[51] Ma, L., Zhang, F., Sun, J., Xue, M., Li, B., Juefei-Xu, F., ... & Wang, Y. (2018, October). Deepmutation: Mutation testing of deep learning systems. In 2018 IEEE 29th international symposium on software reliability engineering (ISSRE) (pp. 100-111). IEEE.
[52] Jayaprakasam, B. S., & Thanjaivadivel, M. (2021). Cloud-enabled time-series forecasting for hospital readmissions using transformer models and attention mechanisms. International Journal of Applied Logistics and Business, 4(2), 173-180.
[53] Tuncali, C. E., Fainekos, G., Ito, H., & Kapinski, J. (2018, June). Simulation-based adversarial test generation for autonomous vehicles with machine learning components. In 2018 IEEE Intelligent Vehicles Symposium (IV) (pp. 1555-1562). IEEE.
[54] Dyavani, N. R., & Thanjaivadivel, M. (2021). Advanced security strategies for cloud-based e-commerce: Integrating encryption, biometrics, blockchain, and zero trust for transaction protection. Journal of Current Science, 9(3), ISSN 9726-001X.
[55] Sanchis, R., García-Perales, Ó., Fraile, F., & Poler, R. (2019). Low-code as enabler of digital transformation in manufacturing industry. Applied Sciences, 10(1), 12.
[56] Wang, W., Zhang, Y., Sui, Y., Wan, Y., Zhao, Z., Wu, J., ... & Xu, G. (2020). Reinforcement-learning-guided source code summarization using hierarchical attention. IEEE Transactions on software Engineering, 48(1), 102-119.
[57] Alhammad, M. M., & Moreno, A. M. (2018). Gamification in software engineering education: A systematic mapping. Journal of Systems and Software, 141, 131-150.
Downloads
Published
Issue
Section
License
Copyright (c) 2022 Naga Sushma Allur, Sharadha Kodadi, Durga Praveen Deevi, R. Pushpakumar (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
This is an Open Access article distributed under the term's of the Creative Common Attribution 4.0 International License permitting all use, distribution, and reproduction in any medium, provided the work is properly cited.