仅在XSLT中显示最新的测试运行?

时间:2013-10-23 20:30:57

标签: xslt report

我的报告目前正在显示每个运行的测试。我想更改报告格式,以便只显示每个测试用例的最新运行。例如,测试用例运行两次,我只想在报告上运行最新版本。它应该在将来运行新测试用例时起作用。在XSLT中可以使用什么来进行更改?代码是什么样的,或者我在XSLT中使用什么样的函数?如果您需要更多信息,请与我们联系。非常感谢。

我的XML代码:

   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
    <Report>
    <Title>Test Run Summary - Last Run Only Report</Title> 
    <ProjectData>
    <Project>
    <ProjectId>71</ProjectId> 
    <ProjectGroupId>13</ProjectGroupId> 
    <Name>Master Project - Marketing</Name> 
    <Description xml:space="preserve"></Description> 
    <CreationDate>2012-06-20T21:40:58.187-05:00</CreationDate> 
    <ActiveYn>Y</ActiveYn> 
    <WorkingHours>8</WorkingHours> 
    <WorkingDays>5</WorkingDays> 
    <NonWorkingHours>0</NonWorkingHours> 
    <TimeTrackIncidentsYn>Y</TimeTrackIncidentsYn> 
    <TimeTrackTasksYn>Y</TimeTrackTasksYn> 
    <EffortIncidentsYn>Y</EffortIncidentsYn> 
    <EffortTasksYn>Y</EffortTasksYn> 
    <TasksAutoCreateYn>Y</TasksAutoCreateYn> 
    <ProjectGroupName>Siebel Projects Group</ProjectGroupName> 
    </Project>
    </ProjectData>
  <TestRunData>
  <TestRun>
  <TestRunId>8377</TestRunId> 
  <Name>TS09 Verify system should allow for bottom/detail level campaigns to be tied 1:1 to offers-All Campaigns View</Name> 
  <Description>Pre-requisites1. The Catalog Manager user should have been setup and is active in Siebel 2. Campaigns should be available3. Divisions should be available in Division pick applet4. Offer should be available</Description> 
  <TestCaseId>3736</TestCaseId> 
  <TestRunTypeId>1</TestRunTypeId> 
  <TesterId>156</TesterId> 
  <ExecutionStatusId>2</ExecutionStatusId> 
  <ReleaseId>223</ReleaseId> 
  <ActualDuration>0</ActualDuration> 
  <StartDate>2013-07-22T11:50:30.77-05:00</StartDate> 
  <EndDate>2013-07-22T11:50:56.687-05:00</EndDate> 
  <AttachmentsYn>N</AttachmentsYn> 
  <TestRunTypeName>Manual</TestRunTypeName> 
  <TesterName>Jagdish Thakur</TesterName> 
  <ExecutionStatusName>Passed</ExecutionStatusName> 
  <ReleaseName>Master Release - Siebel Marketing</ReleaseName> 
  <ReleaseVersionNumber>1.0.0.0</ReleaseVersionNumber> 
  <PROJECT_ID>71</PROJECT_ID> 
  <CustomProperties /> 
  </TestRun>
  <TestRun>
  <TestRunId>8390</TestRunId> 
  <Name>TS11 Verify system should allow for bottom/detail level campaigns to be tied 1:1 to offers-All Campaigns Across Organizations View</Name> 
  <Description>Pre-requisites1. The Catalog Manager user should have been setup and is active in Siebel 2. Campaigns should be available3. Divisions should be available in Division pick applet4. Offer should be available</Description> 
  <TestCaseId>3738</TestCaseId> 
  <TestRunTypeId>1</TestRunTypeId> 
  <TesterId>156</TesterId> 
  <ExecutionStatusId>2</ExecutionStatusId> 
  <ReleaseId>223</ReleaseId> 
  <ActualDuration>0</ActualDuration> 
  <StartDate>2013-07-22T11:53:49.52-05:00</StartDate> 
  <EndDate>2013-07-22T11:54:22.043-05:00</EndDate> 
  <AttachmentsYn>N</AttachmentsYn> 
  <TestRunTypeName>Manual</TestRunTypeName> 
  <TesterName>Jagdish Thakur</TesterName> 
  <ExecutionStatusName>Passed</ExecutionStatusName> 
  <ReleaseName>Master Release - Siebel Marketing</ReleaseName> 
  <ReleaseVersionNumber>1.0.0.0</ReleaseVersionNumber> 
  <PROJECT_ID>71</PROJECT_ID> 
  <CustomProperties /> 
  </TestRun>
  <TestRun>
  <TestRunId>8405</TestRunId> 
  <Name>TS08 Verify system should allow for bottom/detail level campaigns to be tied 1:1 to offers-My Campaigns view</Name> 
  <Description>Pre-requisites1. The Catalog Manager user should have been setup and is active in Siebel 2. Campaigns should be available3. Divisions should be available in Division pick applet4. Offer should be available</Description> 
  <TestCaseId>3735</TestCaseId> 
  <TestRunTypeId>1</TestRunTypeId> 
  <TesterId>156</TesterId> 
  <ExecutionStatusId>2</ExecutionStatusId> 
  <ReleaseId>223</ReleaseId> 
  <TestSetId>382</TestSetId> 
  <TestSetTestCaseId>3342</TestSetTestCaseId> 
  <ActualDuration>0</ActualDuration> 
  <StartDate>2013-07-22T12:44:31.53-05:00</StartDate> 
  <EndDate>2013-07-22T12:44:49.297-05:00</EndDate> 
  <AttachmentsYn>N</AttachmentsYn> 
  <TestRunTypeName>Manual</TestRunTypeName> 
  <TesterName>Jagdish Thakur</TesterName> 
  <ExecutionStatusName>Passed</ExecutionStatusName> 
  <ReleaseName>Master Release - Siebel Marketing</ReleaseName> 
  <ReleaseVersionNumber>1.0.0.0</ReleaseVersionNumber> 
  <TestSetName>Campaign Promotion</TestSetName> 
  <PROJECT_ID>71</PROJECT_ID> 
  <CustomProperties /> 
  </TestRun>
  <TestRun>
  <TestRunId>8406</TestRunId> 
  <Name>TS09 Verify system should allow for bottom/detail level campaigns to be tied 1:1 to offers-All Campaigns View</Name> 
  <Description>Pre-requisites1. The Catalog Manager user should have been setup and is active in Siebel 2. Campaigns should be available3. Divisions should be available in Division pick applet4. Offer should be available</Description> 
  <TestCaseId>3736</TestCaseId> 
  <TestRunTypeId>1</TestRunTypeId> 
  <TesterId>156</TesterId> 
  <ExecutionStatusId>2</ExecutionStatusId> 
  <ReleaseId>223</ReleaseId> 
  <TestSetId>382</TestSetId> 
  <TestSetTestCaseId>3343</TestSetTestCaseId> 
  <ActualDuration>0</ActualDuration> 
  <StartDate>2013-07-22T12:45:31.293-05:00</StartDate> 
  <EndDate>2013-07-22T12:45:59.473-05:00</EndDate> 
  <AttachmentsYn>N</AttachmentsYn> 
  <TestRunTypeName>Manual</TestRunTypeName> 
  <TesterName>Jagdish Thakur</TesterName> 
  <ExecutionStatusName>Passed</ExecutionStatusName> 
  <ReleaseName>Master Release - Siebel Marketing</ReleaseName> 
  <ReleaseVersionNumber>1.0.0.0</ReleaseVersionNumber> 
  <TestSetName>Campaign Promotion</TestSetName> 
  <PROJECT_ID>71</PROJECT_ID> 
  <CustomProperties /> 
  </TestRun>
  <TestRun>
  <TestRunId>8408</TestRunId> 
  <Name>TS10 Verify system should allow for bottom/detail level campaigns to be tied 1:1 to offers-My Group's Campaigns View</Name> 
  <Description>Pre-requisites1. The Catalog Manager user should have been setup and is active in Siebel 2. Campaigns should be available3. Divisions should be available in Division pick applet4. Offer should be available</Description> 
  <TestCaseId>3737</TestCaseId> 
  <TestRunTypeId>1</TestRunTypeId> 
  <TesterId>156</TesterId> 
  <ExecutionStatusId>2</ExecutionStatusId> 
  <ReleaseId>223</ReleaseId> 
  <TestSetId>382</TestSetId> 
  <TestSetTestCaseId>3344</TestSetTestCaseId> 
  <ActualDuration>0</ActualDuration> 
  <StartDate>2013-07-22T12:46:30.26-05:00</StartDate> 
  <EndDate>2013-07-22T12:46:59.343-05:00</EndDate> 
  <AttachmentsYn>N</AttachmentsYn> 
  <TestRunTypeName>Manual</TestRunTypeName> 
  <TesterName>Jagdish Thakur</TesterName> 
  <ExecutionStatusName>Passed</ExecutionStatusName> 
  <ReleaseName>Master Release - Siebel Marketing</ReleaseName> 
  <ReleaseVersionNumber>1.0.0.0</ReleaseVersionNumber> 
  <TestSetName>Campaign Promotion</TestSetName> 
  <PROJECT_ID>71</PROJECT_ID> 
  <CustomProperties /> 
  </TestRun>
  <TestRun>
  <TestRunId>8409</TestRunId> 
  <Name>TS11 Verify system should allow for bottom/detail level campaigns to be tied 1:1 to offers-All Campaigns Across Organizations View</Name> 
  <Description>Pre-requisites1. The Catalog Manager user should have been setup and is active in Siebel 2. Campaigns should be available3. Divisions should be available in Division pick applet4. Offer should be available</Description> 
  <TestCaseId>3738</TestCaseId> 
  <TestRunTypeId>1</TestRunTypeId> 
  <TesterId>156</TesterId> 
  <ExecutionStatusId>2</ExecutionStatusId> 
  <ReleaseId>223</ReleaseId> 
  <TestSetId>382</TestSetId> 
  <TestSetTestCaseId>3345</TestSetTestCaseId> 
  <ActualDuration>0</ActualDuration> 
  <StartDate>2013-07-22T12:47:57.73-05:00</StartDate> 
  <EndDate>2013-07-22T12:48:47.617-05:00</EndDate> 
  <AttachmentsYn>N</AttachmentsYn> 
  <TestRunTypeName>Manual</TestRunTypeName> 
  <TesterName>Jagdish Thakur</TesterName> 
  <ExecutionStatusName>Passed</ExecutionStatusName> 
  <ReleaseName>Master Release - Siebel Marketing</ReleaseName> 
  <ReleaseVersionNumber>1.0.0.0</ReleaseVersionNumber> 
  <TestSetName>Campaign Promotion</TestSetName> 
  <PROJECT_ID>71</PROJECT_ID> 
  <CustomProperties /> 
  </TestRun>
  </TestRunData>
  </Report>

0 个答案:

没有答案