nerdexam
iSQI

CTFL_SYLL_4.0 · Question #75

You are testing web application software that allows a person to use their travel points to make flight and hotel reservations. When the user logs into the software (username/password) they are…

The correct answer is C. Login > Login, Login > Points, Login > Flight, Login > Hotel, Points > Flight, Points > Hotel. Option C is correct because it captures every valid transition in the system while respecting the constraint that testing stops once a reservation state (Flight or Hotel) is reached. The Login state can loop back to itself (failed attempt), or lead to Points, Flight, or Hotel…

Test Analysis and Design

Question

You are testing web application software that allows a person to use their travel points to make flight and hotel reservations. When the user logs into the software (username/password) they are presented with a set of options. From that set of options, they can pick the following: 1. View points balance 2. Make flight reservation 3. Make hotel reservation From the login page, they can log in successfully or might fail and need to try again. Once they login successfully they can go to either the view points, flight reservation or hotel reservation page. Which of the following is the correct list of the transitions (a transition is shown as >) that should be tested, assuming that the test ends when a reservation state is reached.

Options

  • APoints > Reservation
  • BLogin > Points, Points > Flight, Points > Hotel
  • CLogin > Login, Login > Points, Login > Flight, Login > Hotel, Points > Flight, Points > Hotel
  • DLogin > Login, Login > Points, Login > Flight, Login > Hotel, Flight > Hotel, Hotel > Flight, Flight >

How the community answered

(17 responses)
  • A
    6% (1)
  • B
    6% (1)
  • C
    71% (12)
  • D
    18% (3)

Explanation

Option C is correct because it captures every valid transition in the system while respecting the constraint that testing stops once a reservation state (Flight or Hotel) is reached. The Login state can loop back to itself (failed attempt), or lead to Points, Flight, or Hotel on success. The Points state can lead to either reservation page - giving exactly the six transitions listed in C.

Why the distractors fail:

  • A is far too incomplete - it ignores the Login state entirely and collapses both reservation types into a vague "Reservation" label.
  • B is missing three transitions: Login→Login (failed login), Login→Flight, and Login→Hotel; it only tests the path through Points, not the direct paths.
  • D adds transitions that originate from reservation states (Flight→Hotel, Hotel→Flight), which directly violates the rule that the test ends when a reservation state is reached - those states are terminal in this test.

Memory tip: Think of Flight and Hotel as "exit doors" - once you walk through one, the test is over, so you never draw an arrow out of them. Count only the arrows that lead into those doors, plus every arrow from Login (including the self-loop for failure) and every arrow out of Points.

Topics

#state transition testing#transition identification#black-box testing#test design

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice