Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Joshua Tseng
582 views
20181121 ch12 managing data ii
Continuous Delivery Chapter 12 導讀
Technology
◦
Read more
3
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 14
2
/ 14
3
/ 14
4
/ 14
5
/ 14
6
/ 14
7
/ 14
8
/ 14
9
/ 14
10
/ 14
11
/ 14
12
/ 14
13
/ 14
14
/ 14
More Related Content
PDF
20250810 COSCUP 2025 TR210 如何縮小我們與 PVE 間的距離
by
Joshua Tseng
PDF
2025年07月05日 AI世代 你跟上了嗎?簡單 AI工具分享,地點:淡江教會桃園堂
by
Joshua Tseng
PDF
20200611 NCKU CCNS SA/NA VS Enterprise
by
Joshua Tseng
PDF
20191128 從企業看 SA/NA 及經驗分享@交大資工
by
Joshua Tseng
PDF
20190424 GCPUG 輕鬆談 Next'19
by
Joshua Tseng
PDF
20190515 - 如何大量提升 Elasticsearch 在雲端上的效能
by
Joshua Tseng
PDF
20170830 2nd sre build and deployment scripting
by
Joshua Tseng
PPTX
20180627 - GCPUGTW - PIXNET的SRE之道
by
Joshua Tseng
20250810 COSCUP 2025 TR210 如何縮小我們與 PVE 間的距離
by
Joshua Tseng
2025年07月05日 AI世代 你跟上了嗎?簡單 AI工具分享,地點:淡江教會桃園堂
by
Joshua Tseng
20200611 NCKU CCNS SA/NA VS Enterprise
by
Joshua Tseng
20191128 從企業看 SA/NA 及經驗分享@交大資工
by
Joshua Tseng
20190424 GCPUG 輕鬆談 Next'19
by
Joshua Tseng
20190515 - 如何大量提升 Elasticsearch 在雲端上的效能
by
Joshua Tseng
20170830 2nd sre build and deployment scripting
by
Joshua Tseng
20180627 - GCPUGTW - PIXNET的SRE之道
by
Joshua Tseng
Featured
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
by
Search Engine Journal
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
by
Chiara Aliotta
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
by
OECD Directorate for Financial and Enterprise Affairs
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
by
SocialHRCamp
PDF
2024 State of Marketing Report – by Hubspot
by
Marius Sescu
PDF
Everything You Need To Know About ChatGPT
by
Expeed Software
PDF
Product Design Trends in 2024 | Teenage Engineerings
by
Pixeldarts
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
by
ThinkNow
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
by
marketingartwork
PDF
Skeleton Culture Code
by
Skeleton Technologies
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
by
Neil Kimberley
PDF
Content Methodology: A Best Practices Report (Webinar)
by
contently
PPTX
How to Prepare For a Successful Job Search for 2024
by
Albert Qian
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
by
Kurio // The Social Media Age(ncy)
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
by
Search Engine Journal
PDF
5 Public speaking tips from TED - Visualized summary
by
SpeakerHub
PDF
ChatGPT and the Future of Work - Clark Boyd
by
Clark Boyd
PDF
Getting into the tech field. what next
by
Tessa Mero
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
by
Lily Ray
PDF
How to have difficult conversations
by
Rajiv Jayarajah, MAppComm, ACC
2024 Trend Updates: What Really Works In SEO & Content Marketing
by
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
by
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
by
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
by
SocialHRCamp
2024 State of Marketing Report – by Hubspot
by
Marius Sescu
Everything You Need To Know About ChatGPT
by
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
by
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
by
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
by
marketingartwork
Skeleton Culture Code
by
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
by
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
by
contently
How to Prepare For a Successful Job Search for 2024
by
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
by
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
by
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
by
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
by
Clark Boyd
Getting into the tech field. what next
by
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
by
Lily Ray
How to have difficult conversations
by
Rajiv Jayarajah, MAppComm, ACC
20181121 ch12 managing data ii
1.
優像數位媒體科技股份有限公司 PIXNET DIGITAL MEDIA
CORPORATION 小明 Continuous Delivery CH12 資料管理 2018.11.22
2.
資料理管章節 ● 資料庫腳本化 Database
Scripting ● 增量式修改 Incremental Change ● 還原資料庫與無停機發佈 Rolling Backup Detabases and Zero-Downtime Releases ● 管理測試資料 Managing Test Data ● 資料管理和部署流水線 Data Management and Deployment Pipeline
3.
章節重點 可控制的輸入 被定義好的環境 測試過試避免資料被修改 注意測試順序 ✓ ✓ ✓ ✓ 快一點完成 單元測試 vs 記憶體 細心管理測試資料 盡量不要用
Prod. DB Dump ✓ ✓ ✓ ✓ 測試效能 測試獨立性
4.
單元測試用假資料 測試替身 Test Double ●
Dummy - 不會被用的假資料 ● Fake - 實作假函式 ● Stub - 會被用到的假資料 ● Mock - 只要確認函式是否有被呼 叫 ● Spy - 類似Stub,紀錄成員和SUT 互動是否正確 https://oomusou.io/jasmine/jasmine-test-double/ http://teddy-chen-tw.blogspot.com/2014/09/test-double2.html 可改用假資料庫 H2、SQLite、JavaDB
5.
管理測試與資料間的耦合 ● 測試獨立性 test
isolation ○ 原子性 ○ 不受其他測試影響 ● 調整性測試 adaptive tests ○ 先檢查資料環境 ● 測試的順序性 test sequencing ○ 測試間有一定順序,前一個輸出為後一個輸入 推薦使用 擴展性不佳 測試間相性漸增 測試套件維護不易
6.
連貫測試場景 Coberent Test
Scenarios 測試初始資料 測試結束 復歸 測試 測試 測試 測試 結束 初始 資料 …... 復歸 1. 緊密耦合 2. 重工 3. 成功、失敗條件不易定義
7.
資料管理和部署流水線 ● 提交階段的測試資料 ● 驗收測試中的資料 ●
容量測試的資料 ● 其他測試階段的資料
8.
提交階段的測試資料 ● 需快速,每增加 30s
會增加很多成本? ● 防止『因疏忽大意而修改系統』之錯誤 ● 測試相依性 vs 重構 ←→ 緊密耦合 ● 解耦合 → 拆成多個獨立元件和測試 + Test Doubles ● 用最少的測試資料 → 獲得受測單元結果 ● 準備共用測試資料 資料管理和部署流水線
9.
驗收測試中的資料 ● 驗收測試 =
系統測試 → 測試更複雜 ● 減少測試與資料的相依性 ● 多利用 API 以確定測試狀態 資料管理和部署流水線 驗收測試 專屬資料 引用資料 應用程式 專屬資料 ● 主角 ● 必須唯一 ● 必須隔離 ● 非主角,要支援 ● 屬於種子資料 ● 建立通用環境 ● 和測試無關 ● 只和應用程式有關 ● 不影響測試結果 ● 避免測試不一致 ● 資料庫重構不影響 驗收測試 ● 一併測試API
10.
容量測試的資料 ● 容量測試 →
規模問題 ○ 輸入資料是否足夠? ○ 適當引用資料以支援多種案例 ● 想想訂單、訂票,短時間一堆訂單 → 如何擴容 資料管理和部署流水線
11.
其他測試階段的資料 ● 驗收測試後的自動化測試都用相同方法 ● 行為規範(specifications
of behavior) ● 手動測試(探索性測試、使用者驗收測試) ○ 採用最小測試資料模擬程式剛起動之狀態 ○ 載入大量測試資料模擬程式執行一段時間之狀態 ● 不建議直接採用 Prod. 資料副本,雖然大部份可行 ○ 資料太多、匯入轉移過長 ● 改採用 Prod. 資料子集,或用驗收測試或容量測試後的 資料 資料管理和部署流水線
12.
小結 ● 管理資料的基本原則 ○ 建立資料庫 ○
遷移資料庫 ● 重覆性、可靠性 ● 佈署、最小集合驗收測試、遷移 Prod. 資料子集到 Prod. 環境 → 都用相同流程(自動化) ● 盡量不要用 Prod. 資料庫副本 自動化流程
13.
小結 ● 使用自動化遷移流程並管理資料庫版本 ● 盡量確保
DB Schema 能向前或向後修改之相容性 ● 測試資料彼此分開 ● 只保存共享且應用程式啟 動需要用到的資料,及常用的 引用資料 ● 盡量使用API ● 盡量不要用 Prod. 資料庫副本,但可採用子集合
14.
Thank you
Download