Java 기반 애플리케이션을 테스트하려면 서비스 테스트를 작성하고 WebSphere Java MQ 메시지를 추가하십시오.
일반 서비스 클라이언트 옵션

또는 새 서비스 테스트 마법사

를 사용하여 서비스 테스트를 작성할 수 있습니다.
시작하기 전에
WebSphere MQ 서버에 연결하십시오.
SSL(Secure Sockets Layer) 인증을 사용 중인 경우,
작업공간에 필수 키 파일이 있는지 확인하십시오.
SOAP 보안을 사용하는 경우 올바른 라이브러리 및
구성 파일로 환경을 구성했는지 확인하십시오.
프로시저
- 워크벤치에서 를
클릭하거나 서비스 테스트 작성
을 클릭하십시오.
- 프로젝트를 선택한 다음 테스트 파일 이름에서 테스트에 대한 이름을 입력하십시오. 사용자가 입력하는 이름이 레코딩, 테스트, 기타 필수 파일의 기본 이름이 됩니다. 표준 네비게이터 또는 Java™
패키지 탐색기에서는 해당 파일에 구분되는 접미부가 있는 것을 볼 수 있으나 테스트 네비게이터에서는 단순 테스트 이름만 볼 수 있습니다.
- 서비스 요청 인터페이스 선택 페이지에서 다음 단계 중 하나를 완료하십시오.
- WSDL 파일을 사용하는 서비스를 테스트하려면 웹 서비스 요청 또는
스펙 기반 구조를 선택하고 다음을 클릭한 후 WSDL 파일을 선택하십시오.
- WSDL 파일을 사용하지 않는 서비스를 테스트하려면 XML 요청,
텍스트 요청, 2진 요청 또는 비어 있는 테스트를 선택하십시오.
- 다음을 클릭한 후 WebSphere Java MQ 프로토콜을 선택하고 전송 구성을 지정하십시오.
필요한 경우 새로 작성을 클릭하여 호출에 대한 전송 구성을 작성하십시오.
Creating a WebSphere Java MQ transport configuration의 내용을 참조하십시오.
- Complete the following information in the General tab:
- Queue
- Name of the queue as defined on the WebSphere MQ server.
- Message type
The types of messages are these:
- Datagram means that the message does not require a reply.
- Request means that the message requires a reply.
- Reply means that the message is a reply to an earlier request message.
- Report means that the message is reporting on some expected or unexpected occurrence,
usually related to some other message. An example is a request message that contained data that was
not valid.
- Message Persistence
This value indicates whether the message is persistent or not. If the message is persistent, it
survives the system failures and restarts of the queue manager. If the message is not persistent, it
survives a restart if it is present on a queue having the NPMCLASS(HIGH) attribute. However, even
with the NPMCLASS(HIGH) attribute a message does not survive a QMGR class. Nonpersistent messages on
queues having the NPMCLASS(NORMAL) attribute are discarded at queue manager restart, even if the
message is found on the auxiliary storage during the restart procedure.
- Dynamic Reply
- Select this check box for the WebSphere MQ server to dynamically create a temporary queue as a
reply. If this check box is not selected, the message in Reply Queue is used.
- Reply Queue
This is the name of the message queue to which the application that issued the get request for
the message should send the reply and report messages.
- Reply Manager
This is the name of the queue manager on which the reply-to queue is defined.
- Additional properties
- Specify the additional properties for the queues.
- 옵션: If necessary, complete the following information on the Config
tab:
- Message Priority
This is the priority of the message. The lowest priority is 0.
- 인코딩
This is the numeric encoding of numeric data in the message. This value does not apply to numeric
data in the MQMD structure itself.
- Expiry Interval
This is the period of time, in tenths of a second, after which the message becomes eligible to be
discarded if it has not already been removed from the target queue. The expiry interval is set by
the application that put the message.
- 문자 세트
This is the character set identifier of the character data in the application message data.
- 옵션: In the Report tab, select the report messages to receive.
- 옵션: If necessary, complete the following information in the Context
tab:
- Application Identity Data
This information is defined by the application suite. Use it to provide information about the
message or its originator.
- Application Origin Data
This information is defined by the application suite. Use it to provide additional information
about the origin of the message.
- Accounting Token
This information is needed by the application to appropriately charge for the work that is done
as a result of the message.
- 사용자 ID
This is the user identifier of the application that originated the message.
- 옵션: In the Identifiers tab, for the messages that require binary input,
specify the ID in the string format in the second column. The first column is filled automatically
in the hexadecimal format.
- 옵션: In the Segmentation tab, select the segment of the message and click
Next.
- XML 요청을 선택한 경우 다음을 클릭한 후
XSD 파일을 선택하고 완료를 클릭하십시오. 새 서비스 테스트가 작성됩니다.
다음에 수행할 작업
이제 테스트를 보강하여 실행할 수 있습니다.