Skip to main content

Can the Generation of Test Cases for Unit Testing be Automated with Rules?

  • Conference paper
  • 2153 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 8468))

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.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Hunt, A., Thomas, D.: Pragmatic Unit Testing in Java with JUnit. Pragmatic Programmers (2003)

    Google Scholar 

  2. Astels, D.R.: Test-Driven Development: A Practical Guide. Prentice Hall (2003)

    Google Scholar 

  3. Tahchiev, P., Leme, F., Massol, V., Gregory, G.: JUnit in Action, 2nd edn. Manning Publications (2010)

    Google Scholar 

  4. 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)

    Google Scholar 

  5. 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)

    Article  Google Scholar 

  6. 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)

    Google Scholar 

  7. Kutt, K.: Proposal of a rule-based testing framework. Master’s thesis, AGH University of Science and Technology (July 2013), Supervisor: G. J. Nalepa

    Google Scholar 

  8. Anjaneyulu, K.: Expert systems: An introduction. Research Scientist in the Knowledge Based Computer Systems Group at NCST. Resonance article (1998)

    Google Scholar 

  9. 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)

    Google Scholar 

  10. 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)

    Chapter  Google Scholar 

  11. 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)

    Chapter  Google Scholar 

  12. 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)

    Google Scholar 

  13. 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)

    Chapter  Google Scholar 

  14. 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)

    Google Scholar 

  15. 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)

    Google Scholar 

  16. 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)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics