Creating a test plan from a PTU to generate an HTML report

You can generate a test plan report from a PTU test script that you create but do not run. You can directly run the test plan to generate a test plan report in an HTML format.

About this task

If you need to write a test plan before starting unit tests, you can use the PTU test script structure to generate a test plan.

Procedure

  1. Write a simple PTU test script that contains the following elements:
    • SERVICE instructions with the TYPE_SERVICE instructions
    • TEST instructions with the FAMILY instructions
    • Optional: COMMENT instructions that are relative to the services and/or the test cases
    • Optional: REQUIREMENT instructions that are linked to the services and/or test cases
    Note: You can create a customized test plan report by using a template that is delivered with HCL OneTest Embedded Studio. See Generating a test plan report from a customized template.
  2. Proceed as follows to generate the test plan:
    1. Right-click the root node of the project in the Project window.
    2. Select the menu Generate Test Plan.
    Note: Another way to generate the test plan is by using a command line interface tool. See Test Plan HTML report generator.
  3. Proceed as follows to open the test plan:
    1. Right-click the root of the project in the Project window
    2. Select the View Report > Test Plan menu.
      The test plan report opens in a web browser in an HTML format. It contains the list of services associated with their comments and requirements, and all the test cases associated with to their comments and requirements.