Creating Your First Virtual Service

The Learn More tab on the Service Virtualization tab makes it easy to create your first virtual service using the Start Virtualizing Now wizard. For more information, see Start Virtualizing Now Wizard.
Learn More button

The full set of configuration options is available when you create a virtual service from the Virtual Services page. For more information, see Creating a Virtual Service.

 

To create Your First Virtual Service:

  1. Log in to BlazeMeter and click the Service Virtualization tab.
  2. Click Asset Catalog at the top of the page.
  3. Obtain a file that contains all Transactions that you want to use for your virtual service. Drag the file into the upload area, or click the area to browse and find the file you want. For more information about supported file formats of transactions, see Adding Transactions.
    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.
    a provided virtual service sample file
    The Virtual Services page opens, and the first virtual service that you see 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 by the Wizard 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. From the Location drop-down, select the location where you want to deploy your virtual service.
    • Select one of the Google Cloud Platform locations, unless you plan to run the virtual service in a private location.
  8. Select either HTTPS or HTTP from the Protocol drop-down.
    • The default is HTTPS.
  9. Click the Virtual Services > Transactions tab.
    • Creating a virtual service from "Learn More" automatically adds all Transactions from your uploaded file to the virtual service. You include Transactions by moving them to the right pane, and exclude them by moving them to the left pane.
      Use a quick action to move transactions from one column to the other: Click the Include this transaction in the Virtual Service icon in the left column or 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 Virtual Services > Parameters tab.
    • (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.
    • (Optional) In the No Matching Requests field, choose what to do 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
  11. Leave all other defaults and click Save.
    The virtual service is created and available on the Virtual Services page.

Now, run the service to activate the virtual endpoint and run tests against it!