ATF - Unable to Validate Response SLA Breach in Incident

Suresh_M
Tera Contributor

Hi Team,

I am trying to create an ATF test case to validate an Incident Response SLA breach, but the test is failing at the SLA breach validation step.

Test Steps:

  1. Create and impersonate an ATF user with the itil role.
  2. Open a new Incident form.
  3. Set the following values:
    • Short description: ATF - Response SLA Breach Validation
    • Caller: ATF Test User
    • Impact: 1 - High
    • Urgency: 2 - Medium
    • Assignment Group: Database
  4. Submit the Incident.
  5. Query the task_sla table and validate that the SLA record is in In Progress stage – this step passes.
  6. Query the task_sla table where:
    • Task = INC0010259
    • Has breached = true

Issue:
The final query fails with the message:

FAILURE: No records matching query:
Task = INC0010259
and Has breached = true

ATF Execution Log:

  • Incident Number: INC0010259
  • Task SLA records found in In Progress stage: 2
  • No Task SLA record found with Has breached = true.

Geeting error as:FAILURE: No records matching query:
Task = INC0010259
and Has breached = true

Any guidance or best practices for testing SLA breaches using ATF would be greatly appreciated.

Thank you.

1 REPLY 1

PoonkodiS
Giga Sage

Hi @Suresh_M 

https://sn-nerd.com/2024/10/26/how-to-test-your-slas-using-atf/

follow the test steps ,

you already query the record in task sla table and validate the fields,then why you are querying again