...
Table of Contents | ||
---|---|---|
|
Introduction
The Parasoft HTTP Simple Mocking Tool allows a Virtual Asset to learn and replicate the transactions between the application under test and a back-end component. It can be used to record and simulate traffic without the use of the proxy.
...
Prerequisites
- Parasoft Virtualize 9.10.x or later
Installation
The tool can be installed from the UI or command line.
UI Installation
- Go to Parasoft > Preferences and click System Properties.
- Click Add JARs and select the HTTPSimpleMockingTool.jar file.
- Click Apply.
- Restart Virtualize.
Command Line Installation
Add the HTTPSimpleMockingTool.jar file to the system.properties.classpath
property in your settings properties file. For example:
...
http://<VIRTUALIZE_SERVER_HOST>:<VIRTUALIZE_SERVER_PORT>/soavirt/api/<VERSION>/preferences/systemProperties/reload
Usage
The HTTP Simple Mocking Tool is used as an output to a Message Responder tool. It is attached to the payload of the outgoing response.
...
(<requestDate>.*</requestDate>)|(<availableFunds>.*</availableFunds>)
Tool Configuration
You can configure the following settings.
...
Backend Host | (Required) Specifies the host to which the request should be forwarded if a matching response cannot be found in the traffic file. |
---|---|
Backend Port | Specifies the port to which the request should be forwarded if a matching response cannot be found in the traffic file. The default is |
Traffic File Path | Specifies the location of the traffic file where request response pairs are recorded. The default is |
Exclude Pattern | Specifies a regular expression pattern that indicates what traffic patterns you want excluded from the request matching process. For example, if you wanted to exclude dates, you could use a regular expression such as |
Debug | Specifies if processing details and error information is communicated via the Event Log. The default is |
Third-Party Content
This tool does not contain any third-party software.
...