在peopletools里面测试文件上传

Using the PeopleTools Test Utilities Page

Select selectPeopleTools, then selectUtilities, then selectDebug, then selectPeopleTools Test Utilities to access the PeopleTools Test Utilities page:

Image: PeopleTools Test Utilities

This example illustrates the fields and controls on the PeopleTools Test Utilities. You can find definitions for the fields and controls later on this page.

PeopleTools Test Utilities
Remote Call Test

You use the Remote Call Test button to test the Remote Call configuration.

Interlink Test

Used to test Business Interlinks. (Business Interlinks is a deprecated product).

PeopleCode/Java Test

The Derived Class File button tests Java-PeopleCode integration. It tests to see that Java is being executed correctly through PeopleCode.

The External Class File button tests Java PeopleCode integration.

File Attachment Test

This enables you to test the file attachment PeopleCode functions with your file storage location. Enter the full path and password for the test file or a URL identifier (URL.URL_ID). For example:

ftp://user01:password@ftpserver.oracle.com/myfiles

or

URL.FILEDB

Click Attach to attach the file. Once the file is attached, you can View, Detach, and Delete the file.

The file attachment PeopleCode functions and their usage within PeopleSoft applications are documented in detail in the PeopleCode Developer's Guide.

When testing file attachment features, keep these usage stipulations in mind:

  • Using a URL Identifier is mandatory only for FTPS, SFTP, HTTP, and HTTPS attachment protocols.

  • FTP, Record, and File attachment protocols, can use the URL Identifier, or they can be specified as a plain string.

Note: The File Attachment Test does not allow .JSP files to be uploaded or downloaded.

Note: PeopleTools supports uploading, downloading, and deleting empty file attachments. An empty file refers to a file that exists, but has a size of zero bytes.

Note: The File Attachment Test utility enables only a single file to be uploaded at a time, because the underlying PeopleCode function is AddAttachment. PeopleTools supports uploading multiple files at a time by using the MAddAttachment PeopleCode function.

Note: For the file attachment functionality, in specifying the URL for the FTP server, the FTP server's machine name can be more than 30 characters. The length of the full URL is limited to 120 characters.

See PeopleTools 8.52: PeopleCode Developer's Guide

See URL Maintenance.

Example: File Attachment Test

The following shows the process of the file attachment test:

  1. Enter a string URL or a URLID defined in the URL Maintenance utility, and click Attach.

    Image: File Attachment Test example: Entering URL ID

    This example illustrates the fields and controls on the File Attachment Test example: Entering URL ID. You can find definitions for the fields and controls later on this page.

    File Attachment Test example: Entering URL ID
  2. Browse to the location of the file to attach, and click Upload

    Image: File Attachment dialog box

    This example illustrates the fields and controls on the File Attachment dialog box. You can find definitions for the fields and controls later on this page.

    File Attachment dialog box
  3. Confirm that the file has been stored in the appropriate repository (attached).

    Image: File Attachment Test: Confirming file attachment

    This example illustrates the fields and controls on the File Attachment Test: Confirming file attachment. You can find definitions for the fields and controls later on this page.

    File Attachment Test: Confirming file attachment

    Note: Once the file has been uploaded, you can View, Delete, or Detach the file.

posted @ 2013-10-24 14:46  Bryan chen  阅读(479)  评论(0编辑  收藏  举报