{
  "test_id": "ORCL.HCM.PAYROLL.COSTING",
  "scenario_name": "Payroll Costing",
  "application": "Oracle Fusion Cloud",
  "product": "HCM",
  "module": "Payroll",
  "process": "Costing",
  "business_flow": "Hire-to-Pay",
  "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/payroll/costing/",
  "objective": {
    "intro": "This test validates payroll costing in Oracle Fusion Payroll, confirming that payroll results are allocated to the expected cost centers, accounts and accounting segments, and that the sum of costing allocations reconciles exactly to the total payroll amount costed.",
    "confirms": [
      "the costing process runs and completes for the eligible payroll results",
      "costed amounts are allocated to the expected department and cost center",
      "costed amounts are allocated to the expected account and accounting segment combination",
      "the sum of costing allocations equals the total payroll amount costed — sum of costing allocations = total payroll amount costed",
      "costing exceptions, where present, are captured and identifiable",
      "downstream accounting status is correct where accounting is included in scope"
    ],
    "scope_note": "This scenario validates the core Payroll Costing process for payroll results already calculated and eligible for costing. Upstream payroll calculation and payment processing, and downstream general ledger posting, are covered by separate test scenarios within the same Hire-to-Pay business flow."
  },
  "preconditions": [
    "Payroll results are calculated and eligible for costing for the selected payroll and payroll period.",
    "Costing setup, including account and cost-center rules, is configured for the relevant elements and departments.",
    "The worker's department, cost center and legal employer are configured and available for allocation.",
    "Applicable accounting segments and account combinations are configured and active where costing is expected to complete.",
    "Where split costing is used, the underlying split-costing configuration is in place.",
    "The test user has the appropriate Payroll role and access to run and review the costing process."
  ],
  "test_data": [
    {
      "field": "Worker",
      "example": "${WORKER}"
    },
    {
      "field": "Payroll",
      "example": "${PAYROLL}"
    },
    {
      "field": "Element",
      "example": "${ELEMENT}"
    },
    {
      "field": "Department",
      "example": "${DEPARTMENT}"
    },
    {
      "field": "Cost Center",
      "example": "${COST_CENTER}"
    },
    {
      "field": "Legal Employer",
      "example": "${LEGAL_EMPLOYER}"
    },
    {
      "field": "Account Combination",
      "example": "${ACCOUNT_COMBINATION}"
    },
    {
      "field": "Payroll Period",
      "example": "${PAYROLL_PERIOD}"
    },
    {
      "field": "Ledger Context",
      "example": "${LEDGER_CONTEXT}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In to Oracle Fusion Payroll",
      "action": "Sign in to Oracle Fusion Cloud with a user account that has Payroll costing access.",
      "test_data": "",
      "expected_result": "The Oracle Fusion Cloud home page loads successfully for the authenticated user.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to Payroll",
      "action": "Navigate to the Payroll area used to run and review the costing process.",
      "test_data": "",
      "expected_result": "The Payroll work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Locate Payroll Results Eligible for Costing",
      "action": "Locate the calculated payroll results eligible for costing within the selected payroll and payroll period.",
      "test_data": "${WORKER} / ${PAYROLL} / ${PAYROLL_PERIOD}",
      "expected_result": "The eligible payroll results are found and available for the costing process.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Initiate Costing Process",
      "action": "Initiate the Costing process for the eligible payroll results.",
      "test_data": "${ELEMENT} / ${LEGAL_EMPLOYER}",
      "expected_result": "The costing process runs without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Review Account and Cost-Center Allocation",
      "action": "Review the account and cost-center allocation produced by the costing process for the worker and payroll period.",
      "test_data": "${DEPARTMENT} / ${COST_CENTER} / ${ACCOUNT_COMBINATION}",
      "expected_result": "Costed amounts are allocated to the expected department, cost center and account combination.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Submit Costing",
      "action": "Submit the costing process for the reviewed payroll results.",
      "test_data": "${LEDGER_CONTEXT}",
      "expected_result": "The costing process completes and costing results are recorded for the payroll period.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Verify Allocations Reconcile to the Source Payroll Amount",
      "action": "Verify that the sum of the costing allocations produced for the worker equals the total payroll amount costed.",
      "test_data": "",
      "expected_result": "Sum of costing allocations = total payroll amount costed, for the worker and payroll period.",
      "validation_type": "business_assertion",
      "note": "This is the central business assertion for this scenario. Illustrative example only, not a real costing result or customer-specific account structure: if ${TOTAL_PAYROLL_AMOUNT}=${COSTED_AMOUNT_1}+${COSTED_AMOUNT_2}, the allocations reconcile. Test execution is designed to use ${PLACEHOLDER} tokens rather than real account or cost-center values, and this page does not publish any customer-specific chart-of-accounts data as fact."
    },
    {
      "step_number": 8,
      "step_name": "Confirm Costing Status",
      "action": "Confirm the costing status recorded for the payroll results and payroll period.",
      "test_data": "",
      "expected_result": "The costing status reflects successful completion for the payroll results.",
      "validation_type": "action"
    }
  ],
  "expected_results": [
    "The costing process runs and completes for the eligible payroll results.",
    "Costed amounts are allocated to the expected department and cost center.",
    "Costed amounts are allocated to the expected account and accounting segment combination.",
    "The sum of costing allocations equals the total payroll amount costed.",
    "Costing exceptions, where present, are captured and identifiable.",
    "Downstream accounting status is correct where accounting is included in scope."
  ],
  "validation_checkpoints": [
    "Costing process completes correctly.",
    "Expected account and cost center used.",
    "Allocations add up correctly to the source payroll amount.",
    "Payroll amounts reconcile to costing.",
    "Exceptions captured.",
    "Downstream accounting status correct where included."
  ]
}
