File

The File step type corresponds to the object in the Peoplesoft Internet Architecture that enables users to upload and download files to/from the PeopleSoft application.

These are the actions associated with the File step type.

Description

Used to download a file.

The File.Download step needs to be preceded by the appropriate click (such as Image.Click, Link.Click, or Button.Click). In the Value column specify a full file path name.

Select the File Download Prompt check box in the Settings dialog box to be prompted for a file download path when recording the test.

To set the file download prompt check box:

  1. Click the Show Test Recorder icon.

  2. Click the Configure recording settings icon.

  3. Select File Download Prompt check box and click OK.

  4. Record your test and you will be prompted for the file download path when you record a download step.

Example

The following examples show the use of File.Download.

This example illustrates the Download action for downloading a Query to Excel

Type

Action

Recognition

Parameters

Value

Link

Click

Name=QRYRUNEXCEL$0

File

Download

C:\TEMP\EXCEL_TEST.XLS

This example illustrates the Download action from a button.

Type

Action

Recognition

Parameters

Value

Button

Click

Name=FILE_ATTACH_WRK_ATTACHDET

File

Download

C:\TEMP\TEXT1.TXT

Description

Uploads a file from an HTML file object.

In the Recognition column specify the name of the HTML file object. In the Value column specify a full file path name.

Example

This example shows the use of the Upload action:

Type

Action

Recognition

Parameters

Value

File

Upload

name=#OrigFileName

C:\TEMP\MyFile.TXT

Description

Uploads a file from an HTML link object.

In the Recognition column specify the name of the HTML link object. In the Value column specify a full file path name.