To create, initialize, and assign a value to a test variable:
Visible in: Select This test only to restrict data to the current test only. Even if another test has a variable with the same name, that variable will not change. Select All tests for this user to share the value of this variable when the test runs in a schedule. For the variable to be shared, both tests must have a variable with the same name and must have this option enabled.
Check Value: Select When first used to check whether or not a variable is initialized only after the test execution reaches the first request that uses a variable. Select At test start to check whether or not a variable is initialized when starting the execution of the test. If the variable is not initialized, then an error message is displayed, depending on the behavior set.
If not initialized, set to: Select Text to initialize the variable to a specific value whenever the test runs in the schedule. Select Datapool value and, in the Select Data Source window, select the datapool that will initialize the variable.
Run-time error if variable not initialized: Select the action for the run when it encounters an uninitialized test variable. If you select Issue test log warning or Issue test log error, verify that the Test log page in the schedule sets errors, failures, and warnings to All, which is the default setting. If you select Exit the test, the schedule continues to run although the virtual users that have the uninitialized variable stop. If you select Do nothing, the test continues to run.