<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Report on sys_atf_test_suite_result table in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/report-on-sys-atf-test-suite-result-table/m-p/3569494#M1259488</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I'm creating a report on the &lt;STRONG&gt;sys_atf_test_suite_result&lt;/STRONG&gt; table. The issue is that every Test Suite execution creates a new record, so the report shows multiple records for the same Test Suite.&lt;/P&gt;&lt;P&gt;My requirement is to schedule a Test Suite to run weekly and have the report display &lt;STRONG&gt;only the latest execution result&lt;/STRONG&gt; for each Test Suite.&lt;/P&gt;&lt;P&gt;For example, if the &lt;STRONG&gt;Incident Management&lt;/STRONG&gt; Test Suite has multiple execution records, the report should show only the most recent one.&lt;/P&gt;&lt;P&gt;Has anyone achieved this in ServiceNow? Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pranjalsrvs_0-1783397310763.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/522423i6D4C89FBD1F5A7C9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="pranjalsrvs_0-1783397310763.png" alt="pranjalsrvs_0-1783397310763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2026 04:08:43 GMT</pubDate>
    <dc:creator>PranjalSrvst</dc:creator>
    <dc:date>2026-07-07T04:08:43Z</dc:date>
    <item>
      <title>Report on sys_atf_test_suite_result table</title>
      <link>https://www.servicenow.com/community/developer-forum/report-on-sys-atf-test-suite-result-table/m-p/3569494#M1259488</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I'm creating a report on the &lt;STRONG&gt;sys_atf_test_suite_result&lt;/STRONG&gt; table. The issue is that every Test Suite execution creates a new record, so the report shows multiple records for the same Test Suite.&lt;/P&gt;&lt;P&gt;My requirement is to schedule a Test Suite to run weekly and have the report display &lt;STRONG&gt;only the latest execution result&lt;/STRONG&gt; for each Test Suite.&lt;/P&gt;&lt;P&gt;For example, if the &lt;STRONG&gt;Incident Management&lt;/STRONG&gt; Test Suite has multiple execution records, the report should show only the most recent one.&lt;/P&gt;&lt;P&gt;Has anyone achieved this in ServiceNow? Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pranjalsrvs_0-1783397310763.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/522423i6D4C89FBD1F5A7C9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="pranjalsrvs_0-1783397310763.png" alt="pranjalsrvs_0-1783397310763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 04:08:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/report-on-sys-atf-test-suite-result-table/m-p/3569494#M1259488</guid>
      <dc:creator>PranjalSrvst</dc:creator>
      <dc:date>2026-07-07T04:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Report on sys_atf_test_suite_result table</title>
      <link>https://www.servicenow.com/community/developer-forum/report-on-sys-atf-test-suite-result-table/m-p/3572861#M1260066</link>
      <description>&lt;P&gt;Reports (classic or Data Visualization) don't natively support "latest row per group" logic you'd need to shape the data first. The cleanest approach:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. Add a boolean field to sys_atf_test_suite_result, e.g. u_is_latest.&lt;BR /&gt;&lt;BR /&gt;2. Create a Business Rule (after insert) on that table:&lt;BR /&gt;(function executeRule(current, previous) {&lt;BR /&gt;var prev = new GlideRecord('sys_atf_test_suite_result');&lt;BR /&gt;prev.addQuery('test_suite', current.test_suite);&lt;BR /&gt;prev.addQuery('sys_id', '!=', current.sys_id);&lt;BR /&gt;prev.addQuery('u_is_latest', true);&lt;BR /&gt;prev.query();&lt;BR /&gt;while (prev.next()) {&lt;BR /&gt;prev.u_is_latest = false;&lt;BR /&gt;prev.update();&lt;BR /&gt;}&lt;BR /&gt;current.u_is_latest = true;&lt;BR /&gt;})(current, previous);&lt;BR /&gt;&lt;BR /&gt;3.Build your report/filter with a condition of u_is_latest = true now it always shows just the most recent run per suite.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 14:41:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/report-on-sys-atf-test-suite-result-table/m-p/3572861#M1260066</guid>
      <dc:creator>MaheshG95462175</dc:creator>
      <dc:date>2026-07-13T14:41:07Z</dc:date>
    </item>
  </channel>
</rss>

