{
  "test_id": "ORCL.SCM.MFG.OPS.COMPLETE",
  "scenario_name": "Complete Operation",
  "application": "Oracle Fusion Cloud",
  "product": "SCM",
  "module": "Manufacturing",
  "process": "Complete Operation",
  "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/operations/complete-operation/",
  "objective": {
    "intro": "The objective of this test is to validate completion of operations in Oracle Fusion SCM Manufacturing, including quantity completion, resource time recording and quality/inspection checkpoints where configured, without assuming inspection is required at every operation.",
    "confirms": [
      "an operation with a valid status and recorded quantity is completed successfully, whether the completion is a full or partial quantity",
      "resource time is correctly recorded against the operation when a single resource or multiple resources are used",
      "completion correctly advances the work order to the next routing step, or to final completion when the last operation in the routing is completed",
      "quality inspection results are correctly recorded at completion where the work definition configures an inspection checkpoint, without assuming inspection is required at every operation",
      "completion quantity exceeding the started quantity, and completion of an operation that has not been started, are 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 operations in Oracle Fusion SCM Manufacturing TEST/UAT environments, including quantity completion, resource time recording and quality/inspection checkpoints where configured. Quality inspection requirements at completion are governed by customer-specific work definition and quality plan configuration — this scenario does not assume inspection is required at every operation. It does not cover starting the operation or rejecting operation output, which are covered by the separate Start Operation and Reject Operation scenarios, nor final work order completion, which is covered by the separate Complete Work Order scenario."
  },
  "preconditions": [
    "The operation exists in Oracle Fusion SCM Manufacturing with a status eligible for completion (typically Started or In Process).",
    "The work order and its routing are correctly set up, including the sequence of operations.",
    "Resources required by the operation are set up in the manufacturing organization, with time recording enabled where applicable.",
    "Where a quality inspection checkpoint is configured for the operation, the associated quality plan is set up.",
    "The test user has appropriate access to complete operations for the manufacturing organization."
  ],
  "test_data": [
    {
      "field": "Work Order",
      "example": "${WORK_ORDER}"
    },
    {
      "field": "Operation",
      "example": "${OPERATION}"
    },
    {
      "field": "Quantity",
      "example": "${QUANTITY}"
    },
    {
      "field": "Started Quantity",
      "example": "${STARTED_QUANTITY}"
    },
    {
      "field": "Resource",
      "example": "${RESOURCE}"
    },
    {
      "field": "Resource Time",
      "example": "${RESOURCE_TIME}"
    },
    {
      "field": "Inspection Result",
      "example": "${INSPECTION_RESULT}"
    }
  ],
  "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 Started Operation",
      "action": "Open the operation to be completed from the work order's routing.",
      "test_data": "${WORK_ORDER} / ${OPERATION}",
      "expected_result": "The operation details page opens with the correct status, routing step and resource detail.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Enter Completion Quantity and Resource Time",
      "action": "Enter the quantity to complete and record resource time against the operation.",
      "test_data": "${QUANTITY} / ${RESOURCE} / ${RESOURCE_TIME}",
      "expected_result": "The completion quantity and resource time are accepted for the operation.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Record Inspection Result Where Configured",
      "action": "Where a quality inspection checkpoint is configured for the operation, record the inspection result.",
      "test_data": "${INSPECTION_RESULT}",
      "expected_result": "The inspection result is recorded correctly where an inspection checkpoint applies to the operation; the step is skipped where no checkpoint is configured.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening the quality inspection plan and recording the pass/fail disposition."
    },
    {
      "step_number": 5,
      "step_name": "Submit the Completion",
      "action": "Submit the operation completion.",
      "test_data": "${WORK_ORDER} / ${OPERATION}",
      "expected_result": "Oracle Fusion successfully processes the completion action without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Verify Operation Status and Routing Progression Update Correctly",
      "action": "Reopen or refresh the work order and confirm the operation status and routing progression.",
      "test_data": "",
      "expected_result": "The operation status correctly shows Completed, and the work order correctly advances to the next routing step or to final completion when the last operation is completed.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — an operation correctly completing with accurate routing progression is the expected pass condition, not merely a successful save."
    }
  ],
  "expected_results": [
    "Operation correctly completed with the recorded quantity.",
    "Resource time correctly recorded against the operation.",
    "Completion correctly advances the work order to the next routing step or to final completion.",
    "Over-completion (quantity exceeding started quantity) correctly blocked or flagged.",
    "Completion of a not-started operation correctly blocked.",
    "Unauthorized completion correctly blocked."
  ],
  "validation_checkpoints": [
    "Operation correctly completed with the recorded quantity.",
    "Resource time correctly recorded against the operation.",
    "Completion correctly advances the work order to the next routing step or to final completion.",
    "Over-completion correctly blocked or flagged.",
    "Completion of a not-started operation correctly blocked.",
    "Unauthorized completion correctly blocked."
  ]
}
