{
  "test_id": "ORCL.HCM.COREHR.STRUCTURE.DEPARTMENT",
  "scenario_name": "Department Management",
  "application": "Oracle Fusion Cloud",
  "product": "HCM",
  "module": "Core HR",
  "process": "Workforce Structures",
  "business_flow": "Workforce Configuration",
  "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/hcm/core-hr/workforce-structures/departments/",
  "objective": {
    "intro": "The objective of this test is to validate that a department can be created and maintained in Oracle Fusion HCM with a correct department code and name, business unit, manager, cost center and effective dates, and that the department is correctly available for use in worker assignments once active.",
    "confirms": [
      "the department is created with the correct department code and name",
      "the department is associated with the correct business unit",
      "the department manager and cost center are captured correctly",
      "effective start and end dates are recorded correctly",
      "department status (active/inactive) is reflected correctly",
      "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, update and inactivation of a department as a workforce structure in Oracle Fusion HCM Core HR TEST/UAT environments. It does not cover the department hierarchy, budget allocation or organizational reporting configuration, which are covered by separate scenarios where applicable."
  },
  "preconditions": [
    "A business unit is configured in the target Oracle Fusion HCM environment.",
    "The test user has appropriate access to create and maintain departments for the business unit.",
    "The intended department manager is an active worker in the system, where a manager is assigned.",
    "The cost center to be associated with the department is valid and open.",
    "Workforce Structures setup is available for the test business unit.",
    "Where updating an existing department, a department with a known code is already present in the environment."
  ],
  "test_data": [
    {
      "field": "Department Name",
      "example": "${DEPARTMENT_NAME}"
    },
    {
      "field": "Department Code",
      "example": "${DEPARTMENT_CODE}"
    },
    {
      "field": "Business Unit",
      "example": "${BUSINESS_UNIT}"
    },
    {
      "field": "Manager",
      "example": "${MANAGER}"
    },
    {
      "field": "Cost Center",
      "example": "${COST_CENTER}"
    },
    {
      "field": "Effective Start Date",
      "example": "${EFFECTIVE_START_DATE}"
    },
    {
      "field": "Effective End Date",
      "example": "${EFFECTIVE_END_DATE}"
    },
    {
      "field": "Status",
      "example": "${STATUS}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In and Navigate to Workforce Structures",
      "action": "Sign in to Oracle Fusion using an authorised HR test user and navigate to the Workforce Structures work area.",
      "test_data": "",
      "expected_result": "The Workforce Structures work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Initiate Create or Update Department",
      "action": "Initiate creation of a new department, or open an existing department for update.",
      "test_data": "${DEPARTMENT_CODE}",
      "expected_result": "A new, unsaved department is opened for create, or the existing department opens correctly for update.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening the create/search page and confirming the target department."
    },
    {
      "step_number": 3,
      "step_name": "Enter Department Code, Name and Business Unit",
      "action": "Enter the department code, department name and associated business unit.",
      "test_data": "${DEPARTMENT_CODE} / ${DEPARTMENT_NAME} / ${BUSINESS_UNIT}",
      "expected_result": "The department code, name and business unit are accepted without unexpected validation errors.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Assign Manager and Cost Center",
      "action": "Assign the department manager and associate the department with the correct cost center.",
      "test_data": "${MANAGER} / ${COST_CENTER}",
      "expected_result": "The manager and cost center are accepted and reflected on the department record.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Set Effective Date and Status",
      "action": "Set the effective start date, and effective end date and status where applicable.",
      "test_data": "${EFFECTIVE_START_DATE} / ${EFFECTIVE_END_DATE} / ${STATUS}",
      "expected_result": "The effective dates and status are accepted without unexpected validation errors.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Submit the Department",
      "action": "Submit the department for creation or update in the test environment.",
      "test_data": "",
      "expected_result": "Oracle Fusion successfully processes the department without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Verify Department Details and Assignment Availability",
      "action": "Reopen or refresh the department and confirm code, name, business unit, manager, cost center, effective dates and status, then confirm the department is available for selection in a worker assignment when active.",
      "test_data": "",
      "expected_result": "The department reflects the entered code, name, business unit, manager, cost center, effective dates and status, and an active department is available for use in worker assignments.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — a correctly maintained department that is available for assignment when active is the expected pass condition, not merely a successful save."
    }
  ],
  "expected_results": [
    "The department is created or updated with the correct code and name.",
    "The department is associated with the correct business unit.",
    "The department manager and cost center are correct.",
    "Effective start and end dates are recorded correctly.",
    "The department status correctly reflects active or inactive.",
    "An active department is available for selection in worker assignments.",
    "An inactivated department with dependent assignments is handled according to configured restrictions."
  ],
  "validation_checkpoints": [
    "Department created correctly.",
    "Code/name correct.",
    "Manager/cost center correct.",
    "Effective dates correct.",
    "Status correct.",
    "Available for worker assignment when active."
  ]
}
