New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Lieutenant Commander
Lieutenant Commander
134 views

Defects linked to RUN than Test case

Jump to solution

Hello ,

I am trying to get extract of defects linked to the test cases.

However, when the testers log a defect directly by failing the test step and so the defect is linked to RUN as an indirect entity, which is making it difficult to fetch the defects.

Can someone please help me writing the query to fetch the defects and test case ID, where the defect is an indirect defect.. i.e. Link Entity Type = "STEP"

 

Also, can someone help me in logging a defect directly as a direct link, i.e. Link Entity Type = "CYCLE"

0 Likes
1 Solution

Accepted Solutions
Highlighted
Lieutenant Commander
Lieutenant Commander

Hey... 

I got the query for the same.

 

SELECT b.BG_Bug_ID, B.BG_Status, t.Ts_Name
FROM LINK L, step S, RUN R, Test T, bug b
where l.ln_entity_type = 'STEP'
and l.ln_entity_id = s.st_id
and S.ST_run_ID = R.RN_run_ID
and r.RN_Test_ID = T.TS_Test_ID
and l.ln_bug_id = b.bg_bug_ID
and b.bg_project = 'Sample'

 

However, i am still looking for the answer regarding Defect tagged to "CYCL"

View solution in original post

0 Likes
1 Reply
Highlighted
Lieutenant Commander
Lieutenant Commander

Hey... 

I got the query for the same.

 

SELECT b.BG_Bug_ID, B.BG_Status, t.Ts_Name
FROM LINK L, step S, RUN R, Test T, bug b
where l.ln_entity_type = 'STEP'
and l.ln_entity_id = s.st_id
and S.ST_run_ID = R.RN_run_ID
and r.RN_Test_ID = T.TS_Test_ID
and l.ln_bug_id = b.bg_bug_ID
and b.bg_project = 'Sample'

 

However, i am still looking for the answer regarding Defect tagged to "CYCL"

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.