Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LINE TECHPULSE 2022 - Data-Driven Testing For LINE SHOPPING

LINE TECHPULSE 2022 - Data-Driven Testing For LINE SHOPPING

Data-Driven Testing For LINE SHOPPING by Winter Hung / LINE SHOPPING @ LINE TECHPULSE 2022 https://techpulse.line.me/

2102a6b8760bd6f57f672805723dd83a?s=128

LINE Developers Taiwan
PRO

January 21, 2022
Tweet

More Decks by LINE Developers Taiwan

Other Decks in Programming

Transcript

  1. Winter Hung / LINE SHOPPING Data-Driven Testing For LINE SHOPPING

    
  2. Agenda › LINE SHOPPING Introduction › How to Use Real

    Data Integration Testing › What is Data-Driven Testing › Which Benefits are Data-Driven Testing › Conclusion 
  3. LINE SHOPPING Introduction 

  4. LINE SHOPPING E-Commerce Aggregation Center 

  5. LINE SHOPPING Different Types of Costs Transaction fee COST PER

    SALE CPS  Number of clicks COST PER CLICK CPC Effective activities COST PER ACTION CPA Assist partners COST PER LEAD CPL
  6. LINE SHOPPING Real Data of Search 

  7. › Personalized recommendation › User has favorites store › Have

    Business browsing history › Start sending schedule every day Official Account Push 
  8. Data-Driven Decision Linear Regression in Machine Learning Let’s predict Initializing

    the regression model Visualize the training and testing set Importing the dataset 
  9. Data-Driven Decision Linear Regression in Machine Learning Test Set The

    testing set should be 5% to 30% of the dataset Training Set Our training model which will implement the Linear Regression. 
  10. For KR How to Use Real Data Integration Testing 

  11. LINE SHOPPING Search Features Product Store Content Price Comparison 

  12. LINE SHOPPING SEARCH SYSTEM ARCHITECTURE  External Service 3FBM%BUB 3FBM%BUB

    3FBM%BUB %BUB 'FFET Data Operation LINE Commerce Platform MongoDB OBS 1SPEVDU  $BUFHPSZ LINE SHOPPING SEARCH NAVER 4FBSDI  3FDPNNFOEBUJPO 
  
 4JNJMBS
  13. LINE Commerce Platform  Application Layer LINE Shopping Front-APP LINE

    SHOPPING My-APP Domain Layer Product Domain Seller Domain Order Domain LCP
  14. LINE SHOPPING SEARCH MOCK SERVER  MOCK SERVER 3FBM%BUB 5FTU%BUB

    %BUB 'FFET Data Operation LINE Commerce Platform MongoDB OBS 1SPEVDU  $BUFHPSZ LINE SHOPPING SEARCH NAVER 4FBSDI  3FDPNNFOEBUJPO 
  
 4JNJMBS
  15. OBS Open Broadcast Services OBS is a media platform for

    LINE and LINE-family services, The platform comes with object storage by default Image presentation system › Creating a thumbnail › Transcoding videos and audiosArial › Analyzing media using advanced VISION-AI technology (OCR, Adult image filter, object detection) 
  16. Mock-Server Easy Mocking Any System Easily recreate all types of

    responses Start working against a service API Isolate the system-under-test to ensure tests 
  17. What is Data-Driven Testing DDT 

  18. Data-Driven Testing SYSTEM ARCHITECTURE MYSQL 704'*-& %"5"%3*7&/ 4$3*15 "DUVBM3FTVMU GORM

    Compare Order Count
  19. GORM Golang Object Relational Mapping Distributed applications of the GORM

    ORM in computer science is a programming technique for converting data between incompatible type systems in OOP languages. This creates, in effect, a “virtual object database” that can be used from within the programming language.LINE SHOPPING needs to verify data and consistent tests in MySQL 
  20. OVERVIEW GIN + GORM + MYSQL  MYSQL $MJFOU (*/

    (03. $MJFOU $MJFOU RESTFUL WEB SERVICE
  21. GIN Golang Web Framework › Excellent performance › Native net/http

    package › Fast httprouter › Well-designed middleware › Excellent data binding 
  22. OVERVIEW Code Folder Structure (03. .PEFMT $PO fi H $POUSPMMFST

    )FMQFST 3PVUFST Schema.go Model.go Database.go Controller.go Response.go Routers.go
  23. GORM PROMETHEUS SYSTEM ARCHITECTURE  (03.#&5"5"3(&5 (03.45"(&5"3(&5 (03.130%5"3(&5 NFUSJDT NFUSJDT

    NFUSJDT
  24. VOS Verda Object Storage VOS (Verda Object Storage) is an

    object storage service with comes with an S3 compatible Object Storage API. The S3 API is a de facto standard object storage API for AWS S3, which means we can utilize open-source software based on S3 API for VOS without changing our source code. We can use the S3 SDK to manage VOS objects. 
  25. DDS Data Driven Script  ASSERTION MYSQL GORM REPORT Function

    TEST DATA
  26. Benefits Which Benefits are Data-Driven Testing 

  27. TIME Data verify of spend time more than 4x faster

     MYSQL GORM & Jenkins SERVER MYSQL WORK BENCH SERVER 1 min 15 sec
  28. 1 2 3 4 5 6 7 8 9 10

    11 0 350 700 1050 1400 Partner A Partner B Partner C Partner D Partner E Partner F Orders Count CPS REPORT  Month FAIL ORDERS COUNT
  29. Coverage Health Check of Search AVG New Stores 102 AVG

    GMV Rate 15% AVG Fail Rate 0.16 
  30. 0 75000 150000 225000 300000 5 6 7 8 9

    10 Partner A Partner B Partner C Partner D Partner E Partner F Order Counts TOP6  Month
  31. 3% 20% 23% 5% 29% 20% Partner A Partner B

    Partner C Partner D Partner E Partner F 8% 9% 11% 12% 14% 46% Partner A Partner B Partner C Partner D Partner E Partner F 80 / 20 DDT Observe  80% 20%
  32. Conclusion › It is an ideal option to use realistic

    information › It allows multiple sets of data values during Health Check › Data-driven is a test automation methodology  › 80/20 is very suitable for quality control
  33. Thank you