Abstract
In this paper a proposal of a new black-box unit testing method based on decision tables is given. Its main part is an automatic generation of test cases using rule-based specification of a module. The tables containing rules are described in a formalized way using the XTT2 design method for rule-based systems. The paper also provides a presentation of a prototypical framework uses proposed method. This tool was designed as an Eclipse plugin which generates JUnit test cases. The proposed method can automate and improve the software testing process.
The paper is supported by the AGH UST Grant 11.11.120.859.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Hunt, A., Thomas, D.: Pragmatic Unit Testing in Java with JUnit. Pragmatic Programmers (2003)
Astels, D.R.: Test-Driven Development: A Practical Guide. Prentice Hall (2003)
Tahchiev, P., Leme, F., Massol, V., Gregory, G.: JUnit in Action, 2nd edn. Manning Publications (2010)
Nalepa, G.J.: Proposal of business process and rules modeling with the XTT method. In: Negru, V., et al. (eds.) SYNASC Ninth International Symposium on Symbolic and Numeric Algorithms for Scientific Computing, Los Alamitos, California, Washington, Tokyo, September 26–29, pp. 500–506. IEEE Computer Society, IEEE, CPS Conference Publishing Service (2007)
Nalepa, G.J., Ligęza, A., Kaczor, K.: Formalization and modeling of rules using the XTT2 method. International Journal on Artificial Intelligence Tools 20(6), 1107–1125 (2011)
Nalepa, G.J., Kaczor, K.: Proposal of a rule-based testing framework for the automation of the unit testing process. In: Proceedings of the 17th IEEE International Conference on Emerging Technologies and Factory Automation, ETFA 2012, Kraków, Poland (September 28, 2012)
Kutt, K.: Proposal of a rule-based testing framework. Master’s thesis, AGH University of Science and Technology (July 2013), Supervisor: G. J. Nalepa
Anjaneyulu, K.: Expert systems: An introduction. Research Scientist in the Knowledge Based Computer Systems Group at NCST. Resonance article (1998)
Ligęza, A., Nalepa, G.J.: A study of methodological issues in design and development of rule-based systems: proposal of a new approach. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery 1(2), 117–137 (2011)
Nalepa, G.J.: Architecture of the HeaRT hybrid rule engine. In: Rutkowski, L., Scherer, R., Tadeusiewicz, R., Zadeh, L.A., Zurada, J.M. (eds.) ICAISC 2010, Part II. LNCS (LNAI), vol. 6114, pp. 598–605. Springer, Heidelberg (2010)
Nalepa, G., Bobek, S., Ligęza, A., Kaczor, K.: Algorithms for rule inference in modularized rule bases. In: Bassiliades, N., Governatori, G., Paschke, A. (eds.) RuleML 2011 - Europe. LNCS, vol. 6826, pp. 305–312. Springer, Heidelberg (2011)
Kaczor, K., Nalepa, G.J., Kutt, K.: Hadesclipse – integrated environment for rules (tool presentation). In: Nalepa, G.J., Baumeister, J. (eds.) Proceedings of 9th Workshop on Knowledge Engineering and Software Engineering (KESE9) Co-ocated with the 36th German Conference on Artificial Intelligence (KI 2013), Koblenz, Germany (September 17, 2013)
Nalepa, G.J., Bobek, S., Ligęza, A., Kaczor, K.: HalVA - rule analysis framework for XTT2 rules. In: Bassiliades, N., Governatori, G., Paschke, A. (eds.) RuleML 2011 - Europe. LNCS, vol. 6826, pp. 337–344. Springer, Heidelberg (2011)
Sharma, M., Chandra, B.: Automatic generation of test suites from decision table - theory and implementation. In: 2010 Fifth International Conference on Software Engineering Advances (ICSEA), pp. 459–464 (2010)
Nalepa, G.J., Ligęza, A.: Designing reliable Web security systems using rule-based systems approach. In: Menasalvas, E., Segovia, J., Szczepaniak, P.S. (eds.) AWIC 2003. LNCS (LNAI), vol. 2663, pp. 124–133. Springer, Heidelberg (2003)
Nalepa, G.J., Kluza, K.: UML representation for rule-based application models with XTT2-based business rules. International Journal of Software Engineering and Knowledge Engineering (IJSEKE) 22(4), 485–524 (2012)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Nalepa, G.J., Kutt, K., Kaczor, K. (2014). Can the Generation of Test Cases for Unit Testing be Automated with Rules?. In: Rutkowski, L., Korytkowski, M., Scherer, R., Tadeusiewicz, R., Zadeh, L.A., Zurada, J.M. (eds) Artificial Intelligence and Soft Computing. ICAISC 2014. Lecture Notes in Computer Science(), vol 8468. Springer, Cham. https://doi.org/10.1007/978-3-319-07176-3_47
Download citation
DOI: https://doi.org/10.1007/978-3-319-07176-3_47
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-07175-6
Online ISBN: 978-3-319-07176-3
eBook Packages: Computer ScienceComputer Science (R0)