TrueLog にセクションを追加して、複雑なスクリプトを、名前の付けられた小さなパーツに論理的に分割して構造化できます。
TrueLog セクションは入れ子状にすることができます。 また、名前は一意である必要は無く、複数のセクションで同じ名前を使用できます。
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");
}
サポートするメソッドの詳細については、Silk Test クライアントの API ドキュメントを参照してください。