Report

daiva
Tera Guru

Hello Community,

1)I need to Create a Report that shows the Test Results Failure and Success Status in the Report.
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.
How can i Achieve this Functionality?

daiva_0-1721886148615.png

 

2)Can i able to Add a Custom Button on the Dashboard?

Thanks,
Daiva

7 REPLIES 7

Mark all the old ones as 'old' and then this should do the trick from now on:

//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

Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Not working
Can you please Suggest me some other
It's not changing to any state It is leaving blank.

Hello @Mark Manders 

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.