TrueLog にセクションを追加して、複雑なスクリプトを、名前の付けられた小さなパーツに論理的に分割して構造化できます。
TrueLog セクションは入れ子状にすることができます。 また、名前は一意である必要は無く、複数のセクションで同じ名前を使用できます。
openTrueLogSection("section_name")
closeCurrentTrueLogSection()
[TestMethod]
public void SubSections()
{
Agent.OpenTrueLogSection("Section a");
Agent.LogInfo("In section a");
Agent.OpenTrueLogSection("Section b");
Agent.LogInfo("In section b");
Agent.CloseCurrentTrueLogSection();
Agent.LogInfo("In section a again");
}
サポートするメソッドの詳細については、Silk Test クライアントの API ドキュメントを参照してください。