Skip to main content
Log in

An Ontology-Based Approach to Automated Test Case Generation

  • Original Research
  • Published:
SN Computer Science Aims and scope Submit manuscript

Abstract

Software testing is as old as software itself. However, the techniques, tools, and processes used by researchers to ensure product quality are constantly evolving. Application of knowledge management technologies in automated test case generation is one of them. This paper addressed the issue of ontology-based automated test case generation in the case of black box testing. In this context, several challenges are present in existing literature. The prime challenges among are (1) major approaches are confined to a specific domain, (2) least consideration about modified domain knowledge, (3) lack of methodology for auto-identification of pre-conditions and different combinations among test input data and (4) poor requirements and domain coverage. The proposed methodology, in this paper, is aimed to resolve these issues by devising a rule-based reasoner that can auto generate the test cases. The proposed method takes an ontology-based requirements specification as an input. The novelty of the proposed method is the specification of domain independent inference rules based on which the devised reasoner can generate test cases for different domains and systems automatically. This contribution of the proposed work facilitates in improving both user’s requirements coverage and domain coverage. The devised reasoned, in this paper, is implemented in Apache Jena (Apache Jena, https://jena.apache.org., Accessed 2020/09/04). In addition, the usability of the proposed work is illustrated using a suitable case study.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

References

  1. Dadkhah M, Araban S, Paydar S. A systematic literature review on semantic web enabled software testing. J Syst Softw. 2020. https://doi.org/10.1016/j.jss.2019.110485.

    Article  Google Scholar 

  2. Wnuk K, Garrepalli T. Knowledge management in software testing: a systematic snowball literature review. Informatica Softw Eng J. 2018;12(1):51–78.

    Google Scholar 

  3. Tarasov V., Tan H., Adlemo A. (2019) Automation of software testing process using ontologies. In: Proceedings of the 11th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (KEOD), vol. 2, pp. 57–66.

  4. Tarasov V., Tan H., Ismail M., Adlemo A., Johansson M. (2016) Application of Inference Rules to a Software Requirements Ontology to Generate Software Test Cases. In: OWL: Experiences and Directions – Reasoner Evaluation: 13th International Workshop, OWLED 2016, and 5th International Workshop, ORE 2016, Bologna, Italy, November 20, 2016, Cham: Springer, 2017, pp. 82–94.

  5. Olajubu O., Ajit S., Johnson M., Turner S., Thomson S., Edwards M.: Automated test case generation from domain specific models of high-level requirements. In: RACS: Proceedings of the 2015 Conference on research in adaptive and convergent systems, October pp.505–508 (October 2015).

  6. de Souza E’F, Falbo RDA, Vijaykumar NL. Knowledge management initiatives in software testing: a mapping study. Inform Softw Technol. 2014;57(2014):378–91.

    Google Scholar 

  7. Guarino N, Oberle D, Staab S. What is an ontology? In: Staab S, Studer R, editors. Handbook on ontologies. 2nd ed. Berlin: Springer-Verlag; 2009. p. 1–17.

    Google Scholar 

  8. Banerjee S, Sarkar A. Domain-specific requirements analysis framework: ontology-driven approach. Int J Comput App. 2019;2019:1–25.

    Google Scholar 

  9. Horridge M. A.: Practical guide to building OWL ontologies using Protégé 4 and COODETools. Edition 1.3. The University of Manchester [Internet]. 2011, March 24, https://mariaiulianadascalu.files.wordpress.com/2014/02/owl-cs-manchester-ac-uk_-eowltutorialp4_v1_3.pdf, last accessed on 2020/09/06.

  10. Apache Jena, https://jena.apache.org., Accessed on 2020/09/04.

  11. Kanstrén T. (2013) A review of domain-specific modelling and software testing. In: Proceedings of Event8th International Multi-Conference on Computing in the Global Information Technology (ICCGI 2013), pp. 51–56

  12. Haq S. U., Qamar U. (2019) Ontology Based Test Case Generation for Black Box Testing. In: Proceedings of the 2019 8th International Conference on Educational and Information Technology (ICEIT 2019), pp. 236–241

  13. Banerjee S, Sarkar A. A requirements analysis framework for development of service oriented systems. SoftwEngNotes ACMSigsoft. 2017;42(3):1–12.

    Google Scholar 

  14. Nasser V. H., Du W., MacIsaac D. (2010) An Ontology-based Software Test Generation Framework. In: Proceedings of Software Engineering and Knowledge Engineering (SEKE), pp. 192–197

  15. Sneed H. M., Verhoef C. (2013) Natural language requirement specification for web service testing. In: 15th IEEE International Symposium on Web Systems Evolution (WSE), Eindhoven, pp. 5–14

  16. Wang Y., Bai X., Li J., Huang R. (2007) Ontology-Based Test Case Generation for Testing Web Services. In: 8th International Symposium on Autonomous Decentralized Systems (ISADS'07), Sedona, AZ, pp. 43–50

  17. Nguyen C. D., Perini A., Tonella P. (2008) Ontologybased test generation for multiagent systems. In: Proceedings of the 7th international joint conference on Autonomous agents and multiagent systems (AAMAS), 3:1315–1320

  18. de Souza EF, de Falbo RA, Vijaykumar NL. ROoST: Reference Ontology on SoftwareTesting. Appl Ontol. 2017;12(1):59–90.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shreya Banerjee.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This article is part of the topical collection “Applications of Software Engineering and Tool Support” guest edited by Nabendu Chaki, Agostino Cortesi and Anirban Sarkar.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Banerjee, S., Debnath, N.C. & Sarkar, A. An Ontology-Based Approach to Automated Test Case Generation. SN COMPUT. SCI. 2, 35 (2021). https://doi.org/10.1007/s42979-020-00420-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42979-020-00420-8

Keywords

Navigation