{
  "test_id": "ORCL.SCM.MFG.WO.CREATE",
  "scenario_name": "Create Work Order",
  "application": "Oracle Fusion Cloud",
  "product": "SCM",
  "module": "Manufacturing",
  "process": "Create 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/work-orders/create-work-order/",
  "objective": {
    "intro": "The objective of this test is to validate that a work order can be created in Oracle Fusion SCM Manufacturing for a standard, lot-controlled or serial-controlled item, using a valid manufacturing organization, work definition, quantity, dates and priority, without assuming a universal work definition or costing setup, and that the resulting work order is created with correct header detail and status.",
    "confirms": [
      "the work order is created against the correct manufacturing organization, item and work definition",
      "quantity, unit of measure, start date, completion date and priority are captured correctly on the work order",
      "lot and serial control is correctly enforced according to each item's configuration",
      "operations and components inherited from the work definition are correctly reflected on the work order",
      "the work order receives a system-generated work order number and correct status once created",
      "Oracle correctly enforces validation when data errors, configuration errors or security restrictions are introduced (DATA_ERROR, CONFIGURATION_ERROR, SECURITY_ERROR, EXPECTED_VALIDATION)"
    ],
    "scope_note": "This scenario covers creation of standard, lot-controlled and serial-controlled work orders in Oracle Fusion SCM Manufacturing TEST/UAT environments. It does not assume a universal work definition or costing setup, and does not cover release, update or cancellation of the work order, which are covered by the separate Release Work Order, Update Work Order and Cancel Work Order scenarios in the same Work Orders cluster."
  },
  "preconditions": [
    "The manufacturing organization is configured and enabled for work order creation.",
    "The item being manufactured is active in the manufacturing organization, with lot or serial control configured as required.",
    "A work definition exists and is active for the item and manufacturing organization, where a work definition is required.",
    "The test user has appropriate access to create a work order for the manufacturing organization.",
    "Component and resource availability is not required at work-order-creation time — this scenario validates creation, not material availability or execution."
  ],
  "test_data": [
    {
      "field": "Manufacturing Organization",
      "example": "${MANUFACTURING_ORG}"
    },
    {
      "field": "Item",
      "example": "${ITEM}"
    },
    {
      "field": "Work Definition",
      "example": "${WORK_DEFINITION}"
    },
    {
      "field": "Quantity",
      "example": "${QUANTITY}"
    },
    {
      "field": "UOM",
      "example": "${UOM}"
    },
    {
      "field": "Start Date",
      "example": "${START_DATE}"
    },
    {
      "field": "Completion Date",
      "example": "${COMPLETION_DATE}"
    },
    {
      "field": "Priority",
      "example": "${PRIORITY}"
    },
    {
      "field": "Lot Number",
      "example": "${LOT}"
    },
    {
      "field": "Serial Number",
      "example": "${SERIAL}"
    }
  ],
  "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 Work Orders",
      "action": "Open the Work Orders page to begin creating a new work order.",
      "test_data": "",
      "expected_result": "The work order creation page opens.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Select Manufacturing Organization and Item",
      "action": "Select the manufacturing organization the work order will be created in, then search for and select the item to be manufactured.",
      "test_data": "${MANUFACTURING_ORG} / ${ITEM}",
      "expected_result": "The manufacturing organization and item are accepted and reflected on the work order header.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Select or Confirm Work Definition",
      "action": "Select or confirm the work definition that will drive the work order's operations and components, choosing an alternate work definition where more than one is configured.",
      "test_data": "${WORK_DEFINITION}",
      "expected_result": "The work definition is accepted and its operations and components are loaded onto the work order.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening the work definition search and confirming the default or alternate selection."
    },
    {
      "step_number": 5,
      "step_name": "Enter Quantity, Dates and Priority",
      "action": "Enter the quantity and unit of measure to be produced, the start and completion dates, and the priority for the work order.",
      "test_data": "${QUANTITY} / ${UOM} / ${START_DATE} / ${COMPLETION_DATE} / ${PRIORITY}",
      "expected_result": "Quantity, dates and priority are accepted and reflected on the work order.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Review Operations and Components",
      "action": "Review the operations and components inherited from the work definition, including lot or serial control fields where the item requires them.",
      "test_data": "${LOT} / ${SERIAL}",
      "expected_result": "Operations, components and any lot/serial control fields are correctly displayed for review.",
      "validation_type": "action",
      "note": "Reviewing operations and components before submission lets the tester catch an incorrect inherited value before the work order is created."
    },
    {
      "step_number": 7,
      "step_name": "Submit Work Order",
      "action": "Submit the work order for creation in the test environment.",
      "test_data": "",
      "expected_result": "Oracle Fusion successfully processes the work order without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Verify Work Order Created with Correct Status",
      "action": "Reopen or refresh the work order and confirm the generated work order number, status and header detail.",
      "test_data": "",
      "expected_result": "A work order number is generated, the work order status is correct, and organization, item, work definition, quantity, dates and priority match the entered data.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — a correctly created work order with accurate header detail is the expected pass condition, not merely a successful save."
    }
  ],
  "expected_results": [
    "The work order is created against the correct manufacturing organization, item and work definition.",
    "A system-generated work order number is assigned.",
    "Quantity, unit of measure, start date, completion date and priority are correct.",
    "Lot and serial control is correctly enforced according to item configuration.",
    "Operations and components inherited from the work definition are correctly reflected.",
    "The work order status correctly reflects a newly created order."
  ],
  "validation_checkpoints": [
    "Work order correctly created against the specified item, work definition and organization.",
    "Lot/serial control correctly enforced per item setup.",
    "Date validation correctly enforced (completion not before start).",
    "Quantity validation correctly enforced.",
    "Invalid item/work-definition/organization references correctly blocked.",
    "Unauthorized creation correctly blocked."
  ]
}
