Download presentation
Presentation is loading. Please wait.
1
Test
2
V-model Wikipedia: http://en.wikipedia.org/wiki/V-Model_(software_development)http://en.wikipedia.org/wiki/V-Model_(software_development)
3
Verification & Validation Verification Phases – Requirements analysis – System Design – Architecture Design – Module Design Validation Phases – Unit Testing – Integration Testing – System Testing – User Acceptance Testing
4
Types (or Stages) of Testing (Validation) Developer Testing – Normal testing by the developer / programmer – to see it do work Independent and Stakeholder Testing – Independent Testing denotes the test design and implementation that it is most appropriate for someone independent from the team of developers to do. Unit Tests – Systematic automatic test of a unit (testing from a black box view) Integration Test – integration testing is performed to ensure that the components in combination do work (e.g. that classes across packages do work) System Test – System testing is done when the software is functioning as a whole. Do the whole system works Acceptance Test – The users do the testing and accepting as a final test action prior to deploying the software. Check that all use-cases and all non-functional requirements work
5
Unit testing White box testing – where you check all programming lines have been executed with an accepted result Black box testing – where you check all methods have been executed and all parameter boundaries have been checked – of cause again with an accepted result
6
Black-box (UPedu) input argument – Normal values from each equivalence class. – Values on the boundary of each equivalence class. – Values outside the equivalence classes. – Illegal values. output argument – Normal values from each equivalence class. – Values on the boundary for each equivalence class. – Values outside the equivalence classes. – Illegal values.
7
Set up test-cases Follow / Fill out schema Test case # Description of test case Expected value Passed succesfully 1...
8
Example - Book Constrains: The title must be not null and not empty. The Author must be not null and not empty. The isbn must be not null and the length must be greater than 9 copyId must be in the range 1-15
9
Test case # Description of test caseExpected value Passed successfully 1Default constructorObject created 2setTitle – parameter nullIllegalArgumentException 3setTitle – parameter emptyIllegalArgumentException 4setTitle – parameter not empty XgetTitle() == X 5setAuthor – parameter nullIllegalArgumentException 6setAuthor – parameter emptyIllegalArgumentException 7setAuthor – parameter not empty XgetAuthor() == X 8setIsbn – parameter nullIllegalArgumentException 9setIsbn – parameter emptyIllegalArgumentException 10 setIsbn – parameter not empty value “12345678” IllegalArgumentException 11 setIsbn – parameter not empty value “123456789” getIsbn() == “123456789” 12setIsbn – parameter not empty value “isbn: 123-4567-89” getIsbn() == “isbn: 123-4567-89”
10
Test case # Description of test caseExpected value Passed successfully 13setCopyId – parameter value 0IllegalArgumentException 14setCopyId – parameter value 1getCopyId() == 1 15setCopyId – parameter value 4getCopyId() == 4 16setCopyId – parameter value 15getCopyId() == 15 17setCopyId – parameter value 16IllegalArgumentException 18setCopyId – parameter value -1IllegalArgumentException 19Constructor(“title”,”author”,”123456789”,4) getTitle() == “title” getAuthor() == “author” getIsbn() == “123456789” getCopyId() == 4 20Constructor(null,”author”,”123456789”,4)IllegalArgumentException 21Constructor(”title”,””,”123456789”,4)IllegalArgumentException 22Constructor(”title”,”author”,”wrong”,4)IllegalArgumentException 23Constructor(“title”,”author”,”123456789”,0)IllegalArgumentException 24 Tostring Constructor(“title”,”author”,”123456789”,4) toString() == “title=title author=author isbn= 123456789 copyId=4”
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.