1 Reply Latest reply on Oct 24, 2013 4:54 AM by Flavio Bonacordi

    Custom timers in TMART workbench.

    Gunjan Arora

      Hi,

       

      Can we include custom timers in TMART workbench script?

       

       

      Regards,

      Gunjan Arora

        • 1. Re: Custom timers in TMART workbench.
          Flavio Bonacordi

          Hi Gunjan,

           

          For sure you can include custom timers...

           

          You can do that at the time you are recording the script and clicking on the clock button (do not forget to "start" and "strop" your clock)

           

          start-stop.jpg

          Or you can directly add into the code the following

           

          MeasureStart(<CustomCounterName>);

          MeasureStop(<CustomCounterName>);

           

          See the BDL code example below:

           

          dcltrans
            transaction TMain
            var
            fValue : float;
            nTime : number;
            begin
             MeasureStart("TimeMeasure");
             wait 1.0;
            MeasurePause("TimeMeasure");
             wait 2.0;
            MeasureResume("TimeMeasure");
             wait 3.0;
            nTime := MeasureStop("TimeMeasure");
            MeasureGet("TimeMeasure", MEASURE_TIMER_RESPONSETIME, MEASURE_KIND_SUM, fValue);
             write("time = "); write(nTime); writeln;
             write("value = "); write(fValue); writeln;
            end TMain;
          
          


          There is also a lot of functions related to CustomMeasures... MeasureSet, MeasureGet and others. With that you can have total control about the custom measures in your script.

           

          I hope you got your answer!

           

          PS: Save this link Benchmark Description Language (BDL) Reference. It is very very very usefull to me:

          http://documentation.microfocus.com/help/index.jsp?topic=%2Fcom.microfocus.silkperformer.doc%2FSILKPERF-75549F52-INTRODUCTION-CON.html