Cloning Virtual Services

Applies to ReadyAPI 3.57, last modified on December 20, 2024

In ReadyAPI, you can create a copy (clone) of your virtual service (or virtual API). This is an easy and fast way to create a new virtual service. The clone will be an exact copy of the existing service at the time of cloning. If you change the original service later, the cloned copy will not be affected. Cloning is useful when you have a complex service and want to create a copy with minor modifications.

You can copy the virtual service to the same project, where the original service resides, or copy it to another project.

To create a virtual service copy:

  1. Right-click the source service in the Navigator panel and select Clone Virtual Service from the context menu:

    Service virtualization and API testing: Copying virtual services

    Click the image to enlarge it.

    – or –

    Select the virtual service in the Navigator and, on the main menu, select Virtual Service > Clone Virtual Service:

    Service virtualization and API testing: Copying virtual services

    Click the image to enlarge it.

  2. In the subsequent Clone Virtual Service dialog box, specify properties of the new service:

    Service virtualization and API testing: Clone Virtual Service dialog
    Property Description
    Virtual Service Name The name of the new service
    Target Project The project, to which the copied service will be added.
    Move instead Select this check box to move the virtual service rather than to create a copy.
    Clone description Select this check box to copy the description of the original service to the new service. If you want another description, clear the check box and enter the description in the Description edit box.
    Description Arbitrary text describing the new service. Used only if the Clone description check box is clear.

    After you filled in the edit boxes, click OK to copy (or move) the virtual service. You will see the new service in the target project in the Navigator panel.

See Also

Creating Virtual Services

Highlight search results