Unit 4 SE 2022,24
Unit 4 SE 2022,24
• UNIT:4
•
ANS:
Regression Testing
Regression Testing is a type of software testing that ensures that previously developed
and tested software still performs correctly after it has been changed or interfaced with
other software.
The purpose of regression testing is to detect bugs introduced into the software after
updates such as enhancements, patches, or configuration changes.
Q2,22: Explain Halstead software metrics in detail and mention what do you
understand by token count
Ans:
Halstead Software Metrics:
Halstead software metrics are a suite of quantitative measures proposed by Maurice
Halstead in 1977 to assess the complexity and quality of software code.
These metrics are based on the idea that the complexity of a program can be quantified
by analyzing the operators and operands used in the code.
Halstead metrics provide a way to estimate various attributes of software, such as
program length, vocabulary, volume, difficulty, and effort.
Token Count
Token Count in the context of Halstead metrics refers to the identification and counting
of operators and operands in a program.
Tokens are the smallest elements of a program that convey semantic meaning.
In the context of Halstead metrics:
Operators: Symbols or keywords that perform operations on operands (e.g., +, -, *, /, =,
if, while).
Operands: Variables or constants that operators act upon (e.g., x, y, 1, 100).
Example of Token Count:
Consider the following simple code snippet:
int sum = 0;
for (int i = 0; i < 10; i++) {
sum += i;
}
Q3.2022 : Discuss the differences between black box and white box testing and
explain how these techniques can be used simultaneously to test a
system.
Ans:
Differences Between Black Box and White Box Testing:
Black Box Testing and White Box Testing are two fundamental approaches to software
testing that differ primarily in their perspective and focus.
Black Box Testing
Definition:
Black Box Testing is a testing technique where the internal structure, design, and
implementation of the item being tested are not known to the tester.
The tester only knows the input and the expected output.
Focus:
Functional testing, validation of software behavior according to requirements.
Approach: Testing is done from the user's perspective.
Test cases are derived from the requirements and specifications.
Techniques:
Equivalence partitioning
Boundary value analysis
Decision table testing
State transition testing
Use case testing
Advantages:
Tests are performed from a user’s point of view, helping ensure that the system meets
user requirements.
1.Requirement Analysis:
2. Test Planning:
3. Test Case Design:
4.Text Execution
5. Defect Reporting and Tracking:
6. Regression testing
7. Integration Testing:
8. User Acceptance Testing (UAT):
Q.2023: Explain boundary value analysis and its significance with example.
Ans:
Q2023: Discuss the various types of structural testing techniques with example of
each.
Ans: