20.7k views
3 votes
How to write a test variable and an outcome variable for science

1 Answer

1 vote

Answer:

A test variable is a user-defined, name-value pair that stores and refers to information throughout a test and between tests.

Provide a default value to the variable during declaration.

Change the value of the variable using Set Variable statement. You can use the Add and Insert menus of the Test Editor to create Set Variable statements.

Set hard-coded value or value retried from a data source, such as dataset or reference that appears before the Set statement to the variable.

If a variable is initialized at various places such as test, compound test, schedule, or user group, the product uses the following order to initialize the value of the variable when running the test. The variable set in the variable table of the compound test editor takes the highest precedence followed by others:

Compound test setting in the variable table UI

Compound test specified in a var file

User group setting in the variable table UI

User group specified in a var file

Schedule specified setting in the variable table UI

Schedule specified in a var file

Command line

Outcome variables are usually the dependent variables which are observed and measured by changing independent variables. These variables determine the effect of the cause (independent) variables when changed for different values. The dependent variables are the outcomes of the experiments determining what was caused or what changed as a result of the study.

For a simple example, the marks a student obtains in an exam is a result of the hard word measured in the number of hours put behind studying and the intelligence measured in IQ are the independent variables. The marks obtained thus represents the dependent or outcome variable. When the values of the independent variables are changed, the marks may or may not change and hence dependent variables are dependent on the independent variables while the opposite is implausible i.e., when the marks are changed, it doesn’t change the number of hours of study or the IQ of the student.

The response variable is also called as the dependent variable because it depends on the causal factor, the independent variable. Depending on the various input values of the experimental variables, the responses are recorded.

User Ketu
by
4.3k points