1 / 11

Software Quality FS 2012

Software Quality FS 2012. Discussion Exercise 2. Eya Ben Charrada. SVN. structure. Using Trunk/Branches/Tags is a recommended practice Trunk Branches Tags. Modularity. Extensibility Testability. Improving the source code. Moving variables Use CamelCase convention

ketan
Download Presentation

Software Quality FS 2012

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software Quality FS 2012 Discussion Exercise 2 Eya Ben Charrada

  2. SVN structure Using Trunk/Branches/Tags is a recommended practice Trunk Branches Tags Software Quality FS 2012 - Discussion Ex 2

  3. Modularity Extensibility Testability Software Quality FS 2012 - Discussion Ex 2

  4. Improving the source code Moving variables Use CamelCase convention Removing unreachable and dead code Add brackets to if statements Breaking long methods Adding documentation Rewrite more efficient code Software Quality FS 2012 - Discussion Ex 2

  5. JUnit Only the first failure is reported by a test method. public class MyTestCase { @Test public void testSomething() { // Set up for the test, manipulating local variables assertTrue(condition1); assertTrue(condition2); } } Software Quality FS 2012 - Discussion Ex 2

  6. JUnit Only first failure reported in a test. public class MyTestCase { // Local variables become instance variables @Before public void setUp() { // Set up for the test, manipulating instance variables } @Test public void testCondition1() { assertTrue(condition1); } @Test public void testCondition2() { assertTrue(condition2); } } Software Quality FS 2012 - Discussion Ex 2

  7. Testing strategies Black-box: • Boundary values • Equivalence partitioning white-box: • Coverage (branch, statement,…) Software Quality FS 2012 - Discussion Ex 2

  8. Dependencies What’s wrong? Software Quality FS 2012 - Discussion Ex 2

  9. Dependencies Slicing Forward slice: Which parts may be affected? Backward slice: A version of the original program with some parts missing, can be compiled and executed. [Source: http://www.cs.ucl.ac.uk/staff/mharman/exe1.html] Software Quality FS 2012 - Discussion Ex 2

  10. Dependencies Slicing Software Quality FS 2012 - Discussion Ex 2

  11. Hypothesizing about a defect Software Quality FS 2012 - Discussion Ex 2

More Related