Inserting comments into a functional test script
During recording or editing, you can insert lines of comment text into a Functional Test script. Comments are helpful for documenting and editing scripts.
About this task
To insert a comment into a script during recording or editing:
Procedure
- If recording, click the Insert Script Support Commands button on the Recording Monitor toolbar.
- If editing:
- Position the pointer in the script where you want to insert the comment.
- On the product toolbar, click the Insert Recording into Active Functional Test Script button .
- On the Recording Monitor toolbar, click the Insert Script Support Commands button .
- In the Script Support Functions dialog box, click the Comment tab.
- In the Comment to add to the script field, type the comment. HCL OneTest™ UI does not automatically wrap the text. Put returns after each line.
- Click Insert Code.
HCL OneTest™ UI inserts the text with the appropriate comment delimiter (//) preceding each line.