以下のコードを使用して、カスタム・カウンターを追加できます。テストを実行した後、レポート上の結果のカスタム・カウンターを、カスタム・カウンターを表示する場所にドラッグしてください。
IStatisticsManager sm = tes.getStatisticsManager(); IStatTree st = sm.getStatTree(); IScalar myCounter = (IScalar) st.getStat("mystatcounter", StatType.SCALAR); myCounter.increment();