You can add sections to TrueLogs to add structure to complex scripts and to logically divide scripts into smaller named parts.
TrueLog sections can be nested and the same name can be used for multiple sections, which means the names do not have to be unique.
openTrueLogSection("section_name")
closeCurrentTrueLogSection()
@Test public void subSections() { Desktop desktop = new Desktop(); desktop.openTrueLogSection("Section a"); desktop.logInfo("In section a"); desktop.openTrueLogSection("Section b"); desktop.logInfo("In section b"); desktop.closeCurrentTrueLogSection(); desktop.logInfo("In section a again"); }
For additional information on the supported methods, refer to the API documentation of your Silk Test client.