Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
,
,
,
,
iv-b
iv-b
iv-c
iv-b
11 c
12 a
13 c
14 c
15 c
16 d
17 a
18 d
19 c
20 b
21 a
22 a
23 a
24 c
25 c
26 b
27 c
28 b
29 a
30 a
31 a
32 c
33 d
34 b
35 c
36 b
37 b
38 b
39 b
40 a
Posted by Shailaja Kiran at 03:20 12 comments
Labels: ISTQB/ISEB, Sample Papers
WEDNESDAY, 7 MAY 2008
Sample Paper 8
1. Deliverables of test design phase include all the following except
(Testing
artifacts)
a) Test data
b) Test data plan
c) Test summary report
d) Test procedure plan
because:
A. The failure occurs only if you reach a statement taking the TRUE
branch of an IF
statement, and you got to the statement with a test that passed
through the FALSE
branch.
B. The failure depends on the program's inability to handle specific
data values,
rather than on the program's flow of control.
C. Both A and B
D. We are not required to test code that customers are unlikely to
execute.
9. Who is responsible for conducting test readiness review?
(Performing
Test)
a. Test manager
b. Test engineer
c. both A & B
d. Project Manager
10. What if the project isn't big enough to justify extensive testing?
(Test Mgmt)
a) Use risk based analysis to find out which areas need to be
tested
b) Use automation tool for testing
c) a and b
d) None of the above
11. What are the key features to be concentrated upon when doing a
testing for
world wide web sites (Test Execution)
a) Interaction between html pages
b) Performance on the client side
c) Security aspects
d) All of the above
12. What can be done if requirements are changing continuously?
(Test Mgmt)
a) Work with the project's stakeholders early on to understand how
requirements might change so that alternate test plans and strategies
can be worked out in advance, if possible.
> Matrics/sign-off
> Planning :
*** Select personnel
*** Allocate roles
*** Define the entry an dexit criteria(for more formal review types)
*** Select which parts of the document to review
> Kick-off :
*** Distribute documents
*** Explain objectives, process and documents
*** Check entry criteia (for more formal reviews types)
It is extremely important that time is taken to plan the review
activitites thoroughly - who is going to be involved, when the review
meeting is going to take place, that everythign required to carryout
the review (source documents, reference documents, for example) is
available, and that participants are allocated sufficient time to carry
out the activities assigned to them.
A kickoff meeting is likely to take place to ensure that everybosy is
involved in the review process understands what his/her specific roles
amd responsibilities are.
Different roles can be assigned to perticipants in order to give the
review process more focus-instead of everybody checking for
everything, they look at certain aspects of the review item, for
example, ensure that everybosy contained in the review item corectly
reflects what is in the source document.
> Individual Preparaton :
*** Work dine by each participant on their own prior to the review
meeting.
*** Potential defects should be noted
*** A proposed grading is given (according to agreed standards)-this
will be re-evaluated at the review meeting
*** Questions and comments noted.
Once roles and responsibilities have been assigned, individual
preparation can then commence.
Roles can be allocated to individuals where they check that the review
items against company standards, or check that the document cna be
used as a source for the next activities - this could be preparing an
acceptance test plan from the user requirements documents, or
creating test cases from the same document.
>
>
>
>
Fundamentals of testing :
This section looks at why testing is necessary, what testing is, explains
general testing principles, the fundamental test process, and
psychological aspects of testing.
1.0 Fundamentals (or) Principles of testing
1.1 Why is testing necessary
1.2 What is testing
1.3 General testing principles
1.4 Fundamental test process
1.5 Psychology of testing
Prepare a bit from here Chapter 1
Take a Small Test now :
1. Use numbers 1 to 5 to indicate which fundamental test process the
following major tasks belong to:
1 for planning and control,
2 for analysis and design,
3 for implementation and execution,
4 for evaluating exit criteria and reporting, and
5 for test closure activities.
A. _____ Creating the test data
B. _____ Designing test cases
C. _____ Analyzing lessons learned
D. _____ Defining the testing objectives
E. _____ Assessing whether more tests are needed
F. _____ Identifying the required test data
G. _____ Comparing actual progress against the plan
H. _____ Preparing a test summary report
I. _____ Documenting the acceptance of the system
J. _____ Re-executing a test that previously failed
2. What should be taken into account to determine when to stop
testing?
I. Technical risk
II. Business risk
III. Project constraints
IV. Product documentation
for
for
for
for
for
System testing
Acceptance testing
Describes four test types, the targets of testing:
Functional
Non-functional characteristics
Structural
Change-related
Outlines the role of testing in maintenance.
2.0 Testing throughout the life cycle
2.1 Software development models
2.2 Test levels
2.3 Test types: the targets of testing
2.4 Maintenance testing
Prepare a bit from here Chapter 2
Take a small test now :
1. What test can be conducted for off-the-shelf software to get market
feedback?
A. Beta testing
B. Usability testing
C. Alpha testing
D. COTS testing
2. Fill in the Blanks now :
1. _____ are the capabilities that a component or system must
perform.
2. Reliability, usability, and portability are examples of _____.
3. Hardware and instrumentation needed for testing are parts of a
_____.
4. _____ is also known as structural testing.
5. _____ ignores the internal mechanisms of a system being tested.
6. Which test level tests individual components or a group of related
units?
7. Which test level determines if the customer will accept the system?
8. _____ checks the interactions between components.
9. _____ is usually performed on a complete, integrated system.
10. _____ is another name for unit testing.
3. Which test levels are USUALLY included in the common type of Vmodel?
1.
2.
3.
4.
5.
6.
7.
->
The objective if the statement testing is to show that the executable
statements within a program have been executed at least once. An
executable statement can be described as a line of program sourse
code that will carry out some type of action. For example:
The 'Do until' structure will execute a section of code until a field or
indicator is set to a certain value. Foe example,
>> And we can see the path we need to travel to execute the
statemen in the code.
Therefore we will need two tests that answer 'yes' to 'if fuel tank
empty'
* Fuel tank empty AND petrol engine ( to execute line 3)
* Fuel tanl empty AND NOT petrol engine( to execute line 5)
one further test will be required where we anser 'no' to 'if fuel tank
empty' to enable us to execute the statement at line 8.
>>And this will be the last example for statement coverage.. we will
then go for decision coverage.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
Decision testing & Coverage
A Decision is :
>> ' A program point at which the control flow has two or more
alternative routes. A node with two or more links to saperate
branches.'(ISTQB Def)
A Decision Coverageis :
>> ' The percentage if the decision outcomes that have been exercised
by a test suite. 100% decision coverage implies both 100% branch
coverage and 100% statement coverage.' (ISTQB Def)
Decision Coverage :
>>
The objective of decision coverage testing is to show all the decisions
within a component have been executed at least once.
A decision can be described as a line of source code that asks a
question.
For example:
with our test cases. If 100% decision coverage is not required, then
we need to determine which areas of the component are more
important to test by this method.
>> Decision coverage is stronger than statement coverage.
>> 100% decision coverage for a component is achieved by exercising
all decision outcomes int he component.
>> 100% decision coverage guarantees 100% statement coverage,
but not vice versa.
Decision testing can be considered as the next logical progression from
statement testing in that we are not much concerned with testing
every statement but the true and false outcomes from every decision.
As we saw in our earlier examples of the statement testing, not every
decision outcome has a statement( or statements) to execute.
If we achieve 100% decision coverage, we would have executed every
outcome of every decision, regardless of whether there were
associated statements or not..
>>Lets take earlier example we had for statement testing:
>> we will need 2 tests to achieve 100% decision coverage & also 2
tests to achieve 100% statement coverage.
This example would still result in two tests, as there is one decision
therefore 2 outcomes to tests.
However, we would need two tests to achieve 100% statement
coverage, as there are statements with each outcome of the decision.
So,in this instance, statement and decision testing would give us the
same number of tests. NOte that if 100% coverage is required,
statement testing can give us the same number of tests as decision
testing, BUT NEVER MORE!
>>Lets look at some more examples now..
>> We will need 3 tests to achieve 100% decision coverage, but only 1
test to achieve 100% statement coverage.
Here we have an example of a supplimentary question, or a 'nested if'.
We have 2 decisions, so you may think that 4 tests may be required to
achieve 100% decision coverage( two for each decision).
This is NOT the case! We can achieve 100% decision coverage with
three tests - we need to exercise the 'Yes' outcome from the first
decision ( line 1) twice, in order to subsequently exercise the 'Yes' and
then the 'No' outcome from the supplementary question(line 2).
We need a further third test to ensure we exercise the 'No' outcome of
the first decision( line 1 ).
There is only one decision outcome that has an associated statement this means that 100% statement coverage can be achieved with one
test.
>> As more statements are added, the tests for decision coverage are
the same:
>> We will need 2 tests to achieve 100% decision coverage and 100%
statement coverage.
We looked at this example of the "if Then Else' structure when
considering statement testing.
As the decisions are separate questions we only need two tests to
achieve 100% decision coverage( the same as the number required for
statement coverage).
You may have thought that four tests were required - exercising the
four different routes through the code, but remember, with decision
testing our concern is to exercise each outcome of each decision
atleast once - as long as we have answered 'Yes' and 'No' to each
decision we have satisfied the requirements of the techinique.
The tests we have illustrated would need the following input
conditions:
* Coffee drinker wanting cream.
* Non Coffee drinker not wanting cream ( but milk).
Equally, we could have chosen the following input conditions:
* Coffee drinker not wanting cream( but milk).
* Non coffee drinker wanting cream.
>> Then What about loops?
C. Smoke testing
D. Regression testing
3. Defect Density calculated in terms of
A. The number of defects identified in a component or system divided
by the size of the component or the system
B. The number of defects found by a test phase divided by the number
found by that test phase and any other means after wards
C. The number of defects identified in the component or system
divided by the number of defects found by a test phase
D. The number of defects found by a test phase divided by the number
found by the size of the system
4. Be bugging is known as
A. Preventing the defects by inspection
B. Fixing the defects by debugging
C. Adding known defects by seeding
D. A process of fixing the defects by tester
5. An expert based test estimation is also known as
A. Narrow band Delphi
B. Wide band Delphi
C. Bespoke Delphi
D. Robust Delphi
6. When testing a grade calculation system, a tester determines that
all scores from 90 to 100 will yield a grade of A, but scores below 90
will not. This analysis is known as:
A. Equivalence partitioning
B. Boundary value analysis
C. Decision table
D. Hybrid analysis
7. All of the following might be done during unit testing except
A. Desk check
B. Manual support testing
C. Walkthrough
D. Compiler based testing
9. Which of the following characteristics is primarily associated with
software reusability?
c. Supportability
d. Maintainability
9. Fault Masking is
a. Error condition hiding another error condition
b. Creating a test case which does not reveal a fault
c. Masking a fault by developer
d. Masking a fault by a tester
10. One Key reason why developers have difficulty testing their own
work is :
a. Lack of technical documentation
b. Lack of test tools on the market for developers
c. Lack of training
d. Lack of Objectivity
11. During the software development process, at what point can the
test process start?
a. When the code is complete.
b. When the design is complete.
c. When the software requirements have been approved.
d. When the first code module is ready for unit testing
14. How many test cases are necessary to cover all the possible
sequences of statements (paths) for the following program fragment?
Assume that the two conditions are independent of each other :
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
then statement 3
fi
a. 2 Test Cases
b. 3 Test Cases
c. 4 Test Cases
d. Not achievable
ENDIF
ELSE
Say: That will be 9:75
ENDIF
Now decide the minimum number of tests that are needed to ensure
that all
the questions have been asked, all combinations have occurred and all
replies given.
a) 3
b) 4
c) 5d) 6
6 Error guessing:
a) supplements formal test design techniques.
b) can only be used in component, integration and system testing.
c) is only performed in user acceptance testing.
d) is not repeatable and should not be used.
7 Which of the following is NOT true of test coverage criteria?
a) Test coverage criteria can be measured in terms of items exercised
by a test suite.
b) A measure of test coverage criteria is the percentage of user
requirements covered.
c) A measure of test coverage criteria is the percentage of faults
found.
d) Test coverage criteria are often used when specifying test
completion criteria.
8 In prioritising what to test, the most important objective is to:
a) find as many faults as possible.
b) test high risk areas.
c) obtain good test coverage.
d) test whatever is easiest to test.
9 Given the following sets of test management terms (v-z), and
activity descriptions (1-5), which one of the following best pairs the
two sets?
v test control
w test monitoring
x - test estimation
y - incident management
z - configuration control
1 - calculation of required test resources
2 - maintenance of record of test results
3 - re-allocation of resources when tests overrun
b) 32001
c) 33501
d) 28000
28 An important benefit of code inspections is that they:
a) enable the code to be tested before the execution environment is
ready.
b) can be performed by the person who wrote the code.
c) can be performed by inexperienced staff.
d) are cheap to perform.
29 Which of the following is the best source of Expected Outcomes for
User Acceptance Test scripts?
a) Actual results
b) Program specification
c) User requirements
d) System specification
30 What is the main difference between a walkthrough and an
inspection?
a) An inspection is lead by the author, whilst a walkthrough is lead by
a trained moderator.
b) An inspection has a trained leader, whilst a walkthrough has no
leader.
c) Authors are not present during inspections, whilst they are during
walkthroughs.
d) A walkthrough is lead by the author, whilst an inspection is lead by
a trained moderator.
31 Which one of the following describes the major benefit of
verification early in the life cycle?
a) It allows the identification of changes in user requirements.
b) It facilitates timely set up of the test environment.
c) It reduces defect multiplication.
d) It allows testers to become involved early in the project.
32 Integration testing in the small:
a) tests the individual components that have been developed.
b) tests interactions between modules or subsystems.
c) only uses components that form part of the live system.
d) tests interfaces to other systems.
33 Static analysis is best described as:
a) the analysis of batch programs.
a) test recording.
b) test planning.
c) test configuration.
d) test specification.
40 A configuration management system would NOT normally provide:
a) linkage of customer requirements to version numbers.
b) facilities to compare test results with expected results.
c) the precise differences in versions of software component source
code.
d) restricted access to the source code library.
1A
2A
3D
4C
5A
6A
7C
8B
9C
10 D
11 A
12 B
13 A
14 C
15 B
16 B
17 D
18 D
19 B
20 A
21 D
22 A
23 B
24 C
25 D
26 C
27 C
28 A
29 C
30 D
31
32
33
34
35
36
37
38
39
40
C
B
C
C
B
D
C
D
D
B