VBScript Comments

VBScript Comments

Purpose of Comments:

To make the code Readable or Understandable

To make the code disable from execution

Syntax:
——-
Use ‘ symbol before the statement

Use Rem command followed by space

Comment a block of statements

a) Select a block of statements
b) Use shortcut keys Ctrl + M

Uncomment
a) Select comment block
b) Use shortcut keys ctrl + Shift + M

Usage of comments in UFT Test Automation:

a) To write Test Headers

b) To write Function Headers

c) To explain complex logic

d) To explain resource usage

 

Comments