title: Ð Ð°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ° Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½ÑÐ¾Ð² Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Feature Toggle Ð¸ Ð²Ð½ÐµÑÐ½ÐµÐ³Ð¾ API Ð´Ð»Ñ Ð°Ð²ÑÐ¾Ð¼Ð°ÑÐ¸Ð·Ð¸ÑÐ¾Ð²Ð°Ð½Ð½ÑÑ ÑÐµÑÑÐ¾Ð² Ð½Ð° Ð¿Ð»Ð°ÑÑÐ¾ÑÐ¼Ðµ Android
title: Ð²ÑÐ¿ÑÑÐºÐ½Ð°Ñ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð±Ð°ÐºÐ°Ð»Ð°Ð²ÑÐ°
titleType: Subtitle
title: Development of Feature Toggle and external API mocking tools for automated tests on the Android platform
Creators: name: ÐÑÑÐ´ÐµÐ²Ð°, ÐÐ°ÑÑÑ
Publisher: name: Ð¡Ð°Ð½ÐºÑ-ÐÐµÑÐµÑÐ±ÑÑÐ³ÑÐºÐ¸Ð¹ Ð¿Ð¾Ð»Ð¸ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ð¹ ÑÐ½Ð¸Ð²ÐµÑÑÐ¸ÑÐµÑ ÐÐµÑÑÐ° ÐÐµÐ»Ð¸ÐºÐ¾Ð³Ð¾
Year: 2024
Subjects: Android
MockWebServer
feature toggle
ÑÐµÑÑÐ¾Ð²ÑÐµ Ð´ÑÐ±Ð»ÐµÑÑ
Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ðµ
test double
mocking

description: Ð¢ÐµÐ¼Ð° Ð²ÑÐ¿ÑÑÐºÐ½Ð¾Ð¹ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð¾Ð¹ ÑÐ°Ð±Ð¾ÑÑ: Â«Ð Ð°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ° Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½-ÑÐ¾Ð² Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Feature Toggle Ð¸ Ð²Ð½ÐµÑÐ½ÐµÐ³Ð¾ API Ð´Ð»Ñ Ð°Ð²ÑÐ¾Ð¼Ð°ÑÐ¸Ð·Ð¸ÑÐ¾Ð²Ð°Ð½Ð½ÑÑ ÑÐµÑÑÐ¾Ð² Ð½Ð° Ð¿Ð»Ð°ÑÑÐ¾ÑÐ¼Ðµ AndroidÂ». Ð¦ÐµÐ»ÑÑ ÑÐ°Ð±Ð¾ÑÑ ÑÐ²Ð»ÑÐµÑÑÑ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ° Ð½Ð¾Ð²Ð¾Ð³Ð¾ Ð¿Ð¾Ð´ÑÐ¾Ð´Ð° Ð´Ð»Ñ ÑÐ°Ð±Ð¾ÑÑ Ñ feature toggle Ð² Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½ÑÐ°Ð»ÑÐ½ÑÑ Android ÑÐµÑÑÐ°Ñ Ð¿Ð¾ÑÑÐ°Ð»Ð° Â«ÐÐ´Ð½Ð¾ÐºÐ»Ð°ÑÑÐ½Ð¸ÐºÐ¸Â», Ð° ÑÐ°Ðº-Ð¶Ðµ ÑÐ°ÑÑÐ¼Ð¾ÑÑÐµÐ½Ð¸Ðµ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÐ¸ Ð¸Ð½ÑÐµÐ³ÑÐ°ÑÐ¸Ð¸ Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½ÑÐ° Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð²Ð½ÐµÑÐ½ÐµÐ³Ð¾ API Ñ ÑÑÐµÑÐ¾Ð¼ ÑÐ¿ÐµÑÐ¸ÑÐ¸ÐºÐ¸ Ð¿ÑÐ¾ÐµÐºÑÐ° Ð¸ Ð¾ÑÐµÐ½ÐºÐ° ÐµÐ³Ð¾ ÑÑÑÐµÐºÑÐ¸Ð²Ð½Ð¾ÑÑÐ¸. Ð Ð´Ð°Ð½Ð½Ð¾Ð¹ ÑÐ°Ð±Ð¾ÑÐµ Ð±ÑÐ» Ð¿ÑÐ¾Ð¸Ð·Ð²ÐµÐ´ÐµÐ½ Ð°Ð½Ð°Ð»Ð¸Ð· ÑÑÑÐµÑÑÐ²ÑÑÑÐ¸Ñ Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½ÑÐ¾Ð² Ð´Ð»Ñ Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð²Ð½ÐµÑÐ½ÐµÐ³Ð¾ API Ð² Ð°Ð²ÑÐ¾ÑÐµÑÑÐ°Ñ, Ð¿ÑÐ¸Ð²ÐµÐ´ÐµÐ½Ð¾ Ð¾Ð±Ð¾ÑÐ½Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð²ÑÐ±Ð¾-ÑÐ° Ð¸ÑÐ¿Ð¾Ð»ÑÐ·ÑÐµÐ¼Ð¾Ð¹ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÐ¸, ÑÐ´ÐµÐ»Ð°Ð½Ð½Ð¾Ð³Ð¾ Ñ ÑÑÐµÑÐ¾Ð¼ ÑÐ¿ÐµÑÐ¸ÑÐ¸ÐºÐ¸ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ, Ð° ÑÐ°ÐºÐ¶Ðµ Ð±ÑÐ»Ð¸ ÑÑÐ¾ÑÐ¼ÑÐ»Ð¸ÑÐ¾Ð²Ð°Ð½Ñ ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ðº Ð½Ð¾Ð²Ð¾Ð¼Ñ Ð¿Ð¾Ð´ÑÐ¾Ð´Ñ Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ feature toggle, Ð½Ð° Ð¾ÑÐ½Ð¾Ð²Ðµ ÑÐµÐºÑÑÐ¸Ñ Ð¿ÑÐ¾Ð±Ð»ÐµÐ¼. Ð ÑÐ¾Ð´Ðµ Ð²ÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑÐ°Ð±Ð¾ÑÑ Ð±ÑÐ»Ð¸ ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ñ Ð°Ð½Ð½Ð¾ÑÐ°ÑÐ¸Ð¸ Ð¿Ð¾Ð·Ð²Ð¾Ð»ÑÑ-ÑÐ¸Ðµ ÑÐ¿ÑÐ°Ð²Ð»ÑÑÑ Ð·Ð½Ð°ÑÐµÐ½Ð¸ÐµÐ¼ feature toggle Ð¸Ð· Ð°Ð²ÑÐ¾ÑÐµÑÑÐ¾Ð². Ð¢Ð°ÐºÐ¶Ðµ Ð½Ð° Ð¾ÑÐ½Ð¾Ð²Ðµ ÑÑ-ÑÐµÑÑÐ²ÑÑÑÐ¸Ñ ÑÐ¾ÑÐ¼Ð°ÑÐ¾Ð² Ð·Ð°Ð¿Ð¸ÑÐ¸ ÐºÐ¾Ð½ÑÐ¸Ð³ÑÑÐ°ÑÐ¸Ð¸ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ñ feature toggle Ð¸ Ð°Ñ-ÑÐ¸ÑÐµÐºÑÑÑÑ Ð²Ð·Ð°Ð¸Ð¼Ð¾Ð´ÐµÐ¹ÑÑÐ²Ð¸Ñ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ñ PMS, Ð±ÑÐ» ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½ Ð°Ð»Ð³Ð¾ÑÐ¸ÑÐ¼ Ð¿Ð¾Ð·Ð²Ð¾Ð»ÑÑÑÐ¸Ð¹ Ð¿ÑÐ¾Ð²Ð¾Ð´Ð¸ÑÑ Ð°ÑÐ´Ð¸Ñ, Ñ ÑÐµÐ»ÑÑ Ð°ÐºÑÑÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ð¸ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·ÑÐµÐ¼ÑÑ Ð² Ð°Ð²-ÑÐ¾ÑÐµÑÑÐ°Ñ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ð¹ feature toggle Ð¸ Ð·Ð°Ð²Ð¸ÑÑÑÐ¸Ñ Ð¾Ñ Ð½Ð¸Ñ ÑÐµÑÑÐ¾Ð²ÑÑ ÑÑÐµÐ½Ð°ÑÐ¸ÐµÐ². ÐÑÐ»Ð° Ð¿ÑÐ¾Ð¸Ð·Ð²ÐµÐ´ÐµÐ½Ð° Ð±Ð°Ð·Ð¾Ð²Ð°Ñ Ð½Ð°ÑÑÑÐ¾Ð¹ÐºÐ° Ð¼Ð¾Ðº-ÑÐµÑÐ²ÐµÑÐ° Ð¸ Ð½Ð°Ð¿Ð¸ÑÐ°Ð½Ñ Ð¿ÐµÑÐ²ÑÐµ ÑÐµÑÑÐ¾-Ð²ÑÐµ ÑÑÐµÐ½Ð°ÑÐ¸Ð¸ Ñ ÐµÐ³Ð¾ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸ÐµÐ¼. ÐÑÐ´ÐµÐ»ÑÐ½Ð¾Ðµ Ð²Ð½Ð¸Ð¼Ð°Ð½Ð¸Ðµ Ð±ÑÐ»Ð¾ ÑÐ´ÐµÐ»ÐµÐ½Ð¾ Ð¾ÑÐµÐ½ÐºÐµ ÑÑÑÐµÐºÑÐ¸Ð²Ð½Ð¾ÑÑÐ¸ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð²Ð½ÐµÑÐ½ÐµÐ³Ð¾ API. Ð ÐµÐ·ÑÐ»ÑÑÐ°ÑÐ¾Ð¼ ÑÐ°Ð±Ð¾ÑÑ ÑÑÐ°Ð» ÑÑÐ¾Ð²ÐµÑÑÐµÐ½ÑÑÐ²Ð¾Ð²Ð°Ð½Ð½ÑÐ¹ ÑÐ¿Ð¾ÑÐ¾Ð± Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ feature toggle Ð² Ð°Ð²ÑÐ¾ÑÐµÑÑÐ°Ñ, Ð° ÑÐ°ÐºÐ¶Ðµ Ð¿Ð¾Ð´Ð´ÐµÑÐ¶ÐºÐ° Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÐ¸ Ð¿Ð¸ÑÐ°ÑÑ Ð°Ð²ÑÐ¾ÑÐµ-ÑÑÑ Ñ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸ÐµÐ¼ Ð¼Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð²Ð½ÐµÑÐ½ÐµÐ³Ð¾ API.
description: The topic of the final qualifying work: Â«Development of Feature Toggle and external API mocking tools for automated tests on the Android PlatformÂ». The goal of the work is to develop a new approach for working with feature toggles in instrumental Android tests for the Â«OdnoklassnikiÂ» portal, as well as to consider the possibility of integrating an external API mocking tool considering the projects specifics and evaluating its effectiveness. The paper includes an analysis of existing tools for mocking external APIs in automated tests, justification for the choice of the library used, considering the applications specifics. It also formulates requirements for a new feature toggle mocking approach based on current issues. During the project implementation, annotations were implemented to man-age feature toggle values from automated tests. An algorithm was developed based on existing configuration value formats for feature toggles and the applications interaction architecture with PMS to conduct an audit to update the values of fea-ture toggles used in automated tests and their dependent test scenarios. Basic setup of a mock server was performed, and initial test scenarios were written using it. Special attention was given to evaluating the effectiveness of using external API mocking. The outcome of the work was an improved method of mocking feature tog-gles in automated tests and support for writing tests using external API mocking.