Forum Discussion

sathish_subrama_2's avatar
sathish_subrama_2
New Contributor
12 years ago

Difference between subroutine and function in test complete

Could you please explain the Difference between subroutine and function in test complete ?
  • gid_216's avatar
    12 years ago
    Subroutine and function have same defination, throughout all tools these can't be differenciated based on tool.



    Subroutine is a piece of reusable code that doesn't return anything to caller.



    Function is a piece of reusable code that returns something to caller.