Multiple choice technology testing

What is/are the command/commands used to invoke other application from QTP

  1. Run

  2. Invoke Application

  3. SytemUtil.Run

  4. Both 1 & 2

  5. Both 2 & 3

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

In QuickTest Professional (QTP/UFT), there are two main methods to invoke external applications: 'InvokeApplication' method and 'SystemUtil.Run' method. Both can launch other applications during test execution. Option E correctly identifies that both methods 2 (Invoke Application) and 3 (SystemUtil.Run) are valid commands. The 'Run' option A is not a complete or correct QTP command for this purpose.

AI explanation

In QTP/UFT, applications can be invoked in two distinct ways relevant here: via the tool's built-in "Application Invoking" / "Invoke Application" feature (configured in Record and Run Settings so QTP launches the AUT before recording/running), and via the scripting command SystemUtil.Run, which programmatically launches an executable from within a test script. 'Run' alone is too generic/not a specific QTP command, and 'Invoke Application' alone omits the equally valid scripting approach. Since both mechanisms are legitimately used to invoke applications, 'Both 2 & 3' is the correct combined answer.