Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use the SetParameter() method to set parameters for the current instance of a Test or as the default value for subsequent test runs.
You can also use SetParameter() to find all instances of the same name for all of a target's tests. For example, you could find every parameter with the name TargetIPAddress in a large group of tests.
Here's an example of how to set a Test parameter:
Test myTest = SomeClass.GetTest();
myTest.SetParameter("TargetIpAddress", "1.2.3.4", ParameterSetAsDefault.ApplyToAllTargets);
When you use the ParameterSetAsDefault.ApplyToAllTargets() method, all tests that are associated with the current target are searched, and all parameters that have the same parameter name are set via the supplied values. This parameter setting doesn't span targets within a target family.