Section

report_section TPTReport.Section(string title)

This function generates a section inside the report. If no title is specified, the section gets the name “Section”.

Parameters:

title title of the newly created section that can be added to report

Returns:

the section report_element that can be added to report

Examples:

   # generate a section with the name "Main Part"
   TPTReport.add(TPTReport.Section("Main Part"));
  

   # generate a section with the title "Test Description"
   mysection = TPTReport.Section("Test Description");
   mysection.add(TPTReport.Paragraph("This is some text that is contained in the section"));
   TPTReport.add(mysection); # add the section (including the paragraph) to the report