0

我的报告目前正在显示运行的每个测试。我想更改报告格式,以便只显示每个测试用例的最新运行。例如,一个测试用例运行了两次,我只想要报告上最近一次运行。当将来运行新的测试用例时,它也应该可以工作。在 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>
4

0 回答 0