1

I can specify a think time for my visual studio 2012 load test. But is it possible, to give the think time a factor like: 40*{{factor}}

If factor = 2, my think time is 80s

Mine W
  • 55
  • 4

1 Answers1

1

I am not sure if this will work, but you can give it a try.

  1. Create a LoadTest plugin and in the Initialize method set the DelayBetweenIterations value you want:

    public class Plugin : ILoadTestPlugin
    {
        private Microsoft.VisualStudio.TestTools.LoadTesting.LoadTest _mLoadTest;
    
        public void Initialize(Microsoft.VisualStudio.TestTools.LoadTesting.LoadTest loadTest)
        {
            _mLoadTest.Scenarios[0].DelayBetweenIterations = 40 * factor;
        }
    }
    
  2. Add your plugin to your load test by right click to the load test --> Add Load Test PlugIn...

chaliasos
  • 9,659
  • 7
  • 50
  • 87
  • Please clarify what do you mean after each request. Edit your question and add the structure of your LoadTest. Are those request different tests inside the same load test scenario? – chaliasos Jan 17 '13 at 07:47