Export method

Relevant for: API testing only

Description

Exports the specified Excel data source from your test to an external file.

Back to top

Class

DataSource

Syntax

ExcelFileExportInputArgs <name> = new ExcelFileImportInputArgs(@"<path to data source>");
GetDataSource("<data source name>").Export (name);

Note: You must cast the data source in the first line of the syntax in order to use the Export method. If you do not want to cast the data source, use the ExportToExcelFile method.

Back to top

Parameters

Parameter Description
Name Name assigned to the data source.
Path to data source The Windows path to the file for the data source.

Back to top

Return Type

An Excel file with the specified data in the specified directory.

Back to top

Example

ExcelFileExportInputArgs a = new ExcelFileExportInputArgs(@"C:\Users\brojerem\Documents\UFT One\API Test Resources\File.xls");
    GetDataSource("ConcatenateStrings!Sheet1").Export(a);

Back to top