setTestVariable method

void setTestVariable({
  1. required dynamic value,
  2. required String variableName,
})

Sets the variable with the variableName to the value to be accessible by the currently running test.

To set a variable so that it is accessible by all tests, use setGlobalVariable.

Implementation

void setTestVariable({
  required dynamic value,
  required String variableName,
}) =>
    _testVariables[variableName] = value;