title: How can I get the number of test iterations in a load test from within a load test plugin?
body: <p>I need to obtain the number of test iterations for a load test from within a load test plugin, where I have an instance of a <code>LoadTest</code> object. I've searched the <code>LoadTest</code> object's properties and it feels like there is a lot missing compared to the treeview editor that is normally used to configure a load test.</p>
  
  <p>I'm already defining the number of test iterations again as a Context parameter and passing that through to my web test, but this feels like a hack because I'm duplicating data.</p>
  
  <pre><code>class MyLoadTestPlugin : ILoadTestPlugin
  {
      private LoadTest loadTest;
  
      public void Initialize(LoadTest test)
      {
          loadTest = test;
  
          loadTest.TestStarting += (_, e) =&gt;
          {
              // Get # of Test Iterations in load test here,
              // "loadTest" object does not have nearly as
              // many properties as it should, compared to
              // the tree view editor.
          };
      }     
  }
  </code></pre>