{
  "test_id": "ORCL.HCM.E2E.TIME2PAY",
  "scenario_name": "Time-to-Pay",
  "application": "Oracle Fusion Cloud",
  "product": "HCM",
  "module": "End-to-End HCM",
  "process": "Time-to-Pay",
  "business_flow": "Hire-to-Retire",
  "scenario_type": "End-to-End / Cross-Process",
  "priority": "High",
  "automation_status": "SyntraFlow Ready",
  "library": "Syntra Standard Journey",
  "canonical_url": "https://www.syntraflow.cloud/oracle-erp-testing-tool/test-library/hcm/end-to-end/time-to-pay/",
  "objective": {
    "intro": "The objective of this test is to validate the complete Oracle Fusion Time-to-Pay journey — timecard entry, time validation, approval, overtime, transfer to payroll, payroll calculation, prepayments, payment and costing — with emphasis on approved hours, both regular and overtime, correctly carrying into the payroll calculation and payment amount, not on re-testing each stage's own atomic, field-level validation. This page is an orchestration and journey test: it does not duplicate the scenario coverage already tested individually on the linked Timecard Entry, Time Validation, Timecard Approval, Timecard Correction, Overtime, Time Transfer, Payroll Calculation, Payroll Processing, Payroll Validation, Retro Pay, Prepayments, Payment Processing and Costing pages. Instead, it links to those live pages and adds scenarios that specifically test the hand-offs, hours continuity and pay continuity between them.",
    "confirms": [
      "approved regular and overtime hours correctly carry forward from timecard entry through approval, transfer and payroll calculation",
      "only approved time — not rejected or unapproved time — correctly transfers to payroll",
      "overtime is correctly calculated according to the configured threshold, weekend or holiday rule",
      "payroll net pay correctly equals the prepayment and payment total",
      "a time correction made after payroll has calculated correctly triggers a retro calculation, and costing correctly reflects the transferred time",
      "Oracle correctly enforces validation when data errors, configuration errors, security restrictions or unapproved time are introduced at any stage of the journey (DATA_ERROR, CONFIGURATION_ERROR, SECURITY_ERROR, EXPECTED_VALIDATION)"
    ],
    "scope_note": "This scenario orchestrates and links to the individually tested Time and Labor and Payroll family pages listed on this page; it does not re-test each stage's own field-level validation, which remains covered on those pages. It covers the standard Time-to-Pay journey in Oracle Fusion Cloud HCM TEST/UAT environments and does not cover salaried-only pay cycles without timecard entry, which are covered by separate HCM Payroll scenarios outside this journey."
  },
  "preconditions": [
    "A worker ${WORKER} is active with an assigned schedule and eligible for time entry in the target Oracle Fusion environment.",
    "Time and Labor is configured with the applicable time types, overtime rules and approval routing for ${WORKER}'s work schedule.",
    "The test user or users hold appropriate access to progress a transaction through timecard entry, approval, transfer, payroll and payment stages.",
    "Payroll ${PAYROLL} and pay period ${PAY_PERIOD} are defined and open in the target environment, with costing setup configured where applicable.",
    "This scenario assumes each linked family page's own preconditions are separately satisfied — it does not re-verify field-level setup already covered on those pages."
  ],
  "test_data": [
    {
      "field": "Worker",
      "example": "${WORKER}"
    },
    {
      "field": "Timecard",
      "example": "${TIMECARD}"
    },
    {
      "field": "Regular Hours",
      "example": "${REGULAR_HOURS}"
    },
    {
      "field": "Overtime Hours",
      "example": "${OVERTIME_HOURS}"
    },
    {
      "field": "Project",
      "example": "${PROJECT}"
    },
    {
      "field": "Approver",
      "example": "${MANAGER}"
    },
    {
      "field": "Payroll",
      "example": "${PAYROLL}"
    },
    {
      "field": "Pay Period",
      "example": "${PAY_PERIOD}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Enter the Timecard",
      "action": "Enter timecard ${TIMECARD} hours for ${WORKER}, including regular hours ${REGULAR_HOURS} and any hours charged to ${PROJECT}, using the linked Timecard Entry scenario.",
      "test_data": "${TIMECARD} / ${WORKER}",
      "expected_result": "The timecard is created with the correct regular hours and project detail.",
      "validation_type": "action",
      "note": "This step orchestrates the Timecard Entry family page rather than repeating its individual field-level test coverage."
    },
    {
      "step_number": 2,
      "step_name": "Validate the Time Entries",
      "action": "Submit timecard ${TIMECARD} for validation, allowing Oracle to check for missing time types, invalid projects, overlapping or duplicate entries and hours above the configured limit, using the linked Time Validation scenario.",
      "test_data": "",
      "expected_result": "Valid entries pass validation; invalid entries are correctly flagged before approval.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Submit for Manager Approval",
      "action": "Submit the validated timecard ${TIMECARD} to manager ${MANAGER} for approval, using the linked Timecard Approval scenario, and correct and resubmit via the linked Timecard Correction scenario if rejected.",
      "test_data": "${MANAGER}",
      "expected_result": "The timecard is correctly approved by an authorized approver, or rejected and correctly excluded from transfer if not.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Calculate Overtime Where Applicable",
      "action": "Where overtime rules apply, confirm overtime hours ${OVERTIME_HOURS} are correctly calculated against the configured threshold, weekend or holiday rule, using the linked Overtime scenario.",
      "test_data": "${OVERTIME_HOURS}",
      "expected_result": "Overtime hours are correctly calculated only where the configured rule is met.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Transfer Approved Time to Payroll",
      "action": "Transfer the approved regular hours ${REGULAR_HOURS} and overtime hours ${OVERTIME_HOURS} for ${WORKER} to payroll ${PAYROLL}, using the linked Time Transfer scenario.",
      "test_data": "${PAYROLL}",
      "expected_result": "Only approved time correctly transfers; unapproved or rejected time is correctly excluded.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Run the Payroll Calculation",
      "action": "Run payroll calculation ${PAYROLL} for pay period ${PAY_PERIOD}, using the linked Payroll Calculation, Payroll Processing and Payroll Validation scenarios, and the linked Retro Pay scenario where a prior time correction applies, confirming transferred hours correctly reflect in the result.",
      "test_data": "${PAY_PERIOD}",
      "expected_result": "The payroll calculation correctly reflects the transferred regular and overtime hours.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Generate Prepayments and Payment",
      "action": "Generate prepayments and payment for ${WORKER} from the completed payroll calculation, using the linked Prepayments and Payment Processing scenarios.",
      "test_data": "",
      "expected_result": "Prepayment and payment amounts correctly equal the calculated net pay.",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Verify Costing and the Full Audit Trail",
      "action": "Trace the completed transaction from timecard entry through validation, approval, transfer, payroll calculation, prepayment, payment and costing to confirm the audit trail links every stage together, using the linked Costing scenario.",
      "test_data": "",
      "expected_result": "The audit trail correctly links every stage, and costing correctly reflects the transferred and calculated hours.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — a fully linked, correctly calculated and correctly costed audit trail across every stage is the expected pass condition, not merely a successful payment."
    }
  ],
  "expected_results": [
    "Timecard entries are correctly validated before approval.",
    "Only approved timecards correctly transfer to payroll.",
    "Overtime hours are correctly calculated according to the configured rule.",
    "Approved regular and overtime hours correctly reflect in the payroll calculation.",
    "Prepayment and payment amounts correctly equal the calculated net pay.",
    "Costing correctly reflects the transferred time, and unauthorized actions at any stage of the journey are correctly blocked."
  ],
  "validation_checkpoints": [
    "Approved regular hours correctly carry into the payroll calculation.",
    "Approved overtime correctly carries into the payroll calculation.",
    "Only approved — not rejected or unapproved — time correctly transfers to payroll.",
    "Payroll net pay correctly equals the prepayment / payment total.",
    "Time correction after payroll correctly triggers a retro calculation.",
    "Costing correctly reflects the transferred time.",
    "Unauthorized approval is correctly blocked."
  ]
}
