Clone Service with all Transactions

Services are logical groupings for Transactions and virtual services. You can clone Transactions that are under a specific service to a new service. You can also find and replace a specific text in Transactions while cloning. You can create a virtual service that contains all the transactions that have been cloned. After you clone a transaction, a virtual service is created under the new service.

Clone All Transactions in a Service

Follow these steps:

  1. Navigate to the Service Virtualization tab, Virtual Services, and expand the Service drop-down list.
  2. Hover over the service entries to see the pop-up action icons next to each entry.
  3. Click the Clone Service icon for the service that you want to clone.
    the clone a service button
    A new Clone Service window opens.
  4. Enter a service name.
    the new name of the cloned service
    Use a unique service name for each clone. If the service name already exists, the Clone button is disabled. For APIs, a clone with a duplicate service name will return an HTTP 400 Bad Request error message. See Cloning API for more information.
  5. Click Clone.

Find and Replace Text in Transactions while Cloning

Use this option if you want to modify parts of transactions while cloning. For example, you might need to change an API version from v1 to v2 for all transactions. You can make this change in bulk while cloning, instead of manually.

finding and replacing text in transactions while cloning

Follow these steps:

  1. Navigate to the Service Virtualization tab, Virtual Services and expand the Service drop-down list.
  2. Hover over the service entries to see the pop-up action icons next to each entry.
  3. Click the Clone icon for the service that you want to clone.
    A new Clone Service window opens.
  4. Enter a service name.
    Note: Use a unique service name for each clone. If the service name already exists, the Clone button is disabled. For APIs, a clone with a duplicate service name will return an HTTP 400 Bad Request error message.
  5. Toggle the Find and Replace Text in Transactions button on.
  6. Enter a text to Find and a text to Replace it with, and a Location.
    You can find and replace in the following entities: 
    • Query Parameters
    • Cookies
    • Request Headers
    • Request Body
    • Response Headers
    • Response Body
    • Proxy URL
    • Path
    • Everyhwere
  7. (Optional) Click the Plus button to search and replace more strings.
  8. (Optional) Click the Delete button to remove a line.
  9. Click Clone.
 

Create a Virtual Service after Cloning

Use this option if you wish to have a virtual service created with all the transactions that have been cloned.

Follow these steps:

  1. Navigate to the Service Virtualization tab and expand the Service drop-down list.
  2. Hover over the service entries to see the pop-up action icons next to each entry.
  3. Click the Clone icon for the service that you want to clone.
    A new Clone Service window opens.
  4. Enter a service name.
    Note: Use a unique service name for each clone. If the service name already exists, the Clone button is disabled. For APIs, a clone with a duplicate service name will return an HTTP 400 Bad Request error message.
  5. Toggle the Create Virtual Service for Cloned Service button ON.
    Create virtual service for Cloned Service button
  6. Click Clone.
    You will be redirected to the Virtual Service page. A virtual service is created under the new service and contains all the transactions that have been cloned.
  7. Verify the created virtual service and click Run to deploy the cloned virtual service.

If you are a workspace manager or administrator, you can rename or delete a service. For more information, see Rename or Delete a Service.
inline buttons to rename or delete a service