Software Testing
description
Transcript of Software Testing
GNT VietNam
EC Team
Author: Tam Vo & Luan Nguyen22 June 2012
SOFTWARE TESTING
AGENDA
Khái quát l i v n đ ki m th ph n ạ ấ ề ể ử ầm mề1Ví trí vai trò c a Unit-Test, ủAutomation-Testing2S d ng Unit-Test đâu, Khi nào, ử ụ Ởt i sao, nh th nào ?ạ ư ế3
Demo4
TESTING OVERVIEW - OBJECTIVE
Ensure the correctness of sortwares.
Detect bugs with lowest cost
Control software quality
TESTING OVERVIEW - ROLES
QA prevent bugs QC figure out bugs DEV fix bugs
• Functional Test
• Performance Test
• Stress Test (Load Test)
• Configuration Test
• Recovery Test
• Security Test
• UI & Behavior Test
• Alpha / Beta Test
• Structure Test
• Manual test
• Automatic test
TESTING OVERVIEW
Methods Types
• Unit Test
• Integration Test
• System Test
• Deployment Test
• Acceptance Test
Levels
• Black box test
• White box test
Transparency
NUNIT -TEST
What
Where
WhyHow
When
A CASE-STUDY• Tax expression : PriceIncluceTax = Price * ( TaxRate / 100 + 1)
• Rule
• Floor : x.1 — 9 → x
• Round : x.1 — 4 → x: x.5 — 9 → x + 1
• Ceiling : x.1 — 9 → x + 1
TEST-DATASETCase No Price TaxRate Calculate TaxRound Expected
001 2511 5% 2511 * 1.05 = 2636.55
Floor 2636
Round 2637
Ceiling 2637
002 2330 5% 2330 * 1.05 = 2446.50
Floor 2446
Round 2447
Ceiling 2447
IMPLEMENT
IMPLEMENT TEST-CASE
RESULT OF AUTOMATION TEST
DEBUG
FIX BUG
RESULT OF AUTOMATION TEST