CONTENTS: Software Engineering Full notes based on CUSAT B.tech syllabus
Size: 5 MB
File Format: PDF
CLICK HERE TO VIEW / DOWNLOAD FULL SOFTWARE ENGINEERING NOTES AS A SINGLE PDF
This blog is dedicated to all Engineering students and those who are interested in learning Software Engineering concepts. The intention behind creating this blog is, sharing the Software Engineering notes to my students of CEC through online. The topics or notes provided are taken from various reference text books and websites. I just correlated all for easy learning for my students.
Test case: A test case is a set of test data that is to be inputted, expected
results for each test case and resultant conditions, designed for a particular
testing module in order to ensure system functionalities.
Consider the example test cases for the program to check whether an
inputted year is leap year or not. Then the test case should.
Year = 2000 // non leap year which is not multiple of 400
Year = 2003 // non leap year
Year = 2004 // leap year
Test suite: It is mathematically a set which consist of all the test cases as
set elements. A software can have infinite number of test cases. A good test
suite should have minimal test cases which covers most errors. For the above
mentioned program to check whether the inputted year is leap year or not, the
test suite will be as follows:
{2000, 2003, 2004}
Error: Error is the degree of mismatch from actual result and expected result.
It represents mistake made by code developers. Though error and bug sounds
synonyms, they are not exactly the same. Error is the mistake found by tester.
When developer accepts this mistake, then it is called as a bug.
Fault: Fault is an incorrect code statement, function or data interpretation
in a computer program which makes the program or software system to generate an
unexpected result. Fault leads to error.
Bug: Bug
is a fault in the code block which generates an unintended result. It is normally
the mistake accepted by the developer.
Failure: Failure is the inability of a software system to perform its
expected functional and non-functional requirements. Execution of a fault leads
to failure.
Defect: A defect is a mistake committed by programmer in coding or logic
that causes a program to generate incorrect or deviated results. Normally a
defect is detected when a failure occurs.
In order to understand the above basic
terminologies, consider the following code block in C language. The intention
of the code block is to check whether the inputted number is even or odd.
1 void main()
2 {
3 int num;
4 printf(“ Input an integer”);
5 scanf(“%d”, &num);
6 if(num%2==0) printf(“%d is ODD number”,
num);
7 else printf(“%d is EVEN number”,
num);
8 }
|