Load from File Operation

Applies to TestComplete 14.71, last modified on April 22, 2021

Description

The Load from File operation loads content from a text or binary file.

To use the loaded content in your test, use the Last Operation Result value in the subsequent operations.

Operation Result

The operation returns the content loaded from a file.

Operation Parameters

When you add the operation to your keyword test, TestComplete displays a wizard that contains the following pages:

Specify File Parameters

On this page, you specify the location and encoding of the source file.

File name

Specifies the fully-qualified name of the file.

Encoding

Specifies the data encoding used in the file. Possible values are:

  • ANSI

  • Unicode

  • UTF-8

  • Binary

Operation Parameters

On the Operation Parameters page, you can review the parameters you have created and change them if needed.

To change the operation parameter’s value, do one of the following:

  • Specify a new value in the Value column.

– or –

  • Click the ellipsis button in the corresponding cell of the Value column and edit the value in the subsequent dialog. For detailed information about possible values, see Specifying Operation Parameters.

Remarks

In your script tests, to read text or binary data from files, you can use methods of the aqFile, aqBinaryFile and aqTextFile objects.

See Also

Specifying Operation Parameters
Save to File Operation
Data Access

Highlight search results