{
  "test_id": "ORCL.O2C.OM.INQ.ORDER",
  "scenario_name": "Order Inquiry",
  "application": "Oracle Fusion Cloud",
  "product": "SCM / Order Management",
  "module": "Order Management",
  "process": "Inquiry",
  "business_flow": "Order-to-Cash",
  "scenario_type": "Positive / Functional",
  "priority": "High",
  "automation_status": "SyntraFlow Ready",
  "library": "Syntra Standard",
  "canonical_url": "https://www.syntraflow.cloud/oracle-erp-testing-tool/test-library/scm/order-management/inquiry/order-inquiry/",
  "objective": {
    "intro": "The objective of this test is to validate that order inquiries in Oracle Fusion SCM Order Management return accurate order and line status, fulfillment progress and lifecycle detail when filtered by order number, customer, item, status and date range, across the full order lifecycle from draft through submission, scheduling, reservation, picking, shipment and return. This is a read-only inquiry — the test verifies displayed data only and does not create, modify or move any order or fulfillment data.",
    "confirms": [
      "the displayed order and line status matches the expected value for the selected lifecycle stage (draft, submitted, scheduled, reserved, picked, shipped or returned)",
      "fulfillment progress details such as scheduling, shipment and return activity are accurately reflected for the order",
      "results are correctly scoped to the selected order number, customer, item, status and date range filters",
      "results remain consistent across repeated inquiries when no intervening transaction has occurred",
      "an over-restrictive filter combination correctly returns an empty result set rather than an error",
      "Oracle correctly enforces validation and access restrictions when search criteria are invalid or when a user lacks access to a requested organization (DATA_ERROR, SECURITY_ERROR, EXPECTED_VALIDATION)"
    ],
    "scope_note": "This scenario covers read-only inquiry into sales order status, line detail and fulfillment progress in Oracle Fusion SCM Order Management TEST/UAT environments. No order data is created, modified or moved by this test — it only reads and verifies displayed order and line status, scheduling, shipment and return information. Transactions that create or change order data, such as creating, submitting, scheduling, reserving, shipping or returning orders, are covered by the separate scenarios in the Sales Orders, Order Changes, Holds, Fulfillment and Returns clusters."
  },
  "preconditions": [
    "Sales orders exist across a range of lifecycle statuses — draft, submitted, scheduled, reserved, picked, shipped and returned — in the target Oracle Fusion SCM environment.",
    "At least one order has an associated return, so that return status and reference detail can be verified through the inquiry.",
    "The test user has view/inquiry access to sales orders for the relevant business unit or organization.",
    "Orders span multiple customers and order dates, so that customer and date-range filtering can be verified."
  ],
  "test_data": [
    {
      "field": "Order Number",
      "example": "${ORDER_NUMBER}"
    },
    {
      "field": "Customer",
      "example": "${CUSTOMER}"
    },
    {
      "field": "Item",
      "example": "${ITEM}"
    },
    {
      "field": "Order Status",
      "example": "${ORDER_STATUS}"
    },
    {
      "field": "Line Status",
      "example": "${LINE_STATUS}"
    },
    {
      "field": "As-Of Date",
      "example": "${AS_OF_DATE}"
    },
    {
      "field": "Date Range Start",
      "example": "${DATE_RANGE_START}"
    },
    {
      "field": "Date Range End",
      "example": "${DATE_RANGE_END}"
    },
    {
      "field": "Ship-To Location",
      "example": "${SHIP_TO}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In",
      "action": "Sign in to Oracle Fusion using an authorised order management test user.",
      "test_data": "",
      "expected_result": "The user is signed in successfully with access to Order Management.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to Order Management",
      "action": "Navigate to the Order Management work area.",
      "test_data": "",
      "expected_result": "The Order Management work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Open the Order Inquiry",
      "action": "Open the order inquiry page used to search for and review sales orders.",
      "test_data": "${ORDER_NUMBER}",
      "expected_result": "The order inquiry page opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Apply Customer/Order/Date Filters",
      "action": "Enter filters such as order number, customer, item, order status, line status or date range to scope the inquiry.",
      "test_data": "${ORDER_NUMBER} / ${CUSTOMER} / ${ITEM} / ${ORDER_STATUS} / ${LINE_STATUS} / ${AS_OF_DATE}",
      "expected_result": "The filters are accepted without unexpected errors and the inquiry can be executed.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as populating individual filter fields and submitting the search."
    },
    {
      "step_number": 5,
      "step_name": "Review Displayed Order and Line Status",
      "action": "Review the order header status, line status and fulfillment progress details (scheduling, shipment, return) displayed for the selected order(s).",
      "test_data": "",
      "expected_result": "Order and line status, and fulfillment progress detail, are displayed for the selected scope.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Cross-Check Against Expected Lifecycle Stage",
      "action": "Cross-check the displayed order and line status against the expected lifecycle stage for the order — draft, submitted, scheduled, reserved, picked, shipped or returned.",
      "test_data": "",
      "expected_result": "Displayed status matches the expected lifecycle stage.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Verify Results Scoped Correctly",
      "action": "Confirm that the returned results are correctly scoped to the selected filters, and remain consistent on a repeated inquiry.",
      "test_data": "",
      "expected_result": "Results are correctly scoped to the selected filters and remain consistent across repeated inquiries with no drift when no intervening transaction has occurred.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — accurate, correctly scoped order and line status and fulfillment progress are the expected pass condition, not merely a successful search."
    }
  ],
  "expected_results": [
    "The displayed order and line status matches the expected value for the selected lifecycle stage.",
    "Fulfillment progress details (scheduling, shipment, return) are accurately reflected for the order.",
    "Results are correctly scoped to the selected order number, customer, item, status and date range filters.",
    "Results remain consistent across repeated inquiries when no intervening transaction has occurred.",
    "An over-restrictive filter combination correctly returns an empty result set rather than an error.",
    "An unauthorized cross-organization inquiry is correctly access-restricted.",
    "No order data is created, modified or moved by this inquiry."
  ],
  "validation_checkpoints": [
    "Displayed order/line status matches expected lifecycle stage.",
    "Fulfillment progress details (scheduling, shipment, return) accurately reflected.",
    "Results correctly scoped to the selected filters.",
    "Results consistent across repeated inquiries with no intervening transaction."
  ]
}
