Skip to main content

Command: Comment Out/Uncomment

Symbol: _tm_icon_comment_uncomment.png

Function: The command comments out the selected test elements or uncomments them. The Test Manager does not execute commented-out test elements.

Call: Context menu of the test element in the test script editor

Requirement: One or more test elements are selected in the test script tree. The parent test element is not commented out.

Important

  • The Test Manager skips commented-out test elements in every test run, including with the Execute Script command and in test runs via the command line.

  • The Test Manager saves the commenting directly in the test script.

If you comment out a test element, then the Test Manager also comments out all subordinate test elements. By default, commented-out test elements are displayed in green italics. To uncomment, select the command again.

If the executed test script contains commented-out test elements, then the test report shows the message This report belongs to a test script, which contains commented out elements!. In the test report, commented-out test elements have the suffix Commented Out.

For more information, see the following: Execute Script, Debug Script