在测试编辑器中,测试元素是测试套件中的第一个元素。测试元素中的设置将应用于整个测试。
常用选项
- 数据池
- 这将列出关于测试所使用的每个数据池的详细信息:数据池的名称、使用的列以及测试中引用了数据池列的位置。单击可导航至该位置。
- 添加数据池
- 这将添加对您希望测试使用的数据池的引用。单击此选项等同于在选中测试的情况下单击。
- 除去
- 这将移除所选数据池。如果此数据池正在使用中,那么该选项不可用。
SSL configuration
Define an
SSL configuration for certificate authentication between the client
and the server. SSL configurations can be used by any message request
in the test. If you use multiple SSL configurations in the test, you
must specify the configuration in each message request.
The
default SSL configuration always trusts servers, which is equivalent
to no authentication.
- SSL configuration
- Select an existing SSL configuration or create one. You can use
the toolbar push buttons to create a New SSL
configuration and to Rename or Delete existing
SSL configurations. You can also Copy and Paste SSL
configurations to and from the SSL editor and the test editor.
- Server Authentication
- This section describes how the client trusts the server.
- Always trust server
- Select this option if no authentication is required or to ignore
server certificates so that all servers are trusted. If you are using
single authentication and you want to accept trusted servers only,
then disable this option and specify a truststore that contains the
trusted server certificates.
- Client truststore
- When you are using single authentication, the client truststore
contains the certificates of all trusted servers. Click Browse to
specify a KS, JKS, or JCEKS file containing valid certificates of
the trusted servers.
- 密码
- If the client truststore file is encrypted, type the password
required to access the file.
- Mutual Authentication
- This section describes how the server trusts the client in addition
to server authentication.
- Use client-side certificate
- If you are using double authentication, select this option to
specify a keystore containing the client certificate. This certificate
allows the server to authenticate the client.
- Client certificate keystore
- Click Browse to specify a KS, JKS, or JCEKS
file containing a valid certificate that authenticates the client.
- 密码
- If the client truststore file is encrypted, type the password
required to access the file.
- Select trust alias for Mutual Authentication
- Select an alias to be used for the SSL configuration. There could
be multiple aliases in a keystore for different security certificates.
Choose an appropriate alias for a user. You can also use datapool
to store aliases that you can apply to virtual users at run time.
协议配置 (HTTP)
测试元素的 HTTP 配置页面用于指定服务器库执行 HTTP 发送和接收功能所需的信息。
HTTP 配置可供测试中的任何消息调用来使用。
如果要在测试中使用多种协议配置,那么必须为每次消息调用都指定配置。
- Use HTTP Keep Alive
- Select this option to keep the HTTP connection open after the
request. This option is not available if you are using IBM® Rational® AppScan®.
- Use SSL
- Select this option to use an SSL configuration. Click Configure
SSL to create an SSL configuration or select an existing
configuration.
- Platform Authentication
- In this section, specify the type of authentication that is required
to access the service. Select None if no authentication
is required.
- Basic HTTP authentication
- Select this option to specify the User Name and Password that
are used for basic authentication.
- NTLM authentication
- Select this option to use the Microsoft NT
LAN Manager (NTLM) authentication protocol. NTLM uses challenge-response
authentication. This view lists what is negotiated (supported by the
client and requested of the server) and what is authenticated (the
client reply to the challenge from the server).
- Kerberos authentication
- Select this option to use the Kerberos authentication protocol
between the client and server.
- Connect through proxy server
- If the HTTP connection needs to go through a proxy server or a
corporate firewall, specify the Address and Port of
the proxy server. If the proxy requires authentication, select either Basic
proxy authentication or NTLM proxy authentication.
- Proxy authentication
- In this section, specify the type of authentication that is required
to access the proxy. Select None if no authentication
is required.
- Basic proxy authentication
- Select this option to specify the User Name and Password that
are used for basic authentication.
- NTLM proxy authentication
- Select this option to use the Microsoft NT
LAN Manager (NTLM) authentication protocol. NTLM uses challenge-response
authentication. This view lists what is negotiated (supported by the
client and requested of the server) and what is authenticated (the
client reply to the challenge from the server).
- Custom class
- Select this option if the communication protocol requires complex,
low-level processing with a custom Java™ code
to transform incoming or outgoing messages. Click Browse to
select a Java class that uses
the corresponding API. This option is not available in IBM Security AppScan.
协议配置 (JMS)
测试元素的 Java 消息服务 (JMS) 配置页面用于指定服务器库执行 JMS 发送和接收所需的信息。
JMS 配置可供测试中的任何消息调用来使用。如果要在测试内使用多种协议配置,那么必须在每次消息调用中都指定配置。
- Destination style
- This is the style of the JMS destination. Select either Topic or Queue.
- End-point address
- This is the address of the destination.
- Use temporary object
- Select this option to send the JMS destination as a temporary
object. For a JMS queue, a temporary JMS queue is sent in the message.
- Reception point address
- If Use temporary object is disabled, specify
the JMS address of the destination endpoint.
- Basic authentication
- Select this option to specify the User Name and Password that
are used for basic authentication.
- Custom adapter class name
- Set up a custom Java Naming
and Directory Interface (JNDI) vendor adapter for this configuration.
To use a custom adapter, you must write a Java class that extends the Axis class and methods.
Specify the name of your custom adapter class in Adapter
class name.
- Text message
- Specify whether the message is a text or a byte message.
- Context factory properties
- Edit the properties for a context factory. Click Add to
add string properties to the context factory configuration.
- Connector properties
- Edit the properties for a connector. Click Add to
add string properties to the connector configuration. The product
supports the following connectors:
- JMS priority
- JMS delivery mode
- JMS time to live
协议配置 (WebSphere MQ)
测试元素的 WebSphere® MQ 配置页面用于指定服务器库执行 WebSphere MQ 传输发送和接收功能所需的信息。
MQ 配置可供测试中的任何消息调用来使用。如果要在测试中使用多种协议配置,那么必须为每次消息调用都指定配置。
- Queue Manager
- Use this area to specify queue manager options for the service.
- 队列管理器名称
- Specify the name of the queue manager to which to send the request.
- 使用本地队列管理器
- Select this option to use a local queue manager. If you disable
this option, specify the following information:
- 队列管理器地址
- Specify the IP address or host name of the remote WebSphere MQ server.
- 队列管理器端口
- Specify the listener port of the remote WebSphere MQ server.
- 客户机通道
- Specify the server-connection mode channel of the remote queue
manager.
- Queues
- Use this area to specify the send queue options for the service.
- Send queue name
- Specify the name of the queue that the queue manager manages.
- Use temporary queue for response
- Specifies whether the WebSphere MQ
server creates a temporary queue. 如果选中此选项,将只为接收特定消息而创建临时队列,然后予以删除。
- Receive queue name
- If Use temporary queue is cleared, this
option specifies the queue manager that is specified on the Queue
manager name line. The specified queue manager must manage
this queue. You can specify multiple queue names by using a semicolon
(;) as a separator.
- Use RFH2 header
- Select whether to use the transport for SOAP over MQ feature that
is provided by WebSphere MQ.
This feature uses a predetermined MQ message format (RFH2); therefore,
when selected, other Message Descriptor options
are disabled.
- SSL 连接
- 如果客户机通道设置引用了安全通道,请选择此选项以使用 SSL 配置。Click Open
SSL Editor to create an SSL configuration or Change to
change the SSL configuration that is associated with the current test.
If
the WSDL that you use to create the message request uses a supported
JMS URI to point to the WebSphere MQ
server, then the SSL configuration is created automatically. If the
test generator is unable to create the SSL configuration, you must
create a new one manually.
If the WSDL is generated with the WebSphere MQ service (amqwdeployWMService),
you must edit the WSDL to change the transport binding from HTTP to
JMS to prevent the test generator from producing an HTTP configuration.
- 密码套件
- 指定在通道配置中使用的密码套件。
- 消息描述符
- Configure the fields of the request. You can replace a subset
of an MQ message descriptor with a custom format for use with other
server types, specifically when using an XML message request. Refer
to WebSphere MQ documentation
for details about message descriptors.
- Use the Message Properties table to specify
the following MQ message properties:
- JMSXDeliveryCount
- JMSXGroupSeq
- JMS_IBM_Report_Exception
- JMS_IBM_Report_Expiration
- JMS_IBM_Report_COA
- JMS_IBM_Report_COD
- JMS_IBM_Report_PAN
- JMS_IBM_Report_NAN
- JMS_IBM_Report_Pass_Msg_ID
- JMS_IBM_Report_Pass_Correl_ID
- JMS_IBM_Report_Discard_Msg
- JMS_IBM_MsgType
- JMS_IBM_Feedback
- JMS_IBM_PutApplType
- JMS_IBM_Encoding
- JMS_IBM_Last_Msg_In_Group
For more information about these properties, refer to the IBM WebSphere MQ documentation.
- 目标服务
- When using Microsoft .NET
framework with the SOAP over MQ feature of WebSphere MQ, specify the name of the target
service for the WSDL.