17. Software Dimension
Usability
Quality Functionality
Security
W3C Semantic Web Logo - http://www.w3.org/2007/10/sw-logos.html
18. Software Testing
âĒ Unit Test
âĒ Functional Test
âĒ Reliability Test
âĒ Performance Test
âĒ Architectural Test
19. Functional & Non-Functional
Functionality
Enter PIN no., Select account type, Choose
or Enter Amount, Receive money
Non-Functionality
Verify PIN no. with bank, Check total
amount in machine, Check userâs account
balance, Error Handling
22. Artifact
Stimulus Response
Environment
Source of Stimulus Response measure
Source of
Stimulus Developer
Stimulus Wishes to change the UI
Artifact Code
Environment At design time
Response ModiïŽcation is made with no side effect
Response
measure In 3 hours
In the case of developer want to change UI Design
23. Vision Vision
Business Goals
BG1 BG2 BG3
System Feature
SF1 SF2 SF3 SF4 SF5
Function
Requirement
FR2 FR4
FR6 FR8
FR1 FR3 FR9 FR10
FR5 FR7
TC4 TC6
TC9 TC12 TC13
TC1 TC3 TC16
TC5 TC7
TC11
TC2 TC8 TC10 TC14 Test Case
24. Software Engineering â Dr Ghazy Assassa Page 2 of 5
Test Case Template (Doc:T_01)
Test Case #: Test Case Name: Page: 1 of ..
System: Subsystem:
Designed by: Design Date:
Executed by: Execution Date:
Short Description:
Pre-conditions
Step Action Expected System Response Pass/ Comment
Fail
1
2
Post-conditions
http://faculty.ksu.edu.sa/ghazy/CSC342_Tools/Test%20Case%20Template.pdf
25. Software Engineering â Dr Ghazy Assassa Page 3 of 5
Test Case Example1 (simple test)
Test Case #: 2.2 Test Case Name: Change PIN Page: 1 of 1
System: ATM Subsystem: PIN
Designed by: ABC Design Date: 28/11/2004
Executed by: Execution Date:
Short Description: Test the ATM Change PIN service
Pre-conditions
The user has a valid ATM card - The user has accessed the ATM by placing his ATM card in the machine
The current PIN is 1234
The system displays the main menu
Step Action Expected System Response Pass/ Comment
Fail
1 Click the 'Change PIN' button The system displays a message asking the user to enter the new PIN
2 Enter '5555' The system displays a message asking the user to confirm (re-enter)
the new PIN
3 Re-enter '5555' The system displays a message of successful operation
The system asks the user if he wants to perform other operations
4 Click 'YES' button The system displays the main menu
5 Check post-condition 1
Post-conditions
1. The new PIN '5555' is saved in the database
http://faculty.ksu.edu.sa/ghazy/CSC342_Tools/Test%20Case%20Template.pdf
28. Architecture Design is Shaped by KPIs
KPI #1
KPI #3 KPI #2
Developer
Architecture
KPI #4
29. Artifact
Stimulus Response
Environment
Source of Stimulus Response measure
Source of
Stimulus Developer
Stimulus Wishes to change the UI
Artifact Code
Environment At design time
Response ModiïŽcation is made with no side effect
Response
measure In 3 hours
In the case of developer want to change UI Design
30. Architecture Design is Shaped by KPIs
KPI #1: Developer have to change UI within 3 hours at design time
KPI #3 KPI #2
Developer
Architecture
KPI #4
32. Test Case Elements
Approaches
Name Objective
Expected Output Test Scripts
and Outcome
Input
33. Sample Scenario
Scenario reïŽnement for Scenario:
Scenario(s):
Business Goals:
Relevant Quantity Attribute(s):
Stimulus:
Scenario Components
Source of Stimulus:
Environment:
Artifact:
Response:
Response Measure:
Questions:
Issues:
Narong Chansoi, âSoftware Architecture Test Case Writingâ
34. Artifact
Stimulus Response
Environment
Source of Stimulus Response measure
Source of
Stimulus Developer
Stimulus Wishes to change the UI
Artifact Code
Environment At design time
Response ModiïŽcation is made with no side effect
Response
measure In 3 hours
In the case of developer want to change UI Design
35. Sample Scenario
Scenario reïŽnement for Scenario: PR1-SCE1-CHANGEUI
Scenario(s): Developer want to change UI at design time
Business Goals:
Relevant Quantity Attribute(s): Maintainability
Stimulus: Wishes to change the UI
Scenario Components
Source of Stimulus: Developer
Environment: At design time
Artifact: Code
Response: ModiïŽcation made no side effect
Response Measure: In 3 hours
Questions: Developer change the UI in test server before deploy to production server?
Issues:
Narong Chansoi, âSoftware Architecture Test Case Writingâ
36. Software Engineering â Dr Ghazy Assassa Page 3 of 5
Test Case Example1 (simple test)
Test Case #: 2.2 Test Case Name: Change PIN Page: 1 of 1
System: ATM Subsystem: PIN
Designed by: ABC Design Date: 28/11/2004
e
Executed by: Execution Date:
Short Description: Test the ATM Change PIN service
pl
Pre-conditions
The user has a valid ATM card - The user has accessed the ATM by placing his ATM card in the machine
The current PIN is 1234
am
The system displays the main menu
Step Action Expected System Response Pass/ Comment
Fail
1 Click the 'Change PIN' button The system displays a message asking the user to enter the new PIN
2 Enter '5555' The system displays a message asking the user to confirm (re-enter)
the new PIN
Ex
3 Re-enter '5555' The system displays a message of successful operation
The system asks the user if he wants to perform other operations
4 Click 'YES' button The system displays the main menu
5 Check post-condition 1
Post-conditions
1. The new PIN '5555' is saved in the database
http://faculty.ksu.edu.sa/ghazy/CSC342_Tools/Test%20Case%20Template.pdf
37. References
âĒ Narong Chansoi: âSoftware Architectural Test Case Writingâ
âĒ Dr.Varanyu, â80-20â http://varanyu.blogspot.com/2008/10/8020.html
âĒ âList of Quality Attributeâ - http://en.wikipedia.org/wiki/List_of_system_quality_attributes
âĒ Donald Graham, âQuality Attribute Scenariosâ, http://www.spin.org.za/spin21/SPIN%2021%20-
%20QAS.pdf
âĒ Christoph Stoermer, âMoving Towards Quality Attribute Driven Software Architecture Reconstructionâ,
http://www.cs.vu.nl/~x/square/qadsar.pdf
âĒ Ed, âPatterns & Practices Test : Architecture Testingâ, http://blogs.msdn.com/pagtest/archive/
2005/03/18/398678.aspx
âĒ Louis Marshall, âProject Management for the Web: Quality Test Planâ, http://pm4web.blogspot.com/
2008/07/quality-test-plan.html
âĒ Dr Ghazy Assassa, âSoftware Engineering: Test Case Template and Exampleâ, http://faculty.ksu.edu.sa/ghazy/
CSC342_Tools/Test%20Case%20Template.pdf
âĒ GSA, âFIPS 201 Evaliation Program - Template Generator Test Procedureâ, http://ïŽps201ep.cio.gov/
documents/Template%20Generator_Test%20Procedure_v2.0.0.pdf