Category Archives: Software Quality

Test-Along Development (TAD): Unit testing technique

While talking to one of the client stakeholder, I came across this interesting term as Test-Along Development. Following are two different techniques I came across as common way of writing unit test: Test-driven development where we write unit tests first and then write enough code to make unit tests pass Write unit tests at the end once you are done with the development. Both of the above techniques presented enough challenges to the software developers. Some of them are following: Test-driven development: In agile development, in 2 week sprints, the design took much longer than 2-3 days. Thus, doing test-driven development was found to lead carry-overs for sprint given on …

Continue reading

Posted in Maintainability, Software Quality, Unit Testing. Tagged with , , .

They confuse between Module & Component

Ask software developers about what do they mean by a module and a component and, what is the difference between them? Ask them about how would they represent module or a component in their daily development activities? Most of the time the answer is quite confusing. Although they use these two words interchangeably, they remain confused on their actual meanings. Module can be defined as following: Represents a functionality Can be represented as a set of components Can have manifest file representing component configuration One or more modules make an application. Technically, a package can be termed as a module. There is something called as module oriented programming as well. …

Continue reading

Posted in Maintainability. Tagged with , .

Software Quality Review: JActor

Overall Software Quality Rating: High (from Maintainability & Usability perspective) We reviewed JActor (http://sourceforge.net/projects/jactor/ ) in our software quality lab. Following is the overall structure of the software: The evaluation was done using manual and automated techniques. We were able to get findings related with following software quality characteristics: Maintainability: As per the available data, this has been measured in terms of duplications, and rules compliance. Ideally, test coverage would also have helped to determine the testability of the code. Our rating: High Maintainability Refer to the data below retrieved from Sonar code analysis:     Note the duplications value of 0.4%. This is outstanding. Also, there were no blocker …

Continue reading

Posted in Review, Software Quality.

Multiple Classes with Single responsibility VS Single Class with Multiple Responsibilities

While taking a session with a set of mobile developers, one of them asked a question that made many of them curious. Why multiple classes when single class can do? The main reasoning for single class was that one would be able to save some lines of code. Also, one would be required to create just one object for multiple functionalities. Lets look at some of the key advantages of multiple classes, each one of them having single functionality. High in cohesion, and hence reduced coupling. This tends to make the class reusable. Lesser costly to change than single class. Following explains the cost structure related with a change: Let’s …

Continue reading

Posted in Maintainability, Software Quality. Tagged with , , , .

Unit Tests & What do they say?

Ask software developers about what do they mean by unit testing, and if they believe in it? And, the answer you get are some of the following: Unit testing is about writing tests for each of the method of the class. It is written only when you get some extra time after the code completion? Unit testing is done only when we are asked by our customers. Unit testing takes additional time and hence, done only if time permits. Test-driven development… What is that? Not sure if there are any benefits by writing unit tests? Test coverage… What is that? Why do we write unit tests when we are software …

Continue reading

Posted in Software Quality. Tagged with , , .

What are Functional & Non-Functional Requirements?

When gathering requirements for software application/module development, requirements gathering remain as one of the key challenges for stakeholders at different levels including project manager, tech lead, software developers and test engineers. Interestingly, due to inefficient requirement gathering, most of the project fails. Following is definition of functional requirements as per wikipedia: In software engineering, a functional requirement defines a function of a software system or its component. A function is described as a set of inputs, the behavior, and outputs (see also software). Functional requirements may be calculations, technical details, data manipulation and processing and other specific functionality that define what a system is supposed to accomplish. Read further here. …

Continue reading

Posted in Software Quality. Tagged with , .

ISO/IEC Standards for Software Quality Compliance

What are various different ISO/IEC standards related with software quality compliance? ISO/IEC have published a set of standards useful for Software QUAlity Requirements and Evaluation also termed as SQUARE. SQuaRE is a series of International Standards (25000-25099) edited by the ISO/IEC organisation and related to Systems and Software Quality. Following are different ISO/IEC standards under SQUARE umbrella: ISO/IEC 25000 — Guide to SQuaRE ISO/IEC 25001 — Planning and management ISO/IEC 25010 — System and software quality models ISO/IEC 25012 — Data quality model ISO/IEC 25020 — Measurement reference model and guide ISO/IEC 25021 — Quality measure elements ISO/IEC 25030 — Quality requirements ISO/IEC 25040 — Evaluation process ISO/IEC 25045 — …

Continue reading

Posted in ISO Standards, Software Quality. Tagged with , .

Source code complexity: Operability Indicator

The complexity of source code can be used to represent the operability of source code. Before we look into various different techniques to measure code complexity, lets briefly understand the operability of source code. Operability is also one of the key characteristic of software quality requirements and evaluation standards (SQUARE). What is Source Code Operability The operability of source code can be defined in terms of ease of understandability and learn ability of the code. That, in turn, can represented in terms of how complex the code is, or, simply speaking, the code complexity. In another words, if the code is complex, it is difficult to understand & learn and …

Continue reading

Posted in Operability, Software Quality. Tagged with .

I am not sure about the quality of software I delivered?

This is what I got to hear from average software developers across many workshop sessions that I have been undertaking recently in India. Ask a software developer (on an average) if he could make out whether he has delivered a piece of high quality code for required functionality, and the answer that may be expected is YES. The second question that you ask is “How do they know that they delivered a high quality piece of code?”. The answer you get is related with defects primarily against the functional requirements. All they say is that their piece of code has not been found with any bug in Dev/QA/UAT & production …

Continue reading

Posted in Software Quality. Tagged with .

What is Software Maintainability?

What did software developers say about software code Maintainability? Software developers were found to emphasise more about changeability aspect of software source code when asked to define the Maintainability. Most of them were found to be unaware of Testability aspect. What is Software Maintainability? Maintainability of a software in terms of source code maintenance is considered to be one of the key criteria for acceptance of software delivery. This is also defined as one of the key characteristic of software quality as per ISO/IEC 9126, ISO/IEC 25010 standard specification. What may make a piece of code maintainable? Changeability: The code should be easy to change. This, in turn, may also …

Continue reading

Posted in ISO Standards, Software Quality. Tagged with .

Software Quality & Varied Perceptions

As part of software quality workshops that I have been taking recently, I asked various attendees about how would they define “Software Quality”. It was found that everybody gave different answers on this, and most of them could said to be partially correct. What did the trainees (primarily, software developers) say? Following were some of the common answers: It is about how fast a software screen loads? Is the software secured enough? There should be as minimum defects as possible? If one looks above, they belong to following characteristics of a software product: Efficiency Security Functionality While interacting with end customers which primarily included the developers and team leads/scrum masters, …

Continue reading

Posted in Software Quality. Tagged with .