Want to pass a list of values as a parameter to a Visual Studio web performance test or load test plugin?
Pages such as http://msdn.microsoft.com/en-us/library/ms243191(v=vs.110).aspx explain the basics of how to create a plugin and I have several simple plugins. But there is very little details on how to specify the properties (ie parameters) for the plugin. From examples I have found C# code such as
public class MyPlugin : WebTestPlugin
{
[System.ComponentModel.DisplayName("Simple string parameter")]
[System.ComponentModel.Category("The category")]
[System.ComponentModel.Description("Description of the simple string")]
[System.ComponentModel.DefaultValue("The default value")]
public string MySimpleString { get; set; }
The type could be int
or bool
as well as string
. But I would like an array (or list or collection) of strings.
When the Test mix property of a load test is viewed, it is shown as (collection)
and when selected an ellipsis appears. Clicking the ellipsis opens an editor for the list of tests. Something similar would be useful.