Creating Your First Virtual Service

The Learn More tab on the Service Virtualization tab makes it easy to create your first virtual service.

Additional options are available when you create a virtual service from the Virtual Services page. For more information, see Creating a Virtual Service.

Create Your First Virtual Service

To create a ready-to-use virtual service in 5 steps, try the Start Virtualizing Now wizard. For more information, see Start Virtualizing Now Wizard.

Follow these steps:

  1. Log in to BlazeMeter and click the Service Virtualization tab.
  2. Click Learn More at the top of the page.
    Learn More button
  3. Drag a supported file type into the upload area, or click the area to browse and find the file you want. This file should contain all of the Transactions that you want to use for your virtual service. For more information about supported file formats of transactions, see Adding Transactions.
    Note: If you want to upload multiple Swagger files using a zip file, the main file in the zip file must be named index.json or index.yaml for the upload to work.
    If you do not have a file, you can try the sample file by clicking the link below the upload box.
    a provided virtual service sample file
    The Virtual Services page opens, and the first virtual service listed was newly generated from the file you uploaded.
  4. Click the arrow next to the virtual service name to expand the details for the virtual service.
    virtual service details
  5. Enter a name for the virtual service in the Name field or keep the generated default name.
  6. Leave the default selection in the Select Service drop-down.
    A virtual service created from Learn More automatically creates a Service for you. For more information about Services and how you create them in a typical scenario, see Creating a Virtual Service.
  7. Select the location where you want to deploy your virtual service from the Location drop-down.
    • Unless you plan to run the virtual service in a private location, select from the available Google Cloud Platform locations (US East or EU West) depending on your location.
  8. Select either HTTPS or HTTP from the Endpoint drop-down.
    • The default is HTTPS.
  9. Review the Transactions in this Virtual Service pane to see the Transactions added to the virtual service from the file that you uploaded.
    • Creating a virtual service from "Learn More" automatically adds all Transactions from your file to the virtual service. You can remove Transactions as needed by moving them to the left pane.
      You can use a quick action to move transactions with a single click. Click the Include this transaction in the Virtual Service icon in the left column. To remove a transaction from the virtual service, you can click the Remove this transaction from the Virtual Service icon in the right column. Click to enlarge the screenshots:
      quick inline buttons to include transactions

      quick inline buttons to exclude transactions
  10. Click the Parameters tab.
    virtual service parameters tab
  11. (Optional) Set the Think Time to control an artificial delay between the request and the response. The default is "No Delay". For more information, see Simulating Irregular Response Latencies.
  12. In the No Matching Requests field, choose the correct logic for when a request against the virtual services does not match any of the provided transactions. The request can either throw an error or be redirected to the live service.
    If you select Redirect to live system, a new field Live System Endpoint appears where you fill in the live system's URL. For more information about generic or conditional redirects, see Live System Endpoint in the Adding Transactions article.redirect to live system option
  13. Click Save.
    The virtual service is created and available on the Virtual Services page. Run the service to activate the virtual endpoint and run tests against it.