c# - How can I pass a list of values as a parameter to a Visual Studio web performance test or load test plugin? -
want pass list of values parameter visual studio web performance test or load test plugin?
pages such http://msdn.microsoft.com/en-us/library/ms243191(v=vs.110).aspx explain basics of how create plugin , have several simple plugins. there little details on how specify properties (ie parameters) plugin. examples 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 simple string")] [system.componentmodel.defaultvalue("the default value")] public string mysimplestring { get; set; } the type int or bool string. array (or list or collection) of strings.
when test mix property of load test viewed, shown (collection) , when selected ellipsis appears. clicking ellipsis opens editor list of tests. similar useful.
sadly, plugin property values indeed limited bool, string , numeric types. restriction hard-coded within microsoft.visualstudio.qualitytools.webtestframework assembly. there no way support other types (well, one exception) or enhanced editor features such in test mix collection example.
if want property accept list of strings, example, option have property of type string, , parse string list splitting on delimiter. disappointing, true.
Comments
Post a Comment