예제 #1
0
 public Task MartinTest(TestContext ctx, CancellationToken cancellationToken,
                        ConnectionTestProvider provider,
                        HttpStressTestParameters parameters,
                        HttpStressTestRunner runner)
 {
     return(runner.Run(ctx, cancellationToken));
 }
        public IEnumerable <HttpStressTestParameters> GetParameters(TestContext ctx, string filter)
        {
            if (filter != null)
            {
                throw new NotImplementedException();
            }

            var category = ctx.GetParameter <ConnectionTestCategory> ();

            if (Type != null)
            {
                yield return(HttpStressTestRunner.GetParameters(ctx, category, Type.Value));

                yield break;
            }

            foreach (var type in HttpStressTestRunner.GetStressTypes(ctx, category))
            {
                yield return(HttpStressTestRunner.GetParameters(ctx, category, type));
            }
        }