Home > The Unit Test Framework > User's guide > Runtime configuration

Runtime configuration or what are the strings I can pull?

The UTF supports multiple parameters that affect test module execution. To set the parameter's value you can either use a runtime configuration subsystem interface from within the test module initialization function or you can specify the value at runtime during test module invocation.
UTF 提供了多個參數影響測試模塊執行。 可以使用測試模塊初始化函數中的運行時配置子系統接口或者測試模塊調用運行時設置參數的值。

The UTF provides two ways to set a parameter at runtime: by specifying a command line argument and by setting an environment variable. The command line argument always overrides the corresponding environment variable.
UTF 提供了兩種方式在運行時設置參數:命令行參數或環境變量。 命令行參數會覆蓋相應的環境變量。

During test module initialization the UTF parses the command line and excludes all parameters that belong to it and their values from the argument list. The rest of command line is forwarded to the test module initialization function supplied by you. The command line argument format expected by the UTF is:
在測試模塊初始化中,UTF 分析命令行並從參數列表中排除掉框架相關的參數和值。 其餘的命令行會傳遞到你提供的測試模塊初始化函數中。 UTF 接受的命令行參數格式如下:

--<command line argument name>=<argument_value>.

The command line argument name is case sensitive. It is required to match exactly the name in parameter specification. There should not be any spaces between '=' and either command line argument name or argument value.
命令行參數名稱是大小寫敏感的。它需要和參數指定的名稱精確匹配。 '=' 和命令行參數名稱和參數值之間沒有空格。

The corresponding environment variable name is also case sensitive and is required to exactly match the name in the parameter specification.

All information about supported parameters is summarized below in the reference section.