Software quality fs 2012
This presentation is the property of its rightful owner.
Sponsored Links
1 / 11

Software Quality FS 2012 PowerPoint PPT Presentation


  • 35 Views
  • Uploaded on
  • Presentation posted in: General

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

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Software quality fs 2012

Software Quality FS 2012

Discussion Exercise 2

Eya Ben Charrada


Software quality fs 2012

SVN

structure

Using Trunk/Branches/Tags is a recommended practice

Trunk

Branches

Tags

Software Quality FS 2012 - Discussion Ex 2


Modularity

Modularity

Extensibility

Testability

Software Quality FS 2012 - Discussion Ex 2


Improving the source code

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


Junit

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


Junit1

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


Testing strategies

Testing strategies

Black-box:

  • Boundary values

  • Equivalence partitioning

    white-box:

  • Coverage (branch, statement,…)

Software Quality FS 2012 - Discussion Ex 2


Dependencies

Dependencies

What’s wrong?

Software Quality FS 2012 - Discussion Ex 2


Dependencies1

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


Dependencies2

Dependencies

Slicing

Software Quality FS 2012 - Discussion Ex 2


Hypothesizing about a defect

Hypothesizing about a defect

Software Quality FS 2012 - Discussion Ex 2


  • Login