ISTQB CTFL
Black-box test techniques
Easy
Test techniques overview
- Which three categories of test techniques are distinguished?
- Which other name is commonly used for black-box test techniques?
- What do test techniques help the tester with?
Equivalence partitioning
- What is the basic assumption of equivalence partitioning?
- A field accepts a number of tickets from 1 to 8. How many equivalence partitions result for integers?
- Which property must equivalence partitions have?
- What are the coverage items in equivalence partitioning?
- What can equivalence partitions be identified for?
Boundary value analysis
- For which partitions can boundary value analysis be used?
- Why does boundary value analysis focus on boundary values?
- Which coverage items belong to one boundary value in 2-value BVA?
- Which coverage items belong to one boundary value in 3-value BVA?
Decision table testing
- What are decision tables particularly suitable for?
- What does a "–" for a condition mean in a decision table?
- How many columns does a full decision table with three Boolean conditions have?
State transition testing
Medium
Equivalence partitioning
- A car park charges: 1–30 minutes free, 31–180 minutes hourly rate, 181–1440 minutes day rate; other integer minute values are invalid. How many equivalence partitions are there?
- For the car park with five partitions, tests run with 15, 90 and 2000 minutes. What equivalence partition coverage is achieved?
- An order form has the parameters payment method (card, invoice, direct debit) and shipping (standard, express). What is the minimum number of test cases for each choice coverage?
- How can valid and invalid values be interpreted differently?
- What does each choice coverage require?
Boundary value analysis
- An application portal accepts an age from 18 to 65 years (integers). Which values does 2-value BVA require?
- For the same age range 18 to 65: how many coverage items does 3-value BVA have when considering the boundary values 17, 18, 65 and 66?
- How is coverage calculated in 2-value BVA?
- Which statements comparing the BVA variants are correct?
Decision table testing
- What distinguishes an extended-entry decision table from a limited-entry one?
- What are the coverage items in decision table testing?
- What are the strengths of decision table testing?
- How can the number of rules to test be reduced when there are many conditions?
- How is it indicated in a decision table that an action should occur?
State transition testing
- A ticketing system has the states Open, In progress, Done, Closed and the valid transitions accept (Open→In progress), return (In progress→Open), resolve (In progress→Done), reject (Done→In progress) and confirm (Done→Closed). How many coverage items does valid transitions coverage have?
- Which statements about state transition coverage criteria are correct?
- Why should only one invalid transition be tested per test case?
- How is a test case usually represented in state transition testing?
Test techniques overview
Hard
Boundary value analysis
- The requirement is "free shipping if the order value is at least €50" (whole euros). The code wrongly checks "order value = 50". Which values reveal the defect?
- A thermostat accepts target temperatures from 5 to 30 °C in whole degrees. Tests run with 4, 5 and 30 °C. What 2-value BVA coverage is achieved?
- For the thermostat (5 to 30 °C) the 3-value BVA values for the lower boundary are to be determined. Which values belong to them?
- For the car park (1–30, 31–180, 181–1440 minutes valid, integers, invalid below and above) 2-value BVA is applied. How many coverage items are there?
- For the same car park 3-value BVA is applied. How many distinct coverage items result?
Equivalence partitioning
- A ticket machine has the parameters fare (child, adult, senior), zone (A, B, C, D) and payment (cash, card). What is the minimum number of test cases for each choice coverage?
- A discount applies as follows: below €100 no discount, €100 to below €500 5%, from €500 10%; negative amounts are invalid. Which test values each cover a different partition and together reach 100% equivalence partition coverage?
- A registration form has the parameters age (below 18 invalid, 18 to 120 valid, above 120 invalid) and country (DE, AT, CH, other). Which statements about each choice coverage are correct?
- The parking fee has the results "free", "hourly rate" and "day rate". A tester forms partitions not only for the input parking duration but also for these outputs. How should this be assessed?
Decision table testing
- A cinema grants discounts based on the conditions "student", "cinema club member" and "show before 5 pm" (each true/false). All combinations are feasible. Tests cover 6 columns. What coverage is achieved?
- An insurer checks "driver under 25", "driver over 70" and "new car". How many feasible columns does the full table have?
- In a table for credit decisions, two columns differ only in "customer for over 5 years" and trigger the same actions. What is possible?
- A rule states: express shipping is possible if the item is in stock and payment is confirmed; for premium customers stock alone is enough. Which statements about the full decision table with the conditions in stock, payment confirmed and premium are correct?
State transition testing
- In the ticketing system (states Open, In progress, Done, Closed; events accept, return, resolve, reject, confirm; 5 valid transitions) all transitions coverage is to be achieved. How many transitions count in total?
- In the same ticketing system every test starts in Open, and Closed is a final state. What is the minimum number of test cases for 100% valid transitions coverage?
- A test in the ticketing system runs accept, resolve, confirm. Which coverage does it achieve?
- A smart bike lock has the states Locked, Unlocked and Alarm. Valid are: correct code (Locked→Unlocked), close (Unlocked→Locked), shake (Locked→Alarm) and correct code (Alarm→Unlocked). How many invalid transitions does the state table show?
- For the bike lock every test starts in Locked. Which statements about the minimum number of test cases are correct?
- A transition in the bike lock is labelled "wrong code [failed attempts = 2] / siren on". Which statements are correct?