How can I reach the test case item via the XSLT template?

Liraz Malka 1 Reputation point
2022-08-29T13:38:58.183+00:00

I tried to write this code to reach the fields under the summary tab in test case, but they are not available.
does anyone know how it can be reached?
I have Purpose field, Inputs, Setup etc..

<xsl:for-each select="//testCase">
<div class="avoid-page-break">
<div class="sub-tab" _locID="Summary">
Test Case<br/>
<xsl:value-of select="@setup"/>
</div>
<table border="5px" style="solid" color="black">
<tr>
<th width="20%" _locID="Purpose">
Purpose
</th>
</tr>
</table>

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,882 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Liraz Malka 1 Reputation point
    2022-08-30T05:33:34.617+00:00

    Hi,

    I posted the code, I am looking to reach the inner attributes of the test case in Azure DevOps, the language is what the Azure is providing as template XSL/XSLT format.

    <xsl:for-each select="//testCase">
    <div class="avoid-page-break">
    <div class="sub-tab" _locID="Summary">
    Test Case<br/>
    <xsl:value-of select="@setup"/>
    </div>
    <table border="5px" style="solid" color="black">
    <tr>
    <th width="20%" _locID="Purpose">
    Purpose
    </th>
    </tr>
    </table>