ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 152 - CTFL4 discussion

Report
Export

Given the following state model of sales order software:

SEE ATTACHMENT

Which of the following sequences of tran-sitions provides the highest level of tran-sition coverage for the model (assuming you can start in any state)?

A.
IN PRODUCTION -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED -> PLACED
Answers
A.
IN PRODUCTION -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED -> PLACED
B.
IN PRODUCTION -> SHIPPED -> INVOICED -> CANCELLED -> PLACED -> IN PRODUCTION
Answers
B.
IN PRODUCTION -> SHIPPED -> INVOICED -> CANCELLED -> PLACED -> IN PRODUCTION
C.
PLACED -> IN PRODUCTION -> SHIPPED -> CANCELLED -> PLACED
Answers
C.
PLACED -> IN PRODUCTION -> SHIPPED -> CANCELLED -> PLACED
D.
PLACED -> CANCELLED -> PLACED -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED
Answers
D.
PLACED -> CANCELLED -> PLACED -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED
Suggested answer: B

Explanation:

State transition testing is a black-box testing technique where test cases are designed to cover states and transitions of a state machine.

Given the state model with the following transitions:

PLACED -> IN PRODUCTION

IN PRODUCTION -> CANCELLED

IN PRODUCTION -> SHIPPED

SHIPPED -> INVOICED

INVOICED -> CANCELLED

CANCELLED -> PLACED

To cover all transitions at least once, we need to create a sequence that covers all six transitions.

Option A: IN PRODUCTION -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED -> PLACED - Misses SHIPPED -> INVOICED and INVOICED -> CANCELLED transitions.

Option B: IN PRODUCTION -> SHIPPED -> INVOICED -> CANCELLED -> PLACED -> IN PRODUCTION - Covers all transitions.

Option C: PLACED -> IN PRODUCTION -> SHIPPED -> CANCELLED (ISTQB not-for-profit association) (Udemy)sses INVOICED -> CANCELLED transition.

Option D: PLACED -> CANCELLED -> PLACED -> CANCELLED -> PLACED -> IN PRODUCTION -> CANCELLED - Misses SHIPPED -> INVOICED and INVOICED -> CANCELLED transitions.

Given these, Option B covers all the transitions6source9source.

Certified Tester Foundation Level v4.0

10 Sample Exams ISTQB Foundation Level (CTFL) v4.0

asked 18/09/2024
Krishna Mody
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first