Académique Documents
Professionnel Documents
Culture Documents
Q2. Quality and reliability are related Q5. What are the different techniques
concepts, but are functionally available to conduct
different in a number of ways Discuss black box testing? Discuss them briefly
them. Ans : There are four techniques available to
Ans. Quality and reliability are related conduct black box testing are as follows:-
concept but are functionally different in a A) Equivalence Partitioning
number of ways:- The main objective of this method is to
i). Quality is defined as a characteristic or partitioning the input so that anoptimal input
attribute of something. data is selected.
Quality refers to measurable Steps to be followed are: 1. Divide the input
characteristic-things, which we are able to domain into classes of data for which test
compare to known standards such as length, cases can be generated.
color, electrical properties. 2. Attempting to uncover classes of errors, if
any.
3. Identify the both right and wrong input explain the test information flow in a
data while partitioning the data. typical software life cycle.
4. Test the program for all types of data Ans :- The objective of testing is to design
based on equivalence classes for input tests that systematically uncover
conditions. different classes of errors and do so with a
minimum amount of time and effort.
B) Boundary Value Analysis Benefits of testing is that the testing
It is observed that boundary points for any demonstrates that software
inputs are not tested properly. functions appear to be working according to
This leads to many errors. Large numbers of specification. Data collected during
errors tend to occur at boundaries testing provides a good indication of
of the input domain. Boundary Value software reliability and some indication
Analysis (BVA) leads to selection of software quality.
of test cases that exercise boundary values. Erro
Evalution
BVA complements equivalence partitioning rs
i.e. select any element Test
in an equivalence class, select those at the software configuration result
‘’edge’ of the class. Correction Debug
Examples: 1. For a range of values bounded Error
Testing
by a and b, test (a-1), a, (a+1), (b-1), b, RateDa
(b+1). ta
Consider If a = 1 and b = 999 then the Relibiltiy
boundary values would be 0,1,2,999,1000 Model
etc. Test
Confguration
C) Cause Effect Graphing Techniques- Expected
Cause-effect graphing attempts to provide a Predicted
concise representation of logical Result
combinations and corresponding actions. Relibility
1. Causes (input conditions) and effects Q7). With regard to the software
(actions) are listed for a module and an development, discuss the following:
identifier is assigned to each. AnsQuality of design:- Quality of design
2. A cause-effect graph developed. refers to the characteristics that designers
3. Graph converted to a decision table. specify for an item.
4. Decision table rules are converted to test The grade of materials,tolerance, and
cases performance specifications all contribute to
quality of design.
D) Comparison Testing Quality of conformance:- Quality of
It test eachversion with same test data to conformance is the degree to which the
ensure all provisional identical output. Run design specifications
all versions in parallel with areal-time are followed duringmanufacturing. Again,
comparison of results. Even if it run only the greater the degree of conformance, the
one version in the final system, for some higher the level
critical applications can develop of quality of conformance.It is an issue
independent focussed primarily on implementation.
versions and use comparison testing or Quality control:- QC is the series of
back-to-back testing. inspections, reviews, and tests used
throughout the development life cycle to
ensure
that each work product meets the
requirements placed upon it. QC includes a
feedback loop to theprocess that created the
work product.
Q6) What are the objectives and benefits Quality assurance:- QA consists of the
of testing? editing and reporting functions of
management. The goal of quality assurance and test equipment(12)Inspection and test
is to provide management with the data status(13)Control of non conforming
necessary to be informed about product product
quality, thereby gaining insight and (14)Corrective and preventive
confidence that product quality is meeting action(15)handling,storage,packaging,
its goals. prevention and delivery(16)Control of
quality records(17)Internal Quality audits
Q8) Explain the review techniques (18)Training(19)Servicing(20)Statistical
adopted in software quality assurance. techniques
Ans : There are many different types of
reviews that can be conducted as part of Q10)Explain the need for inspection and
software-engineering for SQA like: list the different types of code reviews.
1. An informal meeting if technical Ans :- Inspections involve the reading or
problems are discussed. visual inspection of a program by a team of
2. A formal presentation of software design people.
to an audience of customers, management, Normally it is done through meeting and it is
and technical staff is a form of review. typically known as “meeting of the minds”,
3. A formal technical review is the most a conference held by the participants.The
effective filter from a quality assurance objective of the meeting is to find errors, but
standpoint. Conducted by software not to find solutions to the errors (i.e. to test
engineers for software engineers, the FTR is but not to debug).
an effective means for improving software
quality. Q11) What is
Any review is a way of using the diversity basis path testing?
of a group of people to: Explain how this
1. Point out needed improvements in the is accomplished?
product of a single person or a team; Ans :- It is a white
2. Confirm that parts of a product in which box method to test
improvement is either not desired, or not the software using the flow diagrams of all
needed. the executable paths. The main aim is to
3. Achieve technical work of more uniform, derive the logical complexity of the
or at least more predictable quality that can procedural design of software and use this as
be achievedwithout reviews, in order to a guide for defining a basic set of execution
make technical work more manageable. paths. It can be also be accomplished by
Cyclometic complexity which gives a
Q9)Enlist the 20 requirements that must quantitative measure of the logical
be present for an effective quality complexity. This value gives the number of
assurance system, as specified by ISO independent paths in the basis set, and an
9001 standard. upper bound for the number of tests to
Ans :- The ISO 9001 standard is the quality ensure that each statement is executed at
assurance standard that applies to software least once.
enginireeing.The 20 requriments given by
ISO 9001 address the following topics:-
1) Management responsibility Cyclomatic Complexity of 4 can be
(2)Quality system calculated as:
(3)Contract review 1. Number of regions of flow graph, which
(4)Design control is 4.
(5)Document &Data control 2. #Edges - #Nodes + 2, which is 11-9+2=4.
(6)Purchasing 3. #Predicate Nodes + 1, which is 3+1=4.
(7)Control of customer sullied product It can also be accomplished by:-
(8)Product Identificaction and Traceability Flow Graph Notation
(9)Process Control Deriving Test Cases
(10)Insepection and testing Graph Matrices
(11)Control of inspection,measuring
Q12) Explain different methods available For Data entry:- (1)Is alphanumeric data
in white box testing, with examples entry properly echoed and input to the
Q13) ) Discuss how static program system? (2) Is invalid data
analysis is performed so as to identify properly recognized?(3) Are data input
errors without executing the program. messages intelligible?(4) Does the help
Ans :- Static program analysis helps in buttons are available during data entry?
identifying errors without executing the
program. Peer reviewers and Q15)Briefly discuss the issues to be
programmerswill use this strategy to addressed if a successful software strategy
uncover probable static errors.There are is to be implemented
various method to detect errors Ans:- The issues to be address for
which are as follows:- Program successful software strategy which to be
Inspections, Mathematical Program implemented are as:
Verification, Static Program Analyzers. 1)Specify the product requirements in a
I will discussed on Static Program quantifiable manner long before testing
Analyzers It scan the source code to try to commences.
detect errors. The code does not need Although the overriding objective of testing
to beexecuted. It uses most useful for is to find errors good testing strategy also
languages which do not have strong typing. assesses
It can check: other quality characteristics such as
1. Syntax.2. Unreachable code3. portability, maintainability, usability.
Unconditional branches into loops4. 2) State testing objectives explicitly.
Undeclared variables 5. Uninitialised The specific objectives of testing should be
variables stated in measurable terms for example, test
6. Parameter type mismatches7. Uncalled effectiveness, test coverage, meantime to
functions and procedures 8. Variables used failure etc.
before initialization 9. Non-usage 3) Understand the users of the software and
of function results10.Possible array bound develop a profile for each user category.
errors 11. Misuse of pointers Use cases, which describe interaction
Q14)What are the guidelines to be scenario for each class of user can reduce
followed which help in creating a series of overall testing
generic tests for GUIS. effort by focussing testing on actual use of
Ans :-The guidelines to be followed which the product.
help in creating a series of generic tests for 4)Develop a testing plan that emphasizes
GVIS are categorized into “rapid cycle testing”.
different kind of operations which are as The feedback generated from the rapid cycle
given bellow:- tests can be used to control quality levels
For windows: (1)Will the window open and
properly based on related typed or menu- corresponding test strategies.
based commands? 5) Build “robust” software that is designed
(2)Are all functions that relate to the to test itself.
window available when needed? 6)Use effective formal technical reviews as
(3)Are all functions that relate to the a filter prior to testing.
window operational?(4) Is the active 7)Conduct formal technical reviews to
window properly highlighted? assess the test strategy and test cases
(5) Does the window properly close? themselves.
For pull-down menus and mouse This saves time and improves product
operations:-(1) Is the appropriate menu bar quality.
displayed in the appropriate context? 8) Develop a continuous improvement
(2) Do pull-down operations work properly? approach for the testing process.
(3) Are all menu functions properly The test strategy should be measured. The
addressable by the mouse? metrics collected during testing should be
(4) Are text typeface, size, and format used as
correct?(5) Does each menu function part of a statistical process control approach
perform as advertised? for software testing.
Q16)Explain unit test method with the
help of an example.
Ans :- It is white box oriented testing,it Corrections
concentrates on functional verification of a
module.
It uses procedural design description as a Identified Causes
guide,the important control paths are tested
to find
out the errors within the boundary of the Q18. Write short notes on the following
module.The functional verification can be Hurdles in Software testing
done in parallel In testing there are so many hurdles which is
for multiple modules.The steps which are to be faced Some of the hurdles normally
involved in unit testing are:- encounters are:
1)Interface(2)Local data structure l )Usually late activity in the project life
(3)Boundary conduction(4)Independent cycle
paths(5)Error handling paths For example, a 2)No “concrete” output and therefore
small program that difficult to measure the value addition
computes a simple matrix multiplication is a 3)Lack of historical data
unit. In a business applications of inventory 4) Recognition of importance is relatively
control, less
placing a purchase order also a typical unit 5)Politically damaging as you are
or module. not enter and exit properly, all challenging the developer
other tests are doubtful. 6)Delivery commitments
7)Too much optimistic that the software
always works correctly
Driver