Show test results on the Risksheet

Modified on Fri, 8 Mar at 2:07 PM

Starting from Risksheet version 23.10.5 a new improvement to support  $testManagementService was added so it became possible to render Test Runs results on the Risksheet.


To do so, the column for the Test Results should be configured in the following way:

 {
         "headerGroup":"Mitigations",
         "headerGroupCss":"headMitigations",
         "headerCss":"headMitigations",
         "header": "Test Result",
         "bindings": "task.$item",
         "minWidth": 170    ,
        "serverRender":"#macro(getLastTestRecord $item)#set( $testRecords = $testManagementService.getLastTestRecords($item.getOldApi(), 1) ) #foreach ($iRecord in $testRecords)#set($testRun = $transaction.testRuns().getBy().oldApiObject($iRecord.getTestRun()))$iRecord.getTestRun().getId() - $iRecord.getResult().name , #end#end #getLastTestRecord($item)"
      }

Of course, you can later modify the way it is rendered in a way that works better for you.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article