{
  "test_id": "ORCL.SCM.MFG.COMP.COMPLETE",
  "scenario_name": "Complete Work Order",
  "application": "Oracle Fusion Cloud",
  "product": "SCM",
  "module": "Manufacturing",
  "process": "Complete Work Order",
  "business_flow": "Plan-to-Produce",
  "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/manufacturing/completions/complete-work-order/",
  "objective": {
    "intro": "The objective of this test is to validate completion of finished goods from work orders into inventory in Oracle Fusion SCM Manufacturing, including lot/serial number generation, subinventory/locator destination and yield variance handling.",
    "confirms": [
      "a work order with required operations complete is completed successfully into inventory at the specified subinventory, individually or across multiple work orders",
      "lot and serial numbers are correctly generated or captured for lot-controlled and serial-controlled items at completion",
      "yield variance between completed and expected quantity is correctly calculated and recorded",
      "completion of a quantity exceeding the work order quantity is correctly blocked or flagged where configuration restricts over-completion",
      "completion of a work order before all required operations finish is correctly blocked",
      "completion to an invalid subinventory, a zero-quantity completion, or completion attempted by an unauthorized user is correctly blocked",
      "Oracle correctly enforces validation and security restrictions when data, configuration or authorization issues are introduced (DATA_ERROR, CONFIGURATION_ERROR, SECURITY_ERROR, EXPECTED_VALIDATION)"
    ],
    "scope_note": "This scenario covers completion of finished goods from work orders into inventory in Oracle Fusion SCM Manufacturing TEST/UAT environments, including lot/serial generation, subinventory destination and yield variance handling. Over-completion restriction and yield variance calculation behavior are governed by customer-specific manufacturing organization parameters and work definition setup — this scenario does not assume a universal over-completion or yield policy across Oracle Fusion implementations, and it does not assume completion is permitted before all required operations finish. It does not cover partial completion tracked across multiple transactions or scrap quantity recording, which are covered by the separate Partial Completion and Scrap Quantity scenarios, nor closure of the work order, which is covered by the separate Close Work Order scenario in the same Manufacturing test library."
  },
  "preconditions": [
    "The work order exists in Oracle Fusion SCM Manufacturing with a status eligible for completion (typically In Process).",
    "All operations required before completion have been completed, or the operation status to be tested is deliberately left incomplete for negative scenarios.",
    "The completion subinventory and locator, including any alternate subinventory, are configured for the item, or a deliberately invalid subinventory is used for negative scenarios.",
    "Lot and serial control is configured on the item where lot- or serial-controlled completion is being tested.",
    "The test user has appropriate access to complete work orders for the manufacturing organization."
  ],
  "test_data": [
    {
      "field": "Work Order",
      "example": "${WORK_ORDER}"
    },
    {
      "field": "Quantity",
      "example": "${QUANTITY}"
    },
    {
      "field": "Subinventory",
      "example": "${SUBINVENTORY}"
    },
    {
      "field": "Lot",
      "example": "${LOT}"
    },
    {
      "field": "Serial",
      "example": "${SERIAL}"
    },
    {
      "field": "Yield Variance",
      "example": "${YIELD_VARIANCE}"
    },
    {
      "field": "Work Order Quantity",
      "example": "${WORK_ORDER_QUANTITY}"
    },
    {
      "field": "Operation Status",
      "example": "${OPERATION_STATUS}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In and Navigate to Manufacturing",
      "action": "Sign in to Oracle Fusion using an authorised manufacturing test user and navigate to the Manufacturing work area.",
      "test_data": "",
      "expected_result": "The Manufacturing work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to the Work Order",
      "action": "Open the work order to be completed from the work order list.",
      "test_data": "${WORK_ORDER}",
      "expected_result": "The work order details page opens with the correct status, quantity and operation detail.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Verify Required Operations Are Complete",
      "action": "Review operation status for the work order before attempting completion.",
      "test_data": "${OPERATION_STATUS}",
      "expected_result": "All required operations show complete, or the expected blocking condition is confirmed for negative scenarios.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening the operations list and reviewing each operation status individually."
    },
    {
      "step_number": 4,
      "step_name": "Enter Completion Quantity and Destination Subinventory",
      "action": "Enter the quantity to complete and the destination subinventory, including locator where applicable, for the finished goods.",
      "test_data": "${QUANTITY} / ${SUBINVENTORY}",
      "expected_result": "The completion quantity and destination subinventory are accepted, or an expected validation is returned for negative scenarios.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Enter Lot or Serial Numbers Where Required",
      "action": "For lot- or serial-controlled items, enter or generate the required lot and serial numbers.",
      "test_data": "${LOT} / ${SERIAL}",
      "expected_result": "Lot or serial numbers are correctly captured or generated for the item.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Submit the Completion",
      "action": "Submit the completion transaction for the work order.",
      "test_data": "",
      "expected_result": "Oracle Fusion successfully processes the completion without unexpected errors, or correctly returns a blocking validation for negative scenarios.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Verify On-Hand and Yield Variance Update Correctly",
      "action": "Reopen or refresh the work order and inventory on-hand, and confirm the completion, yield variance and on-hand quantity.",
      "test_data": "${YIELD_VARIANCE}",
      "expected_result": "On-hand inventory correctly reflects the completed quantity at the destination subinventory, and yield variance is correctly calculated and recorded.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — finished goods correctly received into inventory with accurate yield variance is the expected pass condition, not merely a successful save."
    }
  ],
  "expected_results": [
    "Finished goods are correctly received into inventory at the completion subinventory.",
    "Lot and serial numbers are correctly generated where required.",
    "Yield variance is correctly calculated and recorded.",
    "Completion exceeding the work order quantity is correctly blocked or flagged per configuration.",
    "Completion before all required operations finish is correctly blocked.",
    "Unauthorized completion is correctly blocked."
  ],
  "validation_checkpoints": [
    "Finished goods correctly received into inventory at the completion subinventory.",
    "Lot/serial numbers correctly generated where required.",
    "Yield variance correctly calculated and recorded.",
    "Over-completion correctly blocked or flagged per configuration.",
    "Completion before required operations finish correctly blocked.",
    "Unauthorized completion correctly blocked."
  ]
}
