•  
     
    story #23462 export test plan as a docx document
Summary
Empty
export test plan as a docx document
Empty

Test plan "Export" button has 2 options

  • The existing excel document (name to be found)
  • A docx document, like Tracker Report docx

Then the document looks like (in html)

<h1>$RELEASE_NAME</h1>

$PLATFORM_LOGO

Platform | $PLATFORM_NAME
Project | $PROJECT_NAME
Milestone | $MILESTONE_NAME (including parent if any eg Release 12.0 > Sprint 4)
Exported by | $EXPORT_AUTHOR
Exported on | $EXPORT_DATE
Milestone URL | $OVERVIEW_URL
--
<h2>Table of content</h2>
--
<h2>Traceability Matrix</h2>

<!-- The matrix pages are in landscape -->

<!--The matrix is based on **tests** it means that it will also include requirements that were tested but that are not part of -->
<!-- the release like previously delivered features (non regression) as well as non functional requirements -->

<table>
    <thead>
    <tr>
        <th>User stories</th>
        <th>Status</th>
        <th>Tests</th>
        <th>Campaign</th>
        <th>Results</th>
        <th>Executed by</th>
        <th>Executed on</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>user story title (anchor to go to artifact)</td>
        <td style="background-color: green;">Passed</td>
        <td>test one stuff</td>
        <td>Release 1.0</td>
        <td style="background-color: green;">Passed</td>
        <td>John Doe</td>
        <td>2021-10-25 10:48...</td>
    </tr>
    <tr>
        <td rowspan="2">a story with 2 tests (anchor to go to artifact)</td>
        <td rowspan="2" style="background-color: red;">Failed</td>
        <td>First test title</td>
        <td>Release 1.0</td>
        <td style="background-color: green;">Passed</td>
        <td>John Doe</td>
        <td>2021-10-25 10:48...</td>
    </tr>
    <tr>
        <td>Second test title</td>
        <td>Release 1.0</td>
        <td style="background-color: red;">Failed</td>
        <td>John Doe</td>
        <td>2021-10-25 10:48...</td>
    </tr>
    <tr>
        <td colspan="7">...</td>
    </tr>
    </tbody>
</table>
--
<h2>$RELEASE_NAME backlog</h2>

<!-- Export of backlog (stories, bugs, etc) artifacts. -->

<!-- Children of backlog elements (tasks) are not exported. -->

<!-- When a backlog element is covered by tests, tests are referenced in artifact links and there is an anchor toward the test in the document. -->

<h2>$RELEASE_NAME tests</h2>

<!-- export of [Test Case] artifacts -->

<!-- When test definition is exported, the actual result of the most recent test execution is included. Example: -->

    <h4>Steps</h4>
    <h5>Step 1</h5>

    Status: $STATUS (Passed/Failed/Blocked)

    <h6>Description</h6>
    ...
    <h6>Expected results</h6>
    ...
    <h5>Test results</h5>

    Status: $STATUS (Passed/Failed/Blocked)

    $COMMENT

<!-- When the test definition covers an artifact that is part of the backlog, there is an anchor toward the artifact in the Backlog section of the document. -->

Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#23462
Manuel Vacelet (vaceletm)
2022-01-05 10:18
2021-10-25 11:43
3686

References
Referencing story #23462

Git commit

tuleap/tuleap/stable

feat: Replace export button by a dropdown 3b58c293f4
feat: Initiate dl of document in testplan 1c38cd513c
feat: Initiate milestone backlog chapter 06c9546a40
chore: move document-properties from Table folder 9ec0ce84d3
docx: 7.1.2 -> 7.2.0 54dd4e7da1
feat: Add parent milestone title in cover page if any f1f2f404c8
chore: move image-loader in dedicated lib 90024d4f60
feat: docx is hidden behind a feature flag fa346649e7
chore: Move FormattedArtifact-to-docx in dedicated lib e27348dffb
chore: Move artifact formatting to dedicated lib 2621bd77ff
chore: Move retrieval of artifacts structure to dedicated lib cdd59154c4
feat: Start Traceability matrix section 25a31684c3
feat: Display artifacts content in test report decef6722b
feat: build traceability matrix 53e6286344
feat: add rowSpan for requirements 63e8c84d40
feat: Export requirement status in traceability matrix 2388c479fb
feat: Introduce Tests section e37dc7e15d
feat: Add anchor to requirements in traceability matrix 14e5fb90ba
chore: extract retrieval of executions 0b42c0f758
feat: artifact content in tests section 035db032f9
feat: Matrix section should be in landscape mode 5ed3f4f5fe
feat: remove feature flag 64f0afabf0
feat: Keep latest execution for matrix 969d3e511d
chore: Build of the document must be done by each app f82d11a361
chore: Introduce the function to build the Step Definition field value b01922b7d2
feat: Add last execution step status in Tests section of the document d2a3ea9ce3
feat: Do not enhance step definition field in backlog section f6b18c6985
chore: Add missing unit test for step-test-definition-generic-formatter 540ee45321
feat: colorize test results ab320db17d
feat: improve contrast for tests status d688ca9f3b
feat: Display test result status 69e926fdd0
feat: Tests execution attachments in Tests section 1bf74ad73d
feat: Test execution comment in Tests section c1212a161a
feat: Remove 1-cell table for test exec attachments 593f2f1e30
feat: when status is null, it means that it is notrun a70251dc1e
feat: apply "null => notrun" rule to DocGen a5b6a05a4a
docx: 7.2.0 -> 7.3.0 feaac9392b
feat: Add steps stats summary table db8312c85f
chore: extract buildCellContentResult 3b5577d262
feat: align matrix colors bf8df9a4d2
feat: align color status of steps ced58f021a

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes