Vous êtes sur la page 1sur 12

Q1. What is software testing? Explain the ii).

Whereas reliability is measured directed


purpose of testing. and estimated using historical and
Why do we need to test the application ? developmentdata. Software reliability is
Ans-Software testing is a critical element of defined in statical terms as
software quality assurance and represents “Probability of failure free operation of a
the ultimate process to ensure the computer program in a specified time”.
correctness of the product. The purpose of
testing is to show that a program performs Q3. Explain the difference between code
its intended functions correctly. walk - through and inspection.
(1) Demonstration-Oriented (To show that In code incpection:
the software works) :- Ans :-1. The programmer is requested to
It test all functions that are used to run the narrate, statement by statement, the logic of
software which produces results. These the
functions are directly related to the business program.During the discourse, questions are
functions. raised and pursued to determine if errors
Here, all paths of the software system are exist
not tested. 2. The program is analyzed with respect to a
(2)Destruction-Oriented (To Show that the checklist of historically common
software doesn’t work):- programming errors (such a checklist is
Here all functions including non-business discussed in the next section).
functions are tested to discover the In walk through:It is a set of procedures
possibleerrors. Even non-routine functions and error-detection techniques for group
are also tested. Exceptions are also tested. code reading.
(3) Evaluation- Oriented (To minimize the 1.The test case must be simple and few in
risk of not working up to an acceptable number, because people execute programs at
level):- Some times the entire software will a rate that is very slow compared to
not be tested due to many reasons like machines.
inadequate time. Theacceptable level is a 2.Many errors are found during the process
mutually agreed terms between the customer of questioning the programmer than are
and the developer. found directly by the test cases themselves.
Defects can exist in
the software, as it is developed by human Q4. Compare and contrast the concept of
beings who can make mistakes duringthe verification and validation. Give example
development of software. for each.
However, it is the primary duty of a Ans :- Verification: is a set of activities that
software vendor to ensure that software ensure that the s/w correctly implements a
delivered does not have defects and the specified function.
customers day-to-day operations do not get Validation: a set of activities that ensure
affected. That’s why we need to test the that has been built, traceable to the customer
application. requirement.

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

Q48.Why debugging is difficult.


Interfaces Ans :-There are some clues for difficult in
Module to be debugging process which are as follows:-
Local data structures 2. The symptom may disappear
(temporarily) when another error is
Boundary condition corrected.
3. The symptom may actually be caused by
Independent path no errors (e.g. round-off inaccuracies).
4. The symptom may be caused by human
Error handling path error that is not easily traced.
5. The symptom may be a result of timing
stub stub problems, rather than processing problems.
Automated testing tools and give examples
Result for automatedTest case tools which help the
testing
programmer.
Q17)With a neat functional schematic, Automation of testing is the state of the art
explain the debugging process employed technique where in number of tools will help
in soft ware testing. in testing
Ans:- program automatically.It is a method to
Execution of Cases execute series of test cases automatically
during the tests using
testing tools. Some of the tools which help
Test Result
Cases
the programmer s
are:1. Static analyzer2.
Additional Code Auditors
3. Assertion processors4.Test file
generators5.Test Data Generators6. Test
Suspected Verifiers7.Output comparators
Regression Tests
causes
Debugging
Q49.Alpha and beta testing Ans :-Any software program that is to be
Ans : These are the tests which are quality conscious, must be rigorously tested
conducted to find out errors customer side. with a
Alpha Testing: The alpha test is conducted predefined set of objectives.The
at the developer’s site by a customer fundamentals are:
software is used Testing Objectives:-The objective is to
in a natural settingwith the developer design tests that systematically uncover
“Looking over the shoulder” of the user and different
recording errors classes of errors and do so with a minimum
andusage problems.Alpha tests are amount of time and effort .
conducted in a controlled environment. Test Information Flow
Beta testing:The beta test is conducted at Test Case Design
one or more customer sites by the end
user(s) of the software. Q22) Explain the different error checklist
Unlike alpha testing the developer is for inspections.
generally not present therefore the beta test Ans : The different error checklist for
is a “live”application of inspection are as follows:-
the software in an environment. The Checklist for Data-Reference Errors:
customer records all problems Is a variable referenced whose value is unset
(real/imagined) that are encountered during or uninitialized? This is probably the most
beta testing and reportsthese to the frequent
developer at regular intervals. programming error; it occurs in a wide
variety of circumstances.2. For all array
Q19.What do you mean by configuration / references, is each
platform testing and what system subscript value within the defined bounds of
functionality it has to ensure? the corresponding dimension? Check for
Ans :- The system has to be tested in all dangling reference problem?
platforms in which the system will be Checklist for Data-Declaration Error:Is
ultimately used.This is a mandatory each variable assigned the correct length,
testing for all application before deployment type, and storage class?
It is to ensure the system functionality Is the initialization of a variable consistent
across such as Different Hardware/ with its storage type?
Software configurations, Multiple versions Where a variable is initialized in a
of Operating Systems, Different versions of declarative statement, is it properly
browsers, Various plug-ins or initialized?
external components Different local Checklist for Computation Errors:
conditions. Are there any computations using variables
having inconsistent (e.g. No arithmetic) data
Q20) What is the process involved in types?
inspection and walk troughs? Are there any mixed mode computations? Is
Ans :- The process is performed by a group it possible for the divisor in a division
of people (three or four), only one of whom operation to be zero?
is the author of the . Where applicable, can the value of a
Program .Inspection and walkthroughs are variable go outside its meaningful range?
far more effective compare to desk checking Checklist Comparison Errors: Are there
because people other any comparisons between variables having
than the program’s author are involved in inconsistent data types
the process. These processes also appear to (e.g. comparing acharacter string to an
result in lower debugging address)?
(error correction) costs, since, when they Checklist for Control-Flow Errors: Will
find an error, the precise nature of the error every loop, function or program module
is usually located. eventually terminate?
Devise an informal proof or argument
Q21)What are the testing fundamentals? showing that each loop will terminate.
Explain briefly
Checklist for Interface Errors: Do the Ans :- The main aim is to derive the logical
attributes (e.g. type and size) of each complexity of the procedural design of
parameter match the attributes software and
of each corresponding argument? Prepare a use this as a guide for defining a basic set of
checklist to be followed while inspection. execution paths.

Q23.Explain integration testing? Explain


any one method to carry out integration
testing. Q27. How the conditions testing is
Ans :- Integration testing is a systematic defined.
technique for constructing the program Ans :- It can defined as:
structure while conducting Relational expression: (E1 op E2), where
tests to uncover errors associated with E1 and E2 are arithmetic expressions. For
interfacing. one of the incremental method example,
is follows:- (x+y) – (s/t), where x, y, s and t are
Bottom -Up Integration - In this Modules variables.
are integrated from the bottom to top . lSimple condition: Boolean variable or
A bottom-up integration strategy may be relational expression, possibly proceeded by
implemented with the following steps: a NOT
1. Low-level modules are combined into operator.
clusters that perform a specific software sub Compound condition: composed of two or
function. more simple conditions, Boolean operators
2. A driver is written to coordinate test case and
input and output. parentheses along with relational operators.
3. The cluster is tested. Boolean expression: Condition without
4. Drivers are removed and clusters are relational expressions.
combined moving upward in the program
structure. Q28.In loop testing how the loops are
defined Loops are fundamental to many
Q24.What are software reviews. algorithms. Loops
Ans :- Software reviews are a “filter “for the can be categorized as, define loops as
software engineering process. Reviews are simple, concatenated, nested, and
applied unstructured.
at various points during software
development and serve to uncover errors Q29.What is the need for GUI testing
that can then be removed. Ans :- The need for GUI testing are:-
a)GUI is mandatory for any application as
Q25. Write the difference between users are used it. Sometime, the user
topdown testing and bottom up testing. interface may be
Ans :- Top-down testing: To test the created as a different layer and easily
application, through the white box method, separated from the traditional functional or
starting with the main business layer.
program and going down unit by unit. It b) The design & development of user
involves creation of stubs if a lower level interface layer requires separate design &
unit is not ready. development methodology.
Bottom up testing: To test the application, Q30.Explain briefly the localization
by white box method, starting with the lower testing
level units Ans :- All systems need not be interfaced or
and going up unit by unit. It involves mapped on to English language. The system
creation of drivers when a higher-level unit has to be developed both in
is not ready. English and customized to local language. It
is to ensure the s/w that localization does not
Q26.What is the main aim of basis path affect the software functionality.
testing What happens if a software program is not
tested before deployment.
2. The program is analyzed with respect to a
Q31.Explain software reliability and how checklist of historically common
the reliability and availability are programming errors
measured. (such a checklist is discussed in the next
Ans: Software reliability is defined in section).
statistical terms as “Probability offailure free The main benefits of this method are:
operation 1) Identifying early, errors in the program,
of a computer program in a specified 2)The programmers usually receive
environment for a specified time” to feedback concerning his or her
illustrate, programming style and choice
program x is estimated to have reliability of of algorithms and programming techniques.
0.96 over 8 elapsed processing 3) Other participants are also gain in similar
Measures of Reliability and Availability:- way by being exposed to another
reliability is mean time between failure programmer’s errors
(MTBF), and programming style.
where 4)The inspection process is a way of
MTBF = MTTF+MTTR identifying early the most error-prone
The acronym MTTF and MTTR are Mean sections of the program,
Time To Failure and Mean Time To thus allowing one to focus more attention on
Repair, respectively. these sections during the computer based
In addition to reliability measure, we must testing processes.
develop a measure of availability. Software
availability is Q33.Explain boundary value analysis
the probability that a program is operating with an example. Why it is important
according to requirements at a given point in during testing.
time and is defined Ans :-It is a testing technique meant for
as: Availability = MTTF / (MTTF+MTTR) testing the boundaries of the input domain
x100% for errors.
The MTBF reliability measure is equally It is a compliment of equivalence
sensitive to MTTF and MTTR. The partitioning method.It is a test case design
availability measure is techniquein which
somewhat more sensitive to MTTR an the test cases are selected at the “edges” of
indirect measure of the maintainability of the class.BVA derives the test cases from
the software. the output domain.
Examples: For a range of values bounded by
Q32.During code inspection what are the a and b, test (a-1), a, (a+1), (b-1), b, (b+1).
two main activities occur and whatare its Consider If a = 1 and b = 999 then the
benefits. boundary values would be 0,1,2,999,1000
During inspection session, two main etc.
activities are:- It is important
Ans :- 1. The programmer is requested to during testing because BVA helps in testing
narrate, statement by statement, the logic of the programs
the program. and covers most of the conditions.This
During the discourse, questions are raised method does not test the combinations of
and pursued to determine if errors exist. input conditions.
Experience
has shown that many of the errors Q34.How do you test a document in
discovered are actually found by the phase? What are the guidelines to be
programmer, rather than followed?
the other team members, during the Ans :-We test the document in two phases:
narration. In other words, the simple act of The first phase, formal technical review,
reading aloud examines the document
one’s program to an audience seems to be a for editorial clarity. The second phase
remarkably effective error-detection examines live test and users the
technique. documentation in conjunction with the
use of the actual program. The guidelines to Ans :- The steps involved for test case
be followed are as:- design are:-
(1)Is the description of each interaction 1. Using the design or code, draw the
sequence accurate?(2)Are examples corresponding flow graph.
accurate and context based? 2. Determine the cyclomatic complexity of
(3)Is it relatively easy to locate guidance the flow graph.
within the documentation?(4)Can 3. Determine a basis set of independent
troubleshooting be accomplished paths.
easily with the documentation?(5)Are the 4. Prepare test cases that will force
document tables of contents and index execution of each path in the basis set.
accurate and complete?
Q39.What are the main objectives of
Q35.Explain with example the system Formal technical reviews (FRI).
testing and its complexities. Ans :- The main objectives of the FTR are:
Ans :- System testing is actually a series of 1)To verify that software under review
different tests whose primary purpose is to meets its requirements
fully exercise the 2)To ensure that software has been
computer-based system. System testing represented according to predefined
proceeds with the following steps: function standards
testing, performance 3)To achieve software that is developed in
testing, acceptance testing, and installation an uniform manner
testing.The types of system tests that are 4)To make projects more manageable
Recovery Testing, Security Smoke testing: Smoke testing mainly
Testing, Stress testing, Performance Testing ensures that all functions work correctly on
The a new software
complexties face during testing is “finger before being subjected to rigorous
pointing”. This occurs when an testing.This is a pre-qualification test
error is uncovered, andeach system element Localization testing: testing is to ensure the
developer blames the other for the problem. software that localization does not affect the
software
Q36.Cyclomatic complexity:- The functionality. It ensures the appropriateness
cyclomatic complexity gives a quantitative of linguistic locale changes.
measure of the logical complexity. Explain defect amplification model.
Ans :- This value gives thenumber of A defect amplification model can be used to
independent paths in the basis set, and an illustrate the generation and detection of
upper bound for the number of tests to errors during
ensure that each statement is executed at preliminary design, detail design, and
least once. coding steps of the software engineering
process.
Q37.What is regression testing? Explain Errors from previous Step DEFECTS
in brief. DETECTION
Ans :- Regression testing is the activity that
Error passed through Precent efficiency for
helps to ensure that changes do not
introduce unintended behavioror Errors passed to Amplified error 1: x error detection

additional errors. The regression test suite


Newly generated
contains three different classes of test cases. Error
1. A representative sample of tests that will next step
exercise all software functions.
2. Additional tests that focus on software
functions that are likely to be affected by the
change. The errors may inadvertently generate
3. Tests that focus on software components during these steps and review may fail to
that have been changed. uncover newly generated
Q38.What are the steps involved for test
case design.
errors from previous steps, resulting in Ans :- The graph matrix is a square matrix
some number of errors that are passed with number of sides equal to number of
through. The box subdivisions represent nodes and rows and columns
each of these characteristics and the percent of the matrix correspond to the
efficiency for detecting errors, a function of number of nodes in the
the thoroughness of review. flow graph and Entries
To conduct reviews a developer must correspond to the directing edges.
expend time and effort and the development 1 1
organization must spend money. However, 1 1
the results of the presiding example leave 1
little doubt that we have encountered “Pay 1 1
now or pay much more later” syndrome. 1
Q40.Explain equivalence partitioning 1
with example. List the prons and cons of 1
each method
Ans :- In equivalence partitioning the input
domain of a program is taken and it is
divided into classes
of data from which test cases can be derived Q42.Explain control structure testing.
.Test case design for equivalent partitioning Ans :- In control structure testing conditions
is based on are very important and testing such
the evaluation of equivalence classes for conditions is more complex than
input condition.The steps involve in other statements like assignment and
partitioning the input the declarative statements. There are many ways
data are as follows: 1. Divide the input in which control structure can be tested.
domain into classes of data for which test 1) Conditions Testing
cases can be generated. Condition testing aims to exercise all logical
2. Attempting to uncover classes of errors, if conditions in a program module. Condition
any.3. Identify the both right and wrong testing methods
input data while focus on testing each condition in the
partitioning the data.4. Test the program for program and it could be of any type of
all types of data based on equivalence conditions.
classes for input conditions. 2)Data Flow Testing
Example: If an input condition specifies that data flow diagram like control flow (see
the range of values of the input variable basis path flow) is drawn. Then selects test
items must be paths according to the
from 1 to 999, one valid equivalence class location of definitions and use of variables.
would be 1<=items<=999 and 2 invalid This type of testing is useful and can be
equivalence classes automated.
would be items<1 and items>999. The 3) Loop testing
prons and cons of method are the Test cases Loops are fundamental to many algorithms.
for each input domain Loops can be categorized as, define
data item developed and executed. This loops as simple, concatenated, nested, and
method uses less number of input data unstructured.
compare to exhaustive testing.
However, the data for boundary values are Q43.Enumerate the different types of
not considered. This method though reduces software testing.
significantly the number Ans :- 1. Black Box Testing2. White Box
of input data to be tested; it does not test the Testing3. Grey Box Testing 4. Alpha
combinations of the input data. Testing
5. Beta Testing 6. Unit Testing7. .Integration
Q41.Explain graph matrices with an Testing 8. System Testing 9. Acceptance
example. Testing
10. Configuration/Plateform Testing its internal structure exposed. During the
11.Localization Testing testing, the program code is not available but
12.Internationalization Testing the executable module is
13.Usability Testing 14.Performance used. Detailed test plan and proper test
Testing 15.Load Testing 16.Stress Testing environment is required. Black box testing
17.Benchmark Testing 18.Functional method is used in most of the
Testing 19.Formal Inspections applications to ensure the business
20.Consistency Testing functions accurately.
21. Regression Testing 22. Smoke Testing 2. White Box Testing
23. Sanity Testing 23. Sanity Testing 24. It is a method to test the software utilizing
Top Down Testing its internal structure. The complete code
25. Bottom Up Testing 26. End to End structure is available during
Testing 27. Automated Testing 28. Heuristic the test. Normally, programmers use this
Testing method to find the errors at the program
29. User Testing 30. Protection Testing 31. level which helps in debugging.
Data Driven Test 32. Forced Error Testing This also helps in understanding the
33. Database Testing 34. Destructive behavior of the program, code review, and
Testing 35. Preventive Testing 36. data flow and code level test case design.
Boundary Testing 3. Grey Box Testing
37. Volume Testing 38. Compatibility It is a higher level of abstraction and less
Testing 39. Documentation Testing 40. On- comprehensive as compared to, white box
line Help Testing testing. It involves business
41. Installation Testing 42. Graphic User case testing with parts of the internal
Interface(GUI) Testing 43. Security Testing structure exposed. Used to test the software
44. Link Testing through some understanding
45. Static Testing 46. Requirement Phase of its internals and is like “looking under
Testing 47. Error-Handling Testing 48. hood”.
Module Testing 4. Alpha Testing
49. Basis Path Testing 50. Big Bang Testing A person other than the developer carries
51. Exhaustive Testing 52. Hardware out testing, in-house, and at various project
Testing milestones. Since a third
53. Software Testing 54. Production Testing person tests the software, a detailed test plan
55. Component Testing 56. E-Commerce must be provided.0.
Testing 0000000000+
57. Browser Testing 58. HTML Testing 59. This type of testing is conducted by end-
Server Testing 60. Reliability Testing 61. users either after or in parallel with system
Availability Testing testing. Users who are the
ultimate owner of the software will test the
system before deployment and the errors
will be reported back to the developer.

Q45. Explain the importance of testing.


What are the Hurdles in testing?
Ans :- Importance of testing are:-
• Testing is a critical element of
software Quality Assurance
• Post-release removal of defects
is the most expensive
Q44.Explain any 5 types of software * Significant portion of life
testing. cycle effort expended on testing
Ans: 1. Black Box Testing :- To ensure the In a typical service oriented project, about
validity of the software application without 20-40% of project effort is spent on testing.
the need for having It is much more in the case of “human-
rated” software.
Hurdles in testing are:-
directly related to the business functions.
• Usually late activity in Here, all paths of the software system are
the project life cycle not tested.
• No “concrete” output For instance, there may be an error routine
and therefore difficult to which traps the errors during the execution.
measure the value This
addition may not be necessary to test as it is not
• Lack of historical data relevant to the daily running of the software.
• Recognition of *To Show that the software doesn’t work: It
importance is relatively is known as destruction-oriented.
less In this case, all functions including non-
• Politically damaging as business functions are tested to discover the
you are challenging the possible
develop errors. Even non-routine functions are also
tested. Exceptions are also tested. However,
• Delivery commitments
once a
• Too much optimistic single error is detected, the testing process
that the software always stops.
works correctly *To minimize the risk of not working up to
an acceptable level: It is known as
Q46. Smoke testing, localization testing
evaluationoriented.
Ans :- Localization Testing
Some times the entire software will not be
All systems need not be interfaced or
tested due to many reasons like inadequate
mapped on to a English language. In some
time.
countries, English
However, all the functions which are critical
may be used. In such cases, the system has
from the business point of view to the
to be developed both in English and
customer will
customized to local
be tested. The acceptable level is a mutually
language. This type of testing is to ensure
agreed terms between the customer and the
the software that localization does not affect
developer.
the software
If a s/w program is not tested before
functionality. It ensures the appropriateness
deployment then we face many problems
of linguistic locale changes.
and do not work thus
Smoke Testing
*Post-release removal of defects is
Rigorous testing requires more time and
the most expensive
people. Also, the complete software may not
*cost of rectifying a defect during
be ready for
development is much less than rectifying a
rigorous testing. Initially, testing is carried
defect in production.
out on important functional behavior so that
it can be taken up
for further testing. Smoke testing mainly
ensures that all functions work correctly on
a new software
before being subjected to rigorous testing.
This is a pre-qualification test.

Q47. Explain the purpose of testing?


What happens if a software program is
not tested before deployment.
Ans :- * To show that the software works: It
is known as demonstration-oriented.
Test all functions that are used to run the
software which produces results. These
functions are

Vous aimerez peut-être aussi