Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2024.2

...

Table of Contents
maxLevel12

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

  1. Go to Parasoft > Preferences and click System Properties.
  2. Click Add JARs and select the HTTPSimpleMockingTool.jar file.
  3. Click Apply.
  4. 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 80.

Traffic File Path

Specifies the location of the traffic file where request response pairs are recorded. The default is VirtualAssets/traffic_file.txt.

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 <requestDate>.*</requestDate>

Debug

Specifies if processing details and error information is communicated via the Event Log. The default is false.

Third-Party Content

This tool does not contain any third-party software.

...