Aderência de técnicas de testes automatizados em uma Api Rest: abordagem em uma aplicação de Hub integrador de marketplaces

Detalhes bibliográficos
Ano de defesa: 2023
Autor(a) principal: Santos, Taynara Luana Caetano dos
Orientador(a): Não Informado pela instituição
Banca de defesa: Não Informado pela instituição
Tipo de documento: Dissertação
Tipo de acesso: Acesso aberto
Idioma: por
Instituição de defesa: Universidade Tecnológica Federal do Paraná
Campo Mourao
Brasil
Programa de Pós-Graduação em Inovações Tecnológicas
UTFPR
Programa de Pós-Graduação: Não Informado pela instituição
Departamento: Não Informado pela instituição
País: Não Informado pela instituição
Palavras-chave em Português:
Link de acesso: http://repositorio.utfpr.edu.br/jspui/handle/1/31733
Resumo: With the increasing advancement of technology, numerous software platforms have emerged in various fields of activities, especially in WEB applications (World Wide Web). These applications can use different types of architectures, one of which is REST (Representational State Transfer). This architecture is based on an application programming interface (API - Application Programming Interface)) that uses microservices that facilitate the process of creating new components. These microservices need to go through a testing stage, where their functionality will be evaluated. It is of paramount importance that the quality assurance processes of Software products are applied during the development cycle through Software testing. However, the testing process can become onerous by performing specific actions of a particular functionality manually several times. In view of the alternatives, automated testing stands out, as it is capable of executing automatic routines and avoiding constant manual effort. This work aims to evaluate the reduction of the manual effort of testing a REST API, with the use of automated tests, which will be responsible for executing automated test routines through scripts that will be developed with the use of frameworks (mocha and chai), (JavaScript) as the main programming language and (Node.js) as a JavaScript interpreter so that the code can be executed outside of a WEB browser environment. These scripts will be responsible for validating API test scenarios that are currently performed manually and repetitively. It is also intended to evaluate the same test scenarios with the Postman tool. In the first test experiment using frameworks, the protocols for inserting records in a client x server application are evaluated, executing 37 simultaneous test scenarios. With the second experiment using the Postman tool, the same 37 test scenarios were also evaluated. Finally, an experiment was carried out involving two test analysts to execute these 37 scenarios manually. The evaluation of the automated test process using the frameworks resulted in an execution of seven seconds, while the test executed in Postman, presents us with a more expensive work by having to insert several calls separately, while in automation, the calls can be addressed in a unified and centralized way. The execution of the 37 test scenarios performed manually resulted in two hours of work without breaks. With this, the use of the automated testing technique is evaluated using the joining of frameworks as an alternative to reduce the testing process in a REST API.