Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get the most recent verdict of Test Case with Report Builder?

Hi, all,

I need to create a Report Builder query that:
  • Traces from a specific Market Release object to all Test Cases that are linked in any way whatsoever to that Market Release
  • Returns the most recent Test Result for each Test Case, or the last verdict for the Test Case -- once.
Forcing the linkages into a specific structure is not an option.

Is there any way to eliminate earlier Test Results without diving into the raw SQL?

Thanks,
- Steve.

0 votes



One answer

Permanent link

 I used the Report Builder customization options documented here https://jazz.net/wiki/bin/view/Main/ReportBuilderNewSchemaDiscovery  to provide an easy workaround for my users, since the 'Current Result' data is already available in the data warehouse.


I created this custom TTL snippet that I saved in the report builder /server/conf/rs/metadata folder 

@prefix db: <> .

@prefix ridw: <http://jazz.net/ns/reporting/dwse#> .

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

@prefix jdbc: <http://d2rq.org/terms/jdbc/> .

@prefix jrs: <http://jazz.net/jrs/reportbuilder/datawarehouse#> .

@prefix sg: <http://jazz.net/ns/reporting/sparqlgateway#> .



# Add in a custom link type to Current Execution Results

map:RIDW_VW_EXECUTION_WORKITEM_CURRENT_RESULT a d2rq:PropertyBridge;

   d2rq:belongsToClassMap map:RIDW_VW_EXECUTION_WORKITEM;

   d2rq:property ridw:RIDW_VW_EXECUTION_WORKITEM_CURRENT_RESULT_ID;

   d2rq:refersToClassMap map:RIDW_VW_EXECUTION_RESULT;

   d2rq:join "RIDW.VW_EXECUTION_WORKITEM.CURRENT_RESULT_ID => RIDW.VW_EXECUTION_RESULT.EXECUTION_RESULT_ID";

   d2rq:propertyDefinitionLabel "Current Result";

   .



Once you refresh the metamodel,  you'll have a new 'Current Result' link type option when building a traceability report.


0 votes

Comments

Sorry for the formatting, but hopefully this makes sense! 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,020
× 1

Question asked: Jun 19 '19, 9:35 a.m.

Question was seen: 1,828 times

Last updated: Jun 19 '19, 9:58 a.m.

Confirmation Cancel Confirm