71.1k views
5 votes
You are tasked with testing the Order Wizard of an online shopping website. The flow that customer's takes as they select cloths, provide shipment information and pay can be described by a state transition diagram.

Which of the following describes transitions that may take place during execution of a valid state-transition test?
A. Select Item -> Move to Shopping Cart -> Move to shipping -> Move to payment -> Move to select ltems
B. Select ltem -> Move to Shopping Cart -> Move to shipping -> Move to select Item
C. Select Item -> Move to Shopping Cart -> Move to shipping -> Move to payment -> Move to Shipping
D. Move to Shopping Cart -> Move to shipping -> Move to Shopping Cart

User Scoolnico
by
8.0k points

1 Answer

1 vote

Final answer:

The question is about state-transition testing in software testing, specifically for testing an online shopping website's Order Wizard. Options A and C describe valid transitions that could be part of a state-transition test, representing a customer’s journey from item selection through payment to additional actions.

Step-by-step explanation:

The question pertains to state-transition testing, which is a technique used in software testing to verify that an application behaves as expected while moving from one state to another. Specifically, this scenario involves testing the Order Wizard of an online shopping website. During state-transition testing, transitions represent the actions that lead an application from one state to another. The transitions mentioned describe possible paths a customer can take when adding items to their shopping cart, providing shipping information, and making a payment.

Option A demonstrates a complete transition flow where a customer selects an item, moves it to the shopping cart, provides shipping details, goes to payment, and then returns to select more items. This flow represents a typical scenario where a customer continues shopping after completing a purchase. Option C also displays a valid transition sequence but with the customer revisiting the shipping information after completing the payment, which might be a feature allowing the customer to update the shipping address before final order confirmation. However, transitions B and D are incomplete as they do not reach the final state of payment or finish with a return to a logical subsequent state for further item selection or order review.

User Skalta
by
8.2k points