{
  "test_id": "ORCL.HCM.PAYROLL.PROCESS",
  "scenario_name": "Payroll Processing",
  "application": "Oracle Fusion Cloud",
  "product": "HCM",
  "module": "Payroll",
  "process": "Payroll Processing",
  "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/payroll-processing/",
  "objective": {
    "intro": "This test validates that Oracle Fusion HCM can execute a configured payroll flow for an eligible payroll population and progress it through its defined process stages to a correct final status.",
    "confirms": [
      "the payroll flow is submitted correctly for the selected payroll and payroll period",
      "the expected worker population, based on payroll relationship and assignment eligibility, is included in the run",
      "the flow's process stages progress correctly from submission through to completion",
      "the final payroll flow status correctly reflects the outcome of processing",
      "errors and exceptions raised during processing are identified rather than silently ignored",
      "payroll results are available for the processed population where applicable"
    ],
    "scope_note": "This scenario validates the Payroll Processing event itself — submitting and monitoring a configured payroll flow to completion. Downstream stages such as Payroll Calculation detail, Payroll Validation and Prepayments are covered by separate test scenarios within the same Hire-to-Pay Payroll cluster."
  },
  "preconditions": [
    "A valid Legislative Data Group is configured for the payroll population being processed.",
    "A valid Payroll is defined and available for selection.",
    "An open, unprocessed Payroll Period exists for the selected payroll.",
    "At least one worker has an active Payroll Relationship and Assignment eligible for the payroll.",
    "Required element entries are configured for the eligible worker population.",
    "A valid Legal Employer is associated with the eligible assignments.",
    "The payroll flow pattern used for processing is configured and available.",
    "The test user has the appropriate Payroll role and access to submit and monitor the flow.",
    "The target Oracle Fusion environment is a TEST or UAT environment, not a production payroll environment."
  ],
  "test_data": [
    {
      "field": "Legislative Data Group",
      "example": "${LEGISLATIVE_DATA_GROUP}"
    },
    {
      "field": "Payroll",
      "example": "${PAYROLL}"
    },
    {
      "field": "Payroll Period",
      "example": "${PAYROLL_PERIOD}"
    },
    {
      "field": "Pay Frequency",
      "example": "${PAY_FREQUENCY}"
    },
    {
      "field": "Worker",
      "example": "${WORKER}"
    },
    {
      "field": "Payroll Relationship",
      "example": "${PAYROLL_RELATIONSHIP}"
    },
    {
      "field": "Legal Employer",
      "example": "${LEGAL_EMPLOYER}"
    },
    {
      "field": "Assignment",
      "example": "${ASSIGNMENT}"
    },
    {
      "field": "Element Entries",
      "example": "${ELEMENT_ENTRIES}"
    },
    {
      "field": "Effective Date",
      "example": "${EFFECTIVE_DATE}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In to Oracle Fusion HCM",
      "action": "Sign in to Oracle Fusion Cloud with a user account that has Payroll processing 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 work area used to run and monitor payroll flows.",
      "test_data": "",
      "expected_result": "The Payroll work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Select Payroll and Period",
      "action": "Select the payroll and the payroll period the flow will be run for.",
      "test_data": "${PAYROLL} / ${PAYROLL_PERIOD}",
      "expected_result": "The selected payroll and period are accepted and the corresponding flow task is available.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Review Flow Configuration and Eligible Worker Population",
      "action": "Review the payroll flow parameters and the worker population expected to be included based on payroll relationship and assignment eligibility.",
      "test_data": "${PAYROLL_RELATIONSHIP} / ${ASSIGNMENT}",
      "expected_result": "The flow parameters and expected eligible worker population are displayed correctly before submission.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Submit the Payroll Flow",
      "action": "Submit the payroll flow for processing.",
      "test_data": "${EFFECTIVE_DATE}",
      "expected_result": "The payroll flow is submitted and a flow instance is created for monitoring.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Monitor Process Stages",
      "action": "Monitor the flow as it progresses through its defined process stages.",
      "test_data": "",
      "expected_result": "The flow's process stages progress in the expected sequence without becoming stuck or erroring unexpectedly.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Review Completion Status",
      "action": "Review the payroll flow's final status once processing completes.",
      "test_data": "",
      "expected_result": "The flow reaches a final status, such as completed, completed with warnings, or error, consistent with the input data.",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Verify Results and Exceptions",
      "action": "Retrieve the payroll flow results and confirm the processed worker population and any exceptions or errors raised.",
      "test_data": "",
      "expected_result": "The expected worker population was processed, payroll results are available where applicable, and any exceptions raised are correctly identified rather than silently dropped.",
      "validation_type": "business_assertion",
      "note": "This is the main business assertion for the scenario — the test does not stop merely because the flow was submitted successfully; the resulting worker population, status and results must be confirmed."
    }
  ],
  "expected_results": [
    "The payroll flow is submitted successfully for the selected payroll and payroll period.",
    "The expected worker population, based on payroll relationship and assignment eligibility, is included in the run.",
    "The flow's process stages progress correctly from submission through to completion.",
    "The final payroll flow status correctly reflects the outcome of processing.",
    "Errors and exceptions raised during processing are identified and reported.",
    "Payroll results are available for the processed population where applicable."
  ],
  "validation_checkpoints": [
    "Payroll flow submitted correctly.",
    "Expected worker population included.",
    "Process stages progress correctly.",
    "Final flow status correct.",
    "Errors/exceptions identified.",
    "Payroll results available where applicable."
  ]
}
