Skip to content
CodeKruPro

State transition testing: count the valid transitions

QuizMediumAsked in: Accenture, Infosys, Wipro

A document moves between states (statuses). A transition is a move from one state to another. The document workflow has these valid transitions:

  • Draft, then submit, goes to In review
  • In review, then approve, goes to Published
  • In review, then reject, goes back to Draft
  • Published, then unpublish, goes back to Draft
  • Published, then archive, goes to Archived

How many single transitions must your tests exercise for 100% valid transitions (0-switch) coverage?

  • 5
  • 4
  • 3
  • 8

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in