CFP last date
20 January 2025
Reseach Article

Hook_Test: An Aid to the Hook-Driven Test-First Development of Framework based Application

by Noopur Goel, A. K. Tripathi, Manjari Gupta
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 65 - Number 16
Year of Publication: 2013
Authors: Noopur Goel, A. K. Tripathi, Manjari Gupta
10.5120/11005-6299

Noopur Goel, A. K. Tripathi, Manjari Gupta . Hook_Test: An Aid to the Hook-Driven Test-First Development of Framework based Application. International Journal of Computer Applications. 65, 16 ( March 2013), 1-9. DOI=10.5120/11005-6299

@article{ 10.5120/11005-6299,
author = { Noopur Goel, A. K. Tripathi, Manjari Gupta },
title = { Hook_Test: An Aid to the Hook-Driven Test-First Development of Framework based Application },
journal = { International Journal of Computer Applications },
issue_date = { March 2013 },
volume = { 65 },
number = { 16 },
month = { March },
year = { 2013 },
issn = { 0975-8887 },
pages = { 1-9 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume65/number16/11005-6299/ },
doi = { 10.5120/11005-6299 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2024-02-06T21:18:57.707850+05:30
%A Noopur Goel
%A A. K. Tripathi
%A Manjari Gupta
%T Hook_Test: An Aid to the Hook-Driven Test-First Development of Framework based Application
%J International Journal of Computer Applications
%@ 0975-8887
%V 65
%N 16
%P 1-9
%D 2013
%I Foundation of Computer Science (FCS), NY, USA
Abstract

Enhanced quality with reduced cost and reduced time-to-market is the primary goal of any software industry. Researchers and practitioners are trying to aspire it with many techniques. Object-oriented framework is the promising technology to promote reuse, thus realizing desired goal. Inherently complex design and large size of a framework make it difficult to understand the framework, thus inhibit the purpose of reuse of framework. Conventionally, test is performed after the implementation phase of the waterfall model and any fault detection at this stage is a very costly affair. In this paper, we are introducing Hook_Test document to assist in test-first development approach of instantiation of framework known as Hook-Driven Test-First Development (HDTFD) of framework based application. Hook_Test guides the user of the framework to generate hook method specification based test cases for different types of hooks. These test cases can be further customized during the framework instantiation according to the user specific instantiation of the framework. Besides many advantages, the proposed approach for instantiation process of the framework is very simple and easy to understand. Hook_Test description and HDTFD approach are our contributions in this paper.

References
  1. B. Beizer, "Software testing techniques",2nd edition, Dreamtech press.
  2. K. Beck and R. Johnson, "Patterns Generate Architecture", in Proceedings of 8th European Conference on Object Oriented Programming, Bologna, Italy, 1994, pp. 139-149.
  3. T. Jeon, S. Lee and H. Seung, "Increasing the Testability of Object-oriented Frameworks with Built-in Test", Lecture Notes in Computer Science, Vol. 2402, 2002, pp. 873-881.
  4. G. Froehlich, H. J. Hoover, L. Liu and P. Sorenson, "Hooking into Object-Oriented Application Frameworks", in Proc. of the 19th International Conference on Software Engineering, Boston, May, 1997, pp. 491-501.
  5. M. F. M. C. Fontoura, "A Systematic Approach to Framework Development", Ph. D. Thesis, Computer Science Department, Pontifical Catholic University of Rio de Janeiro, Rio de Janeiro, Brazil. 1999. Available from: http://www. teccomm. les. inf. pucrio. br/publicacoes. htm [Accessed 5 May 2012].
  6. J. A. Dallal, "Class-based Testing of Object-oriented Framework Interface Classes", Ph. D. Thesis, Department of Computing Science, University of Alberta, City, Country, 2003. Received through email: {j. aldallal@ku. edu. kw} date: 21/05/2012.
  7. K. Beck, "Aim, Fire [test-first coding]",IEEE SOFTWARE, Vol. 18, No. 5, September / October, 2001, pp. 87-89.
  8. G. E. Krasner and S. T. Pope, "A Cookbook For Using The Mode-View-Controller User Interface Paradigm in the Smalltalk-80", Journal of Object-Oriented Programming, Vol. 1, No. 3, 1988, pp. 26–49.
  9. W. Pree, G. Pomberger, A. Schappert and P. Sommerlad, "Active Guidance of Framework Development", "Software-Concepts and Tools", Vol. 16, No. 3, 1995, pp. 136–145.
  10. P. Sommerlad, A. Schappert and W. Pree, "Automated Support for Development with Frameworks", in Proceedings of the 17th International Conference on Software Engineering on Symposium on Software Reusability, ACM Press, New York, 1995, Vol. 20, pp. 123–127.
  11. R. E. Johnson, "Documenting Frameworks using Patterns", in ACM OOPSLA, 1992, Vol. x, pp. 63-76.
  12. D. Brugali and G. Menga, "Frameworks and Pattern Languages: An Intriguing Relationship", "ACM Computing Surveys", Vol. 32, No. 1, 1999, pp. 2–7.
  13. R. T. V. Braga andP. C. Masiero, "The Role of Pattern Languages in theInstantiation of Object-Oriented Frameworks", in OOIS 2002 Workshops, LNCS 2426, _Springer-Verlag Berlin Heidelberg 2002, pp. 122–131.
  14. R. T. V. Braga and P. C. Masiero, "A process for framework construction based on a pattern language", in Proceedings of the 26th Annual International Computer Software and Applications Conference, IEEE computer Society, Oxford-England, 2002, pp. 615-620.
  15. M. F. M. C. Fontoura and C. J. P. Lucena, "Extending UML to improve the representation of design patterns", Journal of Object-Oriented Programming, Vol. 13, No. 11, 2001, pp. 12–19.
  16. A. Ortigosa, M. Campo and R. Moriyon, "Towards agent-oriented assistance for framework instantiation", in OOPSLA '00 Proceedings of the 15th ACM SIGPLAN conference, ACM Press, New York, 2000, Vol. 35, pp. 253–263.
  17. A. Ortigosa and M. Campo, "SmartBooks: A Step Beyond Active-Cookbooks to aid in Framework Instantiation", "Technology of Object-Oriented Languages and Systems" 25, IEEE Press, 1999, pp. 131-140.
  18. T. C. Oliveira, S. Paulo, C. Alencar, I. M. Filho, Carlos J. P. de Lucena, and D. D. Cowan, "Software Process Representation and Analysis for Framework Instantiation", IEEE Transactions On Software Engineering, Vol. 30, No. 3, March 2004,Pp. 145-159
  19. T. C. Oliveira, P. S. ,C. Alencar, and D. D. Cowan, "Towards a Declarative Approach to Framework Instantiation", In Proceeding of First Workshop Declarative Meta-Programming (DMP), 2002, pp. 5-9.
  20. C. T. Oliveira, P. S. C. Alencar, C. J. P. de Lucena and D. D. Cowan, "RDL: A Language for Framework Instantiation Representation", The Journal of Systems and Software, Vol. 80, No. 11, 2007, pp. 1902–1929.
  21. I. M. Filho, T. C. Oliveira and C. J. P. de Lucena, "A Framework Instantiation Approach Based on the Features Model", The Journal of Systems and Software, Vol. 73, No. 2, 2004, pp. 333–349.
  22. K. C. Kang, S. G. Cohen, J. A. Hess, W. E. Novak and A. S. Peterson, "Feature-Oriented Domain Analysis (FODA) Feasibility Study", Technical Report CMU/SEI-90-TR-21, Software Engineering Institute, Carnegie Mellon University, Pittsburgh, Pennsylvania. 1993.
  23. K. C. Kang, S. Kim, J. Lee, K. Kim, E. Shin and M. Huh, "FORM: A Feature-Oriented Reuse Method with Domain-Specific Reference Architecture", Annals of Software Engineering, Kluwer Academic Publishers, Dordrecht, Holland, Vol. 5. No. 1, 1998, pp. 143–168.
  24. K. Czarnecki, T. Bednasch,, P. Unger, and U. Eisenecker, "Generative Programming for Embedded Software: An Industrial Experience Report", in Proceedings of the 23rd Conference on Generative Programming and Component Engineering, LNCS Springer-Verlag 2002, Vol. 2487, pp. 156-172.
  25. K. Czarnecki and U. Eisenecker, "Components and Generative Programming", in Proceedings of the Joint 7th European Software Engineering Conference and ACM SIGSOFT International Symposium on the Foundations of Software Engineering, France, 1999, Vol. 24, No. 6 pp. 2-19.
  26. G. Butler, "Generative Techniques for Product Lines", Software Engineering Notes, Vol. 26, No. 6, 2001, pp. 74-76.
  27. A. Pasetti, W. Schaufelberger, F. Pfenning and Y. Smaragdakis, "A Generative Approach to Framework Instantiation", Vaclav Cechticky1, Philippe Chevalley2, (Eds. ): GPCE 2003, LNCS 2830,. © Springer-Verlag Berlin Heidelberg 2003, pp. 267–286.
  28. G. Froehlich, H. J. Hoover, L. Liu, P. Sorenson, "Hooking into object-oriented application frameworks", in Proceedings of the 19th International Congress on Software Engineering, ACM Press, New York, 1997, pp. 491–501.
  29. G. Froehlich, "Hooks: an aid to the reuse of object-oriented frameworks", Ph. D. Thesis, Department ofComputing Science, University of Alberta, 2002.
  30. Meyer, "Applying Design by Contract", IEEE Computer, Volume 25, No. 10, 1992, pp. x.
  31. S. Fraser, D. Astels, K. Beck, B. Boehm, J. McGregor, J. Newkirk and C Poole, Panel, "Discipline and Practices of TDD:(Test Driven Development)", in Proceeding OOPSLA '03 Companion of the 18th annual ACM SIGPLAN, 2003, pp. 268-270.
  32. D. S. Janzen and H. Saiedian, "Does Test-Driven Development ReallyImprove SoftwareDesign Quality?", IEEE Software, Vol. 25, No. 2, March/April 2008, pp. 77-84.
  33. T. Bhat and N. Nagappan, "Evaluating the Efficacy of Test-Driven Development: Industrial Case Studies", in ISESE'06 Proceedings of the 2006 ACM/IEEE international symposium on Empirical software engineering, 2006, pp. 21–22
  34. D. S. Janzen,"On the Influence of Test-Driven Development on Software Design", in Proceedings of the 19th Conference on Software Engineering Education & Training, IEEE, 2006, pp. 141-148.
Index Terms

Computer Science
Information Sciences

Keywords

Framework instantiation test-first development Framework Interface Class (FIC) test cases hook method specification