Multiple choice technology testing

The ___________Method -Imports a sheet of a specified file to a specified sheet in the run-time Data Table.

  1. Import Table

  2. SheetImport

  3. ImportSheet

  4. ImportDataTable

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

The ImportSheet method in QTP's DataTable object imports a sheet from an external Excel file into the runtime Data Table. The syntax is DataTable.ImportSheet(filename, sheetSource, sheetDest). ImportTable and SheetImport are not valid methods.

AI explanation

In QTP/UFT, the DataTable object's ImportSheet method imports a sheet from an external Excel file into a specified sheet of the run-time Data Table, letting you pull external test data into your test's data table during execution. 'Import Table' and 'SheetImport' are just reworded/reordered versions of the real method name and aren't actual DataTable methods, and 'ImportDataTable' doesn't exist as a method — the actual API method name is precisely 'ImportSheet'.