230 likes | 379 Views
Architecture Review. Logical View: Layer Overview. Exhibits layer cohesion. Logical View: Presentation Layer. Logical View: Business Layer. Logical View: Data Access Layer. Process View. Development View. Physical View. TESTING. Test Plans.
E N D
Logical View: Layer Overview Exhibits layer cohesion
Test Plans The following input is required to test an application block: • Functional specifications • Requirements • Performance objectives
Test Plans Test Methods : • Regression Testing • Integration Testing • Black Box Testing ( Stress Testing ) • Unit Testing ( N – Unit )
Test Plans • Regression Testing: • Test fixed bugs promptly. • Watch for side effects of fixes. • Write a regression test for each bug fixed. • If two or more tests are similar, determine which is less effective and get rid of it. • Identify tests that the program consistently passes and archive them. • Focus on functional issues, not those related to design. • Make changes (small and large) to data and find any resulting corruption.
Test Plans • Integration Testing: • Def: A type of testing in which software and/or hardware components are combined and tested to confirm that they interact according to their requirements • Check Connections : • Pocket PC ---------- Web Server • Web Server -------- SQL Server • Pocket PC ---------- Speech Server • Speech Server ---------- Web Server
Test Plans • Stress Testing: • Evaluate the application block's behavior when it is pushed beyond peak load conditions. • The goal of stress testing is to identify errors that occur only under high load conditions.
N-Unit Testing • Unit-Testing Method For All .NET Languages • Assertions • Comparisons • Condition Tests
Comparisons • Report Expected and Actual Values • Assert.AreEqual • Both arguments are of the same datatype • Ex.(Assert.AreEqual Int Expected, Int Actual) in Transfer Balance • Assert.AreSame • Same Objects are referenced by both arguments
Condition Tests • Assert.IsTrue(Bool Condition) • Assert.IsFalse(Bool Condition) • Ex. Assert.IsTrue(hash.MeetsPassword(“goodpass”), “Good password failed check”); • Assert.IsFalse(hash.MeetsPassword(“badpass”), “Bad password passed check”);
COCOMO • Total lines of code = 41.8 function points * 53 lines per function point • Total lines of code = 2215.4 • KLOC therefore equals 2.22 • E = bKLOCc • The basic COCOMO parameters for a semidetached project are b = 3.0 and c = 1.12 • E = 3.0 (2.22)1.12 • E = 7.328 staff months
COCOMO • Student months = 4 * 7.328 = 29.02 • 29.02 student months / 7 students = 4.2 months
THE END QUESTIONS?