Getting started with QTP – Hello World

QTP uses VBScript as its programming language. Therefore a Hello World example can be given in pure VBScript:

MsgBox "Hello World!"

Executing this script (by pressing F5 or clicking the Play button on the taskbar) will produce a message box with the text "Hello World!" in it.

if you want to reproduce, please indicate the source:
Getting started with QTP – Hello World - CodeDay