Dropship Rules Gherkin / BDD

Objective

Express the business rule for creating Sales Order using DROPSHIP-SPECIAL product, where the order is successfully created with hardcoded stock display while inventory stock remains unaffected.

Business Rule

Sales Order for DROPSHIP-SPECIAL products can be created successfully with special HARD CODE behavior: available stock = 999.999, legal prefix LEGAL-XXX, and delivery +3 days. The product stock is not reflected or deducted in the standard inventory module.

Feature

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Feature: Sales Order Creation with DROPSHIP-SPECIAL Product

  As a Guided Sales user
  I want to create Sales Order for DROPSHIP-SPECIAL product
  So that the order is processed with special hardcoded rules while inventory remains unaffected

  Background:
    Given user is logged in as Guided Sales
    And product "DROPSHIP-PROD-001" with business model DROPSHIP-SPECIAL exists

  Scenario: Successfully create Sales Order for DROPSHIP-SPECIAL product
    When user creates a new Sales Order using product "DROPSHIP-PROD-001"
    And enters quantity 10
    Then Sales Order should be created successfully with status "SUBMITTED"
    And legal number prefix should be "LEGAL-XXX"
    And delivery date should be device date + 3 days
    And available stock should display 999.999

  Scenario: Stock is not reflected in standard inventory after order creation
    Given a Sales Order for DROPSHIP-SPECIAL product has been created
    When user checks inventory stock ledger for product "DROPSHIP-PROD-001"
    Then no stock deduction or movement should be recorded
    And product may not appear in standard inventory view

Supporting Validation

  • Confirm legal number prefix, delivery date logic, and hardcoded stock display (999.999).
  • Verify Sales Order is created and persisted correctly.
  • Ensure no stock transaction is recorded in inventory master/ledger for DROPSHIP-SPECIAL products.
  • Validate consistency between Guided Sales and Inventory modules.

Why This Format Helps

The scenarios clearly separate successful order creation with HARD CODE behavior from the intentional non-impact on inventory. This makes the special business rule for DROPSHIP-SPECIAL products understandable for stakeholders and easy to turn into automated tests.

Back to Project