Multiple choice technology testing

What command you use to open Notepad application using QTP scripting?

  1. SystemUtil.Run "Notepad.exe"

  2. RunUtil.Notepad.exe

  3. Run.Application "Notepad.exe"

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In QTP/UFT scripting, the SystemUtil object provides the Run method to launch external applications. The correct syntax is SystemUtil.Run "Notepad.exe" which opens the Windows Notepad application. Option B is nonsensical syntax, and Option C incorrectly references a Run object that doesn't exist in QTP.