Issue with TestExecution Level Defect Count in X-ray Document Generator Custom Template

Prashant.Mahajan September 1, 2022

Hi All,

As per my project requirement need to create test execution report though X-ray Test Management. For the same i have generated customize document template using document generator. It give me all the test execution component level detail Except list of total defects associated against each test executions component. To get this defect list i have wrote following customize code.

  • Test Execution - ${Key} - Defects List

#{if (%{${TestRunsCount}===0})}

None

#{end}

#{if(%{${TestRunsCount}>0})}

#{for i=TestExecution[n].TestRunsCount}

${TestExecution[n].TestRuns[i].ExecutionDefects}

Link:{@title=${TestExecution[n].TestRuns[i].ExecutionDefects[e].Key}|href=${BaseURL}/browse/${TestExecution[n].TestRuns[i].ExecutionDefects[e].Key}}

Summary:${TestExecution[n].TestRuns[i].ExecutionDefects[e].Summary}

Status:${TestExecution[n].TestRuns[i].ExecutionDefects[e].Status}

#{end}

#{end}

This was not return any result, Please anyone help me out to correct this code ?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events