You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Variables can used to parameterize text field values in tool editors (e.g., input tabs, request/response message fields, and tool configuration fields). A text field might reference environment variables, a data source column, a data bank column, or a variable defined for the current suite. 

To reference a variable in this manner, you use the ${var_name} notation: a dollar sign with the variable's name wrapped in curly braces. 

Static Variables 

Static variables represent values that remain constant during the execution of a tool. This includes:

  • Environment variables: Values that come from the environment that is currently enabled for the active suite.

  • IDE variables: Eclipse variables, such as project_loc, as well as Parasoft variables, such as

    test_suite_loc (test suite location). For example:

    ${project_loc:MyProject}/DataSource/${soa_env:CVS_DIR}/my_csv_file.csv

    ${test_suite_loc}/../${soa_env:XLS_DIR}/my_excel_file.xls

Dynamic Variables 

Dynamic variables represent values that may change during tool execution—for example, data source columns, data bank columns, and suite-level variables. Data source columns depend on the current data source row.

Additional Information

  • Some tool editors that take a file input have an option to conditionally resolve variables in the external file before the file is read from disk.
  • Some fields support only static variables—typically in cases where an editor needs to directly resolve a variable outside the context of tool execution. For example, this is the case with file path fields in Excel and CSV data source editors, WSDL/WADL/XSD fields in messaging tools, and suite fields.
  • Any data source columns referenced by a tool will cause the tool to iterate over the data source's rows.
  • No labels