PDA

View Full Version : page break at every test cases


testlog
10-09-2008, 08:24 AM
i need HTML expert to help me modified the templates
to make the html report looks tiny.
a page break at every new heading of test cases.
i did some research for page break code
<style>
.break { page-break-before: always; }
</style>
<body>
content on page 1...
<h1 class="break">text of Heading 1 on page 2</h1>
content on page 2...
<h1 class="break">text of Heading 1 on page 3</h1>
content on page 3...
<p class="break">content on top of page 4</p>
content on page 4...
</body>but where should i put this into, whcih templates?ProjectTemplate.html?or PrjTestCaseEdit.html?

testlog
10-09-2008, 08:40 AM
or i could add something at style.css under templates folder?
please help

TimR
10-09-2008, 09:48 PM
To add a page break when printing you can add "<p class=pagebreak>" where you want the page break in the template. If it is the test case report you are talking about your need to edit the TestCaseReportTemplate.html.

testlog
10-10-2008, 02:01 AM
thanks for the guidelines.