Printer FriendlyEmail Article Link

iTest: What is the difference between a Local and a Global Variable?

Environment/Versions
  • iTest
Answer
  • A Variable can be defined in the testcase.
     
  • If a variable is local, it can be called / used within the procedure where this variable is defined.
     
  • To use the variables in different procedures of the testcase, we need to make them global.
     
  • Global variables can be called / used in all the procedures of the testcase.

Product : Velocity Portfolio,Velocity iTest