Uso de Modelos da UML em Testes de Componentes

  • Ivan Rodolfo Duran Perez UNICAMP
  • Eliane Martins UNICAMP
  • Júlio Esslinger Viégas UNICAMP

Abstract


A software component must be tested every time that is reused, to guarantee the quality of both the component itself and the system in which it is to be integrated. Since the source code of the components is generally not available for its users, we propose a method to generate test cases from an UML Activity Diagram that representing the component behavior. Path testing techniques are used to automatically derive test cases. In this paper we describe the method and show an example to illustrate it. A tool developed to support the approach is also briefly presented.

References

Beizer, B. (1990) “Software Testing Techniques”, 2nd Edition.

Binder, R. V. (2000) “Testing object-oriented systems”, Addison-Wesley.

Briand, L. e Labiche, Y. (2001) “A uml-based approach to system testing”. In: UML’01: Proceedings of the 4th International Conference on The Unified Modeling Language, Modeling Languages, Concepts, and Tools. Springer-Verlag, London, UK, pp. 194–208.

Cruise Control (2006) “Cruise Control” [link] última consulta em 25/08/2006.

Edwards, S. H. (2000) “Black-box testing using flowgraphs: An experimental assessment of effectiveness and automation potential”. Software Testing, Verification and Reliability, 10(4), pp. 249-262.

Guerra, P. A. C., Araújo, C. S., Rocha, C. R. e Martins, E. (2005) “Cbdunit - uma ferramenta para testes unitários de componentes”. In: Anais de XIX Simpósio Brasileiro de Engenharia de Software - XII Sessão de Ferramentas.

Hartmann, J., Imoberdorf, C. e Meisinger, M. (2000) “UML-Based integration testing” ACM SIGSOFT Software Engineering Notes Volume 25 , Issue 5 Pages: 60 - 70 ISBN:1-58113-266-2.

Meszaros, G. A (2004) “Pattern Language for Automated Testing of Indirect Inputs and Outputs using XUnit”. In Proceedings of PLOP’2004.

Meyer, B. (1997) “Object-Oriented Software Construction”. Prentice Hall, segunda edição.

OMG (Object Management Group) (2004) “UML 2.0 Superstructure Final Adopted Specification”, OMG document ptc/03-08-02, 2004.

OMG (Object Management Group) (2005) “Meta Object Facility (MOF) 2.0 XMI Mapping Specification”, OMG document formal/05-09-01.

Object Mentor Inc (2007) Junit.org. http://www.junit.org.

Paige, M. R. (1978) “An analytical approach to software testing”, Proceedings COMPSAC.

Parrish, A.S. Borie, R. B. e Cordes, D. W. (1993) “Automated flow graph-based testing of object-oriented software modules” - Journal of Systems and Software - http://portal.acm.org

Rocha, C. (2005) “Um Método de Testes para Componentes Tolerantes a Falhas”. Campinas: Instituto de Computação da UNICAMP. 153 p. (Dissertação de Mestrado).

Sinha, S. e Harrold, M. J. (2001) “Interprocedural Control Dependence”. ACM Transactions on Software Engineering and Methodology, 10(1), Pages 209-254.

Sitaraman M. e Weide, B.W. (1994) “Component-based software engineering using RESOLVE”. ACM SIGSOFT Software Enigineering Notes.

Szyperski, C. (1998) “Component Software: Beyond Object-Oriented Programming”, Addison-Wesley.

Weyuker, E. (1998) “Testing Component-Based Software: A Cautionary Tale”, IEEE Software, 15(5): 54-59, September/October 1998.
Published
2007-05-29
PEREZ, Ivan Rodolfo Duran; MARTINS, Eliane; VIÉGAS, Júlio Esslinger. Uso de Modelos da UML em Testes de Componentes. In: FAULT TOLERANCE WORKSHOP (WTF), 8. , 2007, Belém/PA. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2007 . p. 99-112. ISSN 2595-2684. DOI: https://doi.org/10.5753/wtf.2007.23242.