STE 5th Unit Important Questions With Answer
STE 5th Unit Important Questions With Answer
Q.6] Elaborate the term metrics and measurement and write the need
of software measurement.
Metrics and measurement :
▪ A Metric is a measurement of the degree that any attribute belongs to a
system, product or process.
▪ For example, the number of errors per person hours would be a metric.
Thus, software measurement gives rise to software metrics.
▪ A measurement is an indication of the size, quantity, amount or dimension
of a particular attribute of a product or process.
▪ For example, the number of errors in a system is a measurement.
▪ A Metric is a quantitative measure of the degree to which a system, system
component, or process possesses a given attribute. Metrics can be defined
as “STANDARDS OF MEASUREMENT”. Software Metrics are used to
measure the quality of the project.
▪ Simply, Metric is a unit used for describing an attribute. Metric is a scale
for measurement.
Need of Software measurement:
1. Percentage test cases executed = (No of test cases executed / Total no of test
cases written) x 100
= (164 / 200) x 100 = 82
2. Test Case Effectiveness = (Number of defects detected / Number of test
cases run) x 100
= (20 / 164) x 100 = 12.2
3. Failed Test Cases Percentage = (Total number of failed test cases / Total
number of tests executed) x 100
= (60 / 164) * 100 = 36.59
4. Blocked Test Cases Percentage = (Total number of blocked tests / Total
number of tests executed) x 100
= (4 / 164) * 100
= 2.44
Q.8] State the advantages and disadvantages of using tools. OR
State & explain any four benefits of automation in testing
1. Save Time /Speed:
Due to advanced computing facilities, automation test
tools prevail in speed of processing the tests. Automation saves time as
software can execute test cases faster than humans.
2. Reduces the tester’s involvement in executing tests:
It relieves the testers to do some other work.
3. Test case design:
Automated tools can be used to design test cases also
through automation, better coverage can be guaranteed than if done
manually.
4. Reusable:
The automated tests can be reused on different versions of the
software, even if the interface changes.
5. Avoids human mistakes:
Manually executing the test cases may
incorporate errors. But this can be avoided in automation testing.
6. Cost Reduction:
If testing time increases, the cost of the software also
increases. Due to testing tools time and therefore cost is reduced.
Measurement:
A measurement is an indication of the size, quantity, amount or
dimension of a particular attribute of a product or process.
Types of Metrics:
1. Process quality
2. Product quality
3. Objective Metrics
4. Subjective Metrics
1. Process quality:
▪ Activities related to the production of software, tasks or milestones.
▪ Process metrics are collected across all projects and over long periods of
time
▪ They are used for making strategic decisions.
▪ The intent is to provide a set of process indicators that lead to long-term
software process improvement.
The only way to know how/where to improve any process is to:
• Measure specific attributes of the process.
• Develop a set of meaningful metrics based on these attributes.
• Use the metrics to provide indicators that will lead to a strategy for
improvement.
2. Product quality:
▪ Explicit result of the software development activity, deliverables, products.
▪ Product metrics help software engineers to better understand the attributes
of models and assess the quality of the software.
▪ They help software engineers to gain insight into the design and
construction of the software.
▪ Focus on specific attributes of software engineering work products
resulting from analysis, design, coding, and testing.
▪ Provide a systematic way to assess quality based on a set of clearly defined
rules.
3. Objective Metrics:
1. They are non-negotiable – that is the way they are defined doesn’t
change with respect the type of endeavour they are being applied to.
2. Actual cost or AC is always the total cost actually incurred in
accomplishing a certain activity or a sequence of activities.
4. Subjective Metrics:
These metrics are a relatively new precept and are more flexible than the
rigid framework of the objective metrics. Subjective metrics do deal with
performance but the approach is more tailored.