Остання редакція: 2025-06-15
Анотація
У роботі розглянуто підходи до тестування веб-застосунків, створених із використанням платформи JHipster, на прикладі системи для управління ресурсами кінотеатру. Проведено аналіз засобів, що застосовуються для перевірки працездатності бекенд- та фронтенд-компонентів: JUnit і MockMvc – для модульного та інтеграційного тестування REST API, Testcontainers – для перевірки взаємодії з базою даних PostgreSQL, Cypress – для наскрізного тестування інтерфейсу користувача. Особливу увагу приділено перевірці логіки авторизації, бронювання квитків, обробки оплат, обліку товарів і обробки повідомлень через Kafka. Запропоновано структуру автоматизованого тестового покриття, що забезпечує надійність і контроль якості програмного забезпечення на всіх рівнях.
Testing web applications using JHipster on a cinema resource management system.
Abstract
The paper examines testing approaches for web applications developed using the JHipster platform, based on the example of a cinema resource management system. The study highlights methods for validating both backend and frontend components: JUnit and MockMvc for unit and integration testing of REST APIs, Testcontainers for testing PostgreSQL interactions, and Cypress for end-to-end user interface testing. Particular focus is given to verifying core processes such as authentication, ticket booking, payment handling, inventory tracking, and Kafka-based message processing. A structured automated testing strategy is proposed to ensure software reliability and quality across all system layers.
Ключові слова
Посилання
- JHipster Documentation. URL: https://www.jhipster.tech/documentation-archive/v8.0.0/ (Дата звернення: 05.06.2025)
- Spring Boot Reference Documentation. URL: https://docs.spring.io/spring-boot/docs/current/reference/html/ – (Дата звернення: 05.06.2025)
- Cypress Documentation. URL: https://docs.cypress.io/ (Дата звернення: 05.06.2025)
- PostgreSQL Official Documentation. URL: https://www.postgresql.org/docs/ (Дата звернення: 05.06.2025)
- Auth0. JSON Web Token Introduction. URL: https://auth0.com/docs/secure/tokens/json-web-tokens (Дата звернення: 05.06.2025)
- Checkstyle – Check Java Code Style. URL: https://checkstyle.sourceforge.io/ (Дата звернення: 05.06.2025)
- JaCoCo Java Code Coverage Library. URL: https://www.eclemma.org/jacoco/ (Дата звернення: 05.06.2025)
- MapStruct Documentation. URL: https://mapstruct.org/documentation/stable/reference/html/ (Дата звернення: 05.06.2025)