Base Use Case Diagram Example: E-commerce

Examples1 week ago

Learn how to transform a PlantUML diagram for an Online Purchase Workflow into project artifacts with this guide.

1. Input the PlantUML Code

Paste the PlantUML code into the editor. See the live preview showing the Customer initiating Make Purchase, including Add to Cart and optionally extending to Apply Discount. Focus on this use case; refine complex diagrams with the companion app. Click “Generate Report” to proceed.

@startuml
actor Customer
actor System
Customer --> (Make Purchase) : initiates
(Make Purchase) ..> (Add to Cart) : <<include>>
(Make Purchase) ..> (Apply Discount) : <<extend>>
@enduml

2. Generate the AI Report

The AI analyzes actors (Customer, System) and relationships (includes, extends). The report summarizes the purchase process, lists actors, details flows (preconditions, post-conditions, alternatives, exceptions like out-of-stock), and covers sub-use cases. Export as Markdown for sharing.

3. Generate Scenarios

Click “Generate Scenarios” to create narratives like Basic Purchase or Purchase with Promo Code. These support user stories and testing alignment.

4. Generate Test Cases

Click “Generate Test Cases” to produce tests with ID, description, preconditions, steps, and expected results. These integrate with QA tools for robust purchase testing.

Loading

Signing-in 3 seconds...

Signing-up 3 seconds...