unload_variable

Declaration

unload_variable (name: STRING)

Description

Removes variable name from the test engine. Use this function to clean up unnecessary variables that don't need to persist globally. The script engine never deletes a variable because it can't assume that you don't want to use it again later.

You can also use this function to remove variables that you don't want stored in a profile when you call save_profile.

See Also

script functions
Script Engine

Example

script looper is
  i := 0
  while i < total_items loop
    -- do some processing
  end
  unload_variable ('i')
end