...
Anchor | ||||
---|---|---|---|---|
|
Right-click on a server in
...
the Virtualize or SOAtest Server view and choose Add Message Proxy.
...
...
To delete a proxy or folder, right-click on the node and choose Delete.
...
Right-click on the folder and choose Rename. You cannot rename the default folders (e.g.for example, Virtual Assets, Message Proxies, etc.and so on) in the server view.
Moving Folders
You can copy and paste a folder or proxy into another folder within the Message Proxies folder from the right-click menu.You You can also drag and drop subfolders and proxies into other subfolders.
...
On the General tab, rename the proxy and enter a description (optional). In addition, the username of the last user to modify the proxy is shown here. This username is taken from the Parasoft preferences; go to Parasoft > Preferences and click > Parasoft if you want to change your username.
...
- Click Add.
- Select the appropriate transport type.
Complete the proxy settings as follows:
- HTTP Reverse: See HTTP Reverse Proxy Configuration.
- HTTP Forward: See System Proxy Configuration.
- JMS: See JMS Configuration.
- MQ: See MQ Configuration.
- Internal: See Internal Transport Configuration. Internal proxies can direct traffic to virtual assets or other internal-transport proxies. This can reduce the number of queues when deploying complex virtual assets as well as increase the performance of virtual assets when routing internally.
- In the Traffic file field, specify where you want to save the traffic data that will be captured when the proxy is set to record mode. You can later use this traffic file to generate virtual assets that represent the live traffic captured in record mode. See Transferring Files Between the Remote Server and the Local Machine for an easy way to access the recorded traffic file.
- By default, traffic will be recorded in a file named %n_%d_%t.txt (<proxy_name>_<current_date>_<current_time>.txt). It will be stored within the
recorded_traffic
folder (this will be created if it does not exist). You can modify the file name, but not the folder. The folder is always located within the VirtualAssets project. - When specifying the file name, you can use variables such as
%d
(current date)%t
(current time),%n
(proxy name), and%u
(unique time-based id). Wildcards can be used together and mixed in with the name. For example, you could use%nProxyTraffic%d
or%u_%d%nTraffic.
- Do not configure multiple proxy connections to write to the same traffic file at the same time. This could corrupt the traffic file.
- By default, traffic will be recorded in a file named %n_%d_%t.txt (<proxy_name>_<current_date>_<current_time>.txt). It will be stored within the
- In the Recording Session area, specify how you want traffic data recorded in traffic files:
- Append new session data adds new traffic data to an existing traffic file (the one specified in the Traffic file field). If the specified file does not already exist, a new file will be created. See More on Recording Session Options below for additional details.
- Overwrite session data overwrites the traffic data in an existing traffic file (the one specified in the Traffic file field). If the specified file does not already exist, a new file will be created. See More on Recording Session Options below for additional details.
- New session file for each message pair (HTTP and internal only) creates a separate traffic file for each request/response pair. See More on Recording Session Options below for additional details.
- Click OK.
...
This type of listener starts a port that listens for traffic and can be used to forward to either a live service or a virtual assetsasset. This is best used when the application under test has configuration options that allow the user to configure the host and port used to connect to the backend service.
To add an HTTP Listener:
- Click Add Listener and select choose Reverse Proxy from the Type dropdownmenu.
- Specify a name for the listener.
- Click Add Port and enter a port number. You can enable the message proxy to automatically assign a port by specifying
0
as the port number. When the proxy is enabled, the assigned port number will appear in the console. The port is randomly assigned every time the message proxy is changed/enabled. You can also send a GET request to themessageProxies
API API endpoint to return the automatically -assigned port assigned port number. See Creating and Modifying Assets Testing through the REST API for additional information. - If the client sends traffic over SSL, enable the Secure option and enable your verification options. See SSL Settings for HTTP Reverse Listener Ports for details.
- Click OK to exit the port editor.
- Click Add to add additional ports to the listener or OK again to finish adding the listener.
...
- Click Add Listener and select Forward Proxy from the Type dropdownmenu.
- Specify a name for the listener.
- Enter a port number.
- Click OK to exit the port editor.
- Click Add to add additional ports to the listener or OK again to finish adding the listener.
...
Scroll pdf ignore | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Configuring an HTTP Message Proxy Video TutorialThis video describes how to set up a message proxy that can capture live traffic.
|
More on Recording Session Options
Anchor | ||||
---|---|---|---|---|
|
...
Proxies can connect to an MQ manager using a global configuration or a local configuration. Global configurations are defined per Virtualizer Server Virtualize server and can be used by proxies proxies or virtual assets deployed to the server (see Connections Tab). Local configurations are defined for individual proxies or assets.
You can not cannot deploy a proxy or asset connected to a global MQ manager if the MQ manager connection configuration does not exist on the destination Virtualize Server. If you need to move or copy a proxy/asset to another Virtualize Server, you can manually define the MQ manager connection or use the copy function to add the connection settings to the destination server (see Copying an MQ Manager Connection).
...
If your proxies and/or Message Forward tools tools inadvertently set up a forwarding cycle like A> B> C> A, this could result in an infinite loop. To To prevent such loops, Virtualize and SOAtest are are configured to stop forwarding after 10 hops. You You can change this by setting the system property parasoft.proxy.loop.max.limit
(e.g.for example, parasoft.proxy.loop.max.limit=5
).
The built-in loop detection only applies to internally - routed forwarding (e.g.for example, routing to localhost, not routing to a host name).