Test automation in microservice architecture

Hi, Habr. My name is Sergey Vertepov, I am a senior backend engineer. This is a short overview article on how we tested Avito's monolithic application and what has changed with the transition to a microservice architecture.





Home Service Testing



. ,   , .





β€” , .   , , -, ,   .   - ,    PHP,  Twig,  β€”  React.



  :



  1. -.
  2. .
  3. .
  4.  β€” .




,   ,    .



framework  PHP  PHPUnit  .   . -,  . ,  ,      ,   .



 β€” . jsonwire-grid. Grid β€” ,   .  Grid, ,   c Heisenbug 2018 .



  selenium-maper. ,  jsonwire-.



CI-pipeline : - CI Event,  .  CI   .   .





- Selenide,  Java.     , Selenide , . , , PowerUI,   , .   . , PowerUI  jsonwire-grid   .



   -   ,    β€” Test Report System.



,   . PHP-  ,  ,  .   2-   , .   ,   . , - - .    .





  .  β€” , .



  . «» .   ? 2- .  . -.





  . -   , . 2020    2,5 .   , 2- - , , . , ,    , . ,   time to market, -  . , , , ,  .



. .   , . , , ,     .  β€” . , . ,     , ,  ,   , .   , .





, , , , .  , - ,   .   ,   , ,   . ,   , .



,  β€” . ,     . ,   -  .   , , .



, Agile Testing.  , , .  Product Backlog Refinements. , - : - - , -.  , , . , - . - , ,   - .



    , ,  .   Agile Testing   .       ,   .



Agile Testing  Shift-left . Shift-left testing β€” ,     . .   .  β€”   ,   , .  CI, .



Shift-left ,   , . 2-  - ,  -, , , 2  . 20β€”30   .    5-10 , , - .



. CDC- Consumer-Driven Contract .  ,  , CDC- , ,   .



CDC-   .   , , .     , .



CDC-? ,  , .  β€” , -  , .   . -,   , . .   CDC- .



PaaS. ,   .    ,   . .





- - Api Gateway.   Api Gateway   -. - β€” , . -   , ,   . , ,   ,   .



,   -,    , . ,   - .   .



, service mesh. Service mesh β€”   sidecar, .   , sidecar, , , , . C  sidecar,  .



service mesh    DevOpsConf 2019 .    ,   .



sidecar OpenTracing. ,     , , .





Jaeger UI.  β€”  



service mesh Graceful Degradation . Graceful Degradation  β€” - ,   . , - . , , .    .





 β€”       . , .



service mesh Netramesh. X-Route, sidecar   .    , . , , . Netramesh , ,  DevTools-   .





:



  • E2E-.
  • Agile Testing.
  • PaaS c Api Gateway.
  • Service mesh, OpenTracing Graceful Degradation .



All Articles