Test Design I Solutions PDF
Test Design I Solutions PDF
a. Test plan
b. Test design specification
c. Test case specification
d. Test procedure specification
Question 1: Answer
In which document described in IEEE 829 would you find
instructions for the steps to be taken for a testproject
including
title
set-up, logging, environment and measurement?
IEEE → Institute of Electrical and Electronics Engineers (“I triple E”)
IEEE 829
Standard for Software and System Test Documentation
Specifies format of documents used in software / system testing
10 documents in total
Question 1: Answer
In which document described in IEEE 829 would you find
instructions for the steps to be taken for a testproject
including
title
set-up, logging, environment and measurement?
Master Test Plan (MTP) Level Test Log (LTL)
Level Test Plan (LTP) Anomaly Report (AR)
Level Test Design (LTD) Level Interim Test Status Report (LITSR)
Level Test Case (LTC) Level Test Report (LTR)
Level Test Procedure (LTPr) Master Test Report (MTR)
Question 1: Answer
In which document described in IEEE 829 would you find
instructions for the steps to be taken for a testproject
including
title
set-up, logging, environment and measurement?
Master Test Plan (MTP) Level Test Log (LTL)
Level Test Plan (LTP) Anomaly Report (AR)
Level Test Design (LTD) Level Interim Test Status Report (LITSR)
Level Test Case (LTC) Level Test Report (LTR)
Level Test Procedure (LTPr) Master Test Report (MTR)
Question 1: Answer
In which document described in IEEE 829 would you find
instructions for the steps to be taken for a testproject
including
title
set-up, logging, environment and measurement?
Master Test Plan (MTP)
Scope, system overview, organisation
Responsibilities, tools, techniques, methods
a. Test plan
b. Test design specification
c. Test case specification
d. Test procedure specification
Question 2
With a highly experienced tester with a good business background,
which approach to defining test procedures would be effective and
most efficient for a project under severe time pressure?project title
Possible solution
High-level outline of test condition + General steps to be taken
Question 2: Answer
With a highly experienced tester with a good business background,
which approach to defining test procedures would be effective and
most efficient for a project under severe time pressure?project title
a. 5, 4, 2, 1, 3, 7, 6
b. 4, 2, 5, 1, 6, 7, 3
c. 5, 4, 2, 1, 7, 3, 6
d. 5, 1, 2, 3, 4, 7, 6
Question 3: Answer
Put the test cases that implement the following test conditions into
the best order for the test execution schedule, for a test that is
checking modifications of customers on a database. project title
Activities
1. Print modified customer record
2. Change customer address: House number and street name
3. Capture and print the on-screen error message
4. Change customer address: Postal code
5. Confirm existing customer is in the database by opening that record
6. Close the customer record and close the database
7. Try to add a new customer with no details at all
Question 3: Answer
Put the test cases that implement the following test conditions into
the best order for the test execution schedule, for a test that is
checking modifications of customers on a database. project title
Activities: Simplified
1. Print modified record
2. Change address
3. Capture error message
4. Change address
5. Confirm customer by opening record
6. Close record and close database
7. Try to add new customer with no details
Question 3: Answer
Put the test cases that implement the following test conditions into
the best order for the test execution schedule, for a test that is
checking modifications of customers on a database. project title
Execution schedule for checking modifications
What is the most intuitive order for customer record modification?
Find customer
Modify customer record
Verify modification
Create blank (provoke error)
Verify error
Close record + database
Question 3: Answer
Put the test cases that implement the following test conditions into
the best order for the test execution schedule, for a test that is
checking modifications of customers on a database. project title
Execution schedule for checking modifications
Find customer 5. Confirm existing customer by opening record
Modify customer records 4. Change address: Postal code
2. Change address: House number + Street
Verify modification 1. Print modified record
Create blank (provoke error) 7. Try to add new customer, no details
Verify error 3. Capture error message
Close record + database 6. Close record + database
Question 3: Answer
Put the test cases that implement the following test conditions into
the best order for the test execution schedule, for a test that is
checking modifications of customers on a database. project title
1) Print modified customer record
2) Change customer address: House number and street name
3) Capture and print the on-screen error message
4) Change customer address: Postal code
5) Confirm existing customer is on the database by opening that record
6) Close the customer record and close the database
7) Try to add a new customer with no details at all
a. 5, 4, 2, 1, 3, 7, 6
b. 4, 2, 5, 1, 6, 7, 3
c. 5, 4, 2, 1, 7, 3, 6
d. 5, 1, 2, 3, 4, 7, 6
Question 4
Why are both specification-based and structure-based
testing techniques useful? project title
Input Output
Question 4: Answer
Why are both specification-based and structure-based
testing techniques useful? project title
Structure-based testing (White-box testing)
Testers require knowledge of how the software is implemented
Testers ask the question: How does the software do it?
Examines the structure by looking into the program logic
Input Output
Question 4: Answer
Why are both specification-based and structure-based
testing techniques useful? project title
Question: How?
Testing as much as possible / feasible
Concern
How to assess the thoroughness of the test effort
How much have we tested? How many aspects of the system have been checked?
Question 5: Answer
What is a key characteristic of structure-based testing
techniques? project title
Solution
Assess thoroughness of test effort through coverage
a. Yes
b. No
Question 6: Answer
Should pre-conditions and post-conditions be part of a
test case? project title
Test case (cf. IEEE 829)
Inputs
Execution conditions (pre- and post-conditions)
Expected / Predicted results
Pre-conditions
Condition(s) that must be in place PRIOR to running the test
Post-conditions
Condition(s) that must be in place AFTER running the test
Question 6: Answer
Should pre-conditions and post-conditions be part of a
test case? project title
a. Yes
b. No
Question 7
________ is the analysis at the edge of each equivalence
partition. project title
Equivalence partitioning
E.g. We can assume that individuals of age 67, 68, 74, 88 are treated the same
Hence, when testing for senior discount → Do not have to test all ages
Question 7: Answer
________ is the analysis at the edge of each equivalence
partition. project title
Example: Public transport ticket prices
Question: What is the right price for persons of age:
15 years / 25 years / 65 years?
Specifications may be unclear
Hence:
We are interested in testing an overall / main aspect of the system
Question 8: Answer
Which of the following would be an example of decision-
table testing for a financial application appliedproject
at system-
title
test level?
a. A table containing rules for combination of inputs to two
fields on the screen
b. A table containing rules for interfaces between components
c. A table containing rules for mortgage applications
d. A table containing rules for chess
Question 9
Which of the following could be a coverage measure for
state transition testing? project title
V. All states have been reached
W. The respond time for each transition is adequate
X. Every transition has been executed
Y. All boundaries have been exercised
Z. Specific sequences of transitions have been exercised
a. X, Y and Z
b. V, X, Y and Z
c. W, X and Y
d. V, X and Z
Question 9: Answer
Which of the following could be a coverage measure for
state transition testing? project title
Test coverage
Measure of the amount of testing performed by a set of tests
Simplified: How much of the code has been tested?
Aim: Reveal test coverage + Design additional tests to increase coverage
Coverage measure
How can we measure the coverage of the test effort?
What approaches / artefacts can be used to determine coverage?
Question 9: Answer
Which of the following could be a coverage measure for
state transition testing? project title
State-transition testing
Some aspect of the system can be described in a “finite state machine”
System can be in a finite number of different states
Transitions from one state to another depend on the rules of the machine
State diagram
Describes the behaviour of the system
Illustrates the different states a system can be in + Transitions between states
Question 9: Answer
Which of the following could be a coverage measure for
state transition testing? project title
Example: State diagram for PIN entry in ATM
Assessing coverage
Partitions exercised / Boundaries exercised / State transitions exercised
Decisions + Statements exercised → Internal structure
Structure-based techniques (white box)
Question 10: Answer
Which of the following could be used to assess the coverage
achieved for specification-based test techniques?
project title
V. Decision outcomes exercised
W. Partitions exercised
X. Boundaries exercised
Y. State transitions exercised
Z. Statements exercised
a. V, W, Y or Z
b. W, X or Y
c. V, X or Z
d. W, X, Y or Z
project title
Part II: Exercises and
Open-ended questions
Exercise I: Equivalence Partitioning
Postal rates for ‘light letters’ are 25 NOK up to 10g, 35
NOK up to 50g, plus an extra 10 NOK for each project
additional
title
25g up to 100g.
Which test inputs (in grams) would be selected using
equivalence partitioning?
Under 10g Between 10g and 50g Between 50g and 75g Between 75g and 100g Over 100g
Exercise I: Answer
Which test inputs (in grams) would be selected using
equivalence partitioning? project title
Answer
We choose five arbitrary values for each equivalence class
What are the partitions and boundary values to test the train times for this ticket types?
“A saver ticket is available for trains between 9:30 am and 4:00 pm, and after 7:30 pm.”
Exercise II: Answer
Approach
This gives us the following table:
project title
Ambiguities / Considerations
When does the morning “rush hour” start?
At midnight?
At 11:30 the previous day?
At the time of the first train of the day?
Boundary values
Test cases: 2, 3, 5, 6, 8, and 9
The seminar slides are made by