locked
load CounterSetMapping at runtime? RRS feed

  • Question

  • Hello,

     

    Can I load CounterSetMapping at runtime?  

    Thanks!

     

    For example, add the configuration at runtime.

        <CounterSetMapping ComputerName="MTTest">

          <CounterSetReferences>

            <CounterSetReference CounterSetName="Application" />

            <CounterSetReference CounterSetName="Counters" />

          </CounterSetReferences>

        </CounterSetMapping>

     

    or is there a entry point that i can add my code before running load test?

     

    Wednesday, July 28, 2010 11:33 PM

Answers

  • Hi Lion,

    You can't modify / add counters after load test run is started. You'll have to stop the run and kick it off again with modified settings.

    Regarding 2nd query, Yes, you can execute your code at various points during load test run. This is achievable through Load test plugins. Please refer here for more details:  http://msdn.microsoft.com/en-us/library/ms243153(v=VS.100).aspx

    Thanks, Rubel


    http://blogs.msdn.com/rubel/
    Thursday, July 29, 2010 5:53 AM
    Moderator