<?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 in App Engine forum</title>
    <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/2999100#M4891</link>
    <description>&lt;P&gt;Hello Community,&lt;BR /&gt;&lt;BR /&gt;1)I need to Create a Report that shows the Test Results Failure and Success Status in the Report.&lt;BR /&gt;My Requirement is to show the Latest Run Results and the results need to freeze and next time when i run the Test Suite it need to show me the Newly Run Test Suite Results in the Report and the Old Results should not Show these New need to be shown till i run test Suite.&lt;BR /&gt;How can i Achieve this Functionality?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daiva_0-1721886148615.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/374324i1B75E5DCF8459257/image-size/medium?v=v2&amp;amp;px=400" alt="daiva_0-1721886148615.png" title="daiva_0-1721886148615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)Can i able to Add a Custom Button on the Dashboard?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Daiva&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 05:44:18 GMT</pubDate>
    <dc:creator>daiva</dc:creator>
    <dc:date>2024-07-25T05:44:18Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/2999100#M4891</link>
      <description>&lt;P&gt;Hello Community,&lt;BR /&gt;&lt;BR /&gt;1)I need to Create a Report that shows the Test Results Failure and Success Status in the Report.&lt;BR /&gt;My Requirement is to show the Latest Run Results and the results need to freeze and next time when i run the Test Suite it need to show me the Newly Run Test Suite Results in the Report and the Old Results should not Show these New need to be shown till i run test Suite.&lt;BR /&gt;How can i Achieve this Functionality?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daiva_0-1721886148615.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/374324i1B75E5DCF8459257/image-size/medium?v=v2&amp;amp;px=400" alt="daiva_0-1721886148615.png" title="daiva_0-1721886148615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)Can i able to Add a Custom Button on the Dashboard?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Daiva&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 05:44:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/2999100#M4891</guid>
      <dc:creator>daiva</dc:creator>
      <dc:date>2024-07-25T05:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/2999278#M4892</link>
      <description>&lt;P&gt;You can't do that through the conditions, unless you have some functionality on your run showing it's the last one so you can filter to it.&lt;/P&gt;&lt;P&gt;But if you put it on a dashboard, you can put a filter on it as well to select the run or the date. It will also give you the possibility to compare.&lt;/P&gt;&lt;P&gt;What kind of button do you need? Moving to Platform Analytics (especially in the technical builder) gives a lot of possibilities, but it's depending on your use case.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:08:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/2999278#M4892</guid>
      <dc:creator>Mark Manders</dc:creator>
      <dc:date>2024-07-25T08:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/2999378#M4893</link>
      <description>&lt;P&gt;Could You Please specify what type of Conditions Should i Use&lt;BR /&gt;&lt;BR /&gt;MY Requirement is:&lt;BR /&gt;Test.Name is Quote&amp;nbsp;&lt;BR /&gt;this has to to Show currently Run Test Results&amp;nbsp;&lt;BR /&gt;When New is Run Old should not Show.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 09:25:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/2999378#M4893</guid>
      <dc:creator>daiva</dc:creator>
      <dc:date>2024-07-25T09:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/3000504#M4906</link>
      <description>&lt;P&gt;To be able to tell you what conditions to use, you will need to answer my question: is there any functionality that tells you the run is the last one?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 07:40:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/3000504#M4906</guid>
      <dc:creator>Mark Manders</dc:creator>
      <dc:date>2024-07-26T07:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/3002988#M4921</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/7272"&gt;@Mark Manders&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm not able to do with the filter, so i have a new approach towards it.&lt;BR /&gt;New &amp;amp; Old Choice Fields Created to the&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Test Suite Result [sys_atf_test_suite_result]&lt;/SPAN&gt; Table&amp;nbsp;&lt;BR /&gt;A Business Rule.&lt;BR /&gt;When Record is Inserted The State = new&lt;BR /&gt;the Older records = old&lt;BR /&gt;This works as a Loop&lt;BR /&gt;&lt;BR /&gt;I used this as the Filter Condition in the Reports&amp;nbsp;&lt;BR /&gt;Test Suite.Test state&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;is&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New&lt;BR /&gt;But my script is Not working Properly could you please Help me with this Script&lt;BR /&gt;&lt;BR /&gt;When: Before&lt;BR /&gt;Inserted&amp;nbsp;&lt;BR /&gt;Updated&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;(function executeRule(current, previous /*null when async*/) {&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// &amp;nbsp; &amp;nbsp; // Set the state of the new record to "new"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;if (current.isNewRecord() || current.number != previous.number) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Set the state to New for the new test suite result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;current.u_test_state = 'new';&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Query to find all previous test suite results&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;previous.addQuery('sys_id', '!=', current.sys_id); // Exclude the current record&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;previous.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (previous.next()) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Set the state to Old for all previous test suite results&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; previous.u_test_state = 'old';&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;previous.update();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;})(current, previous);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jul 2024 05:42:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/3002988#M4921</guid>
      <dc:creator>daiva</dc:creator>
      <dc:date>2024-07-30T05:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/3003237#M4923</link>
      <description>&lt;P&gt;Mark all the old ones as 'old' and then this should do the trick from now on:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//Only trigger on insert, because it only needs to run once
var oldTest = new GlideRecord('sys_atf_test_suite_result');
oldTest.addQuery('u_test_state','new');
oldTest.query();
if(oldTest.next()){
    oldTest.setValue('u_test_state','old');
    oldTest.update();
}
current.u_test_state = 'new';
current.update(); // depending on your conditions is the update is needed&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Jul 2024 08:49:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/3003237#M4923</guid>
      <dc:creator>Mark Manders</dc:creator>
      <dc:date>2024-07-30T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/3003399#M4924</link>
      <description>&lt;P&gt;Not working&lt;BR /&gt;Can you please Suggest me some other&lt;BR /&gt;It's not changing to any state It is leaving blank.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 10:39:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/3003399#M4924</guid>
      <dc:creator>daiva</dc:creator>
      <dc:date>2024-07-30T10:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://www.servicenow.com/community/app-engine-forum/report/m-p/3009375#M4984</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/7272"&gt;@Mark Manders&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Test Suite Results Table contains Suites and when this suite run the Test State has to Update Dynamically to New when the New result is Created and the Older Results need to set state "Old" using Flow Designer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:49:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/report/m-p/3009375#M4984</guid>
      <dc:creator>daiva</dc:creator>
      <dc:date>2024-08-05T12:49:28Z</dc:date>
    </item>
  </channel>
</rss>

