beautypg.com

Working with variables, Variable concepts, Benefits of using variables – MTS TW Elite User Manual

Page 69

background image

Note:

If the test definition is changed during test design (for example, variables, resources, and workflows
are edited), any changes made will not be applied to existing pre-allocated test runs. In this case,
the test designer must delete the existing pre-allocated test runs and pre-allocate new test runs.

Working With Variables

Variable Concepts

A variable is a place with a name in which you can store one or more values. Variable types and examples
used in the test include:

Simple variables (also referred to as scalar variables) store either a value or a string.

Array variables store an array, which is an ordered collection of numbers or strings. You can refer to
individual values in an array by specifying an index.

Calculated variables are variables (simple or array) that include a mathematical expression.

Adding and editing variables

You can add or edit variables from within the various variable editing windows and editors (such as the
Map Variables window or the Calculation Editor). You can click the Add Variable (green plus sign) or Edit
Variable (...) icon or right-click and select New Variable. To edit a variable, right-click on a variable name
and select Edit Variable.

Benefits of Using Variables

Recommended

Variables are central to the utility of MTS TestSuite applications. It is good practice to use variables in tests
whenever possible.

Variables allow information to be shared between different areas of the test.

Variables allow you to define test input values from a central location.

Variables allow you to apply calculations to values and show them in charts and graphs.

Common use cases for variables

The following common use cases illustrate the use of variables in test design:

Create a rate variable, then add an operator entry activity to the workflow in which the operator enters
a rate value during the test, and use this variable value in the command activity to control rate.

Create a variable for the area of specimen, and use that variable when calculating stress from load.

Acquire data mapped to variables from which modulus is calculated, then include modulus on a report.

Place a marker at the yield point on the graph on the Review tab, and use the marker variable in a
report.

MTS TestSuite | 69

Design Guidelines