FileUpload

You use the FileUpload keyword to attach and upload (import) a file.

Signature

The FileUpload keyword supports the following signature:

FileUpload(AppletRN|FieldRN(or)ButtonRN, FileName , ButtonRN/NULL)

Note the following about the FileUpload keyword signature:

  • To upload a file, the file must be placed in the FileUpload folder at the TestHarness location.

  • The Exefiles folder must be copied from the TestHarness before execution.

Desktop Examples

The following table describes how to use the FileUpload keyword to upload a file to the FileUpload folder in desktop applications.

Target Object Inputs Closing Action Comments

SWE Import Applet|file

InputFileSales.txt

NULL

Uploads the Sales.txt file to the FileUpload folder.

UCM List Import Jobs Form Applet - Job Details|FileName

output.csv

NULL

Uploads the output.csv file to the FileUpload folder.

Mobile Examples

FileUpload Attachment List Applet - Mobile|New File IMG_002.PNG;IPH2;IPH3 NULL