在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.

转载于:https://www.cnblogs.com/bryanchen/p/3386088.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值