Geração automatizada de drivers e stubs de teste para JUnit a partir de especificações U2TP

  • Luciano B. Biasi PUCRS
  • Karin Becker PUCRS

Resumo


Teste é amplamente usado para garantir a qualidade em produtos de software. O teste de unidade é realizado na menor parte funcional de um software e visa descobrir defeitos nestas unidades. JUnit é uma ferramenta de apoio ao teste unitário, a qual auxilia desenvolvedores na automação dos testes e verificação dos resultados. Porém, muito tempo e esforço são gastos para codificar os drivers e os stubs de teste necessários a esta ferramenta, minimizando os benefícios esperados. O Perfil de Teste da UML 2.0 (U2TP) permite especificar artefatos de teste em uma notação padronizada, de alto nível, gráfica, e independente de linguagem de programação. Este trabalho aborda a geração totalmente automatizada de drivers e stubs de teste para ferramenta JUnit a partir de especificações de testes modeladas com o U2TP. Os modelos e algoritmos desenvolvidos foram aplicados a um estudo de caso, gerando corretamente todo o código correspondente.

Referências

Beck, K (2003). "Test-Driven Development". Addison-Wesley, 220p.

Burnstein, I (2003). "Practical software testing: a process-oriented approach". Springer-Verlag, 709p.

Cheon, Y.; Leavens, G. T (2002). "A Simple and practical approach to unit testing: the JML and JUnit way". In: Proceedings of 16th European Conference Object-Oriented Programming (ECOOP), 231-255p.

Dai, J. Grabowski, A. R (2003). "The UML 2.0 Testing Profile and its Relation to TTCN-3". In: 15th IFIP International Conference on Testing of Communicating Systems (TestCom), pp. 79-94.

Dai, Z.R., Grabowski, J., Neukirchen, H., Pals, H (2004). "From Design to Test with UML". In: 16th IFIP International Conference on Testing of Communicating Systems (TestCom), pp. 33-49.

Eclipse (2005). "Eclipse". http://www.eclipse.org, May.

Fraikin, F.; Leonhardt, T (2002). "SeDiTeC - Testing Based on Sequence Diagrams." In: 17th IEEE International Conference on Automated Software Engineering (ASE), pp. 262-266.

IBM (2005). Test Expert Rose AddIn. [link], June.

NetBeans (2005). "NetBeans". http://www.netbeans.org, April.

OMG (2004). "UML 2.0 Testing Profile Specification". Technical Report, OMG. http://www.omg.org/docs/ptc/04-04-02.pdf, June 2004, 114p.

Wittevrongel, J.; Maurer, F (2001). "SCENTOR: Scenario-Based Testing of E-Business Applications". In: 10th IEEE International Workshops on Enabling Technologies: Infrastructure for Collaborative Enterprises (WETICE), pp. 41-48.

Zongyuan, Y.; Guoqing, X; Haitao, H; Qian, C; Ling, C; Fengbin, X (2004). "JAOUT: Automated Generation of Aspect-Oriented Unit Test". In: 11th Asia-Pacific Software Engineering Conference (APSEC), pp. 374-381.
Publicado
16/10/2006
Como Citar

Selecione um Formato
BIASI, Luciano B.; BECKER, Karin. Geração automatizada de drivers e stubs de teste para JUnit a partir de especificações U2TP. In: SIMPÓSIO BRASILEIRO DE ENGENHARIA DE SOFTWARE (SBES), 20. , 2006, Florianópolis. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2006 . p. 33-48. DOI: https://doi.org/10.5753/sbes.2006.21203.