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
-
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. -
Proceed as follows to generate the test plan:
- Right-click the root node of the project in the Project window.
- 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. -
Proceed as follows to open the test plan: