Parameter files
We can use parameters to provide values that a test case should use as it executes.
At runtime, that test case can use parameter values from serveral sources: testbeds, session profiles, and the parameters that you configured on test test case uses the parameters defined parameter definitions in the referenced files are included.
You can define parameters and their values in several places in Spirent iTest. One powerful way to cause Spirent iTest to use a particular set of parameter definitions when executing any test case is to create a parameter file.
Advanced merging behavior for parameters
Parameter files are often used to parameterize the overall operation of a test case. A parameter file is a collection of parameter definitions. In addition, a parameter file can include one or more other parameter files (the parameter definitions in the included files are added to the local definitions). Parameter files contain XML with virtually any schema and use the .ffpt filename extension.
Global parameter file
You can specify that a particular parameter file is the Global parameter file. The only parameter file that is automatically used by test cases is the Global parameter file. The Global parameter file applies to all test cases in a workspace.
Important There is no way to specify a particular parameter file for a test case. You can, however, use iTestRT or itestcli to specify a particular parameter file (that is, not the Global parameter file) for use by a particular test case.
Value:
Multiple values for a single parameter are useful, for example, in foreach loops. To create a parameter with multiple values, do either of the following:
沒有留言:
張貼留言