Editing virtual service resources

You can modify an existing virtual service resource that you created from the desktop product or a virtual service resource that you created in the containerized product on HCL OneTest Server. After you commit the edited virtual service resource to a branch in your project repository, you can start an instance of the virtual service resource on HCL OneTest Server.

Before you begin

You must have completed the following tasks:

Procedure

  1. Log in to HCL OneTest Server.

    The team space that contains your project is displayed.

  2. Open the project that contains the virtual service resources in the test assets by clicking Projects > My Projects > project_name.

    The Overview page is displayed.

  3. Click Virtualization > Resources in the navigation pane.

    The Resources page is displayed.

  4. Select the branch of the repository that contains the virtual services that you want to edit from the list in the Branch field.

    All virtual services in the selected branch are displayed on the Resources page.

  5. Identify the virtual service by completing any of the following steps:
    • Search for the virtual service by entering the name or the path of the virtual service in the repository in the Search field box.
    • Create a filter query by using the New filter option and complete the following steps:
      1. Create a rule with an appropriate operator.
      2. Select criteria such as Name, Path, Instance number, or Instance state. Select the condition and enter the value for the criteria. Apply the filter query.

        The virtual services that match the filter criteria are displayed.

      3. Save the filter query for retrieving it from the saved filters list.
    • Retrieve a saved filter by using the Open filters icon Image of the icon. by completing the following steps:
      Note: To open the filter query, you must have created and saved a filter query.
      1. Select the saved filter.
      2. Apply the filter.

        The virtual services that match the filter criteria in the filter that is applied are displayed.

  6. Click the Edit icon Image of the edit icon in the Actions column of the virtual service resource.
    The containerized HCL OneTest API UI is displayed in a new browser tab.
    Note: If you are presented with a message prompting you to allow the content to be copied on the clipboard, select Allow and continue with your task.
  7. Edit the virtual service resource by using the containerized product.

    You can refer to the HCL OneTest API product documentation to find information about the specific tasks that you want to perform. See HCL OneTest API Product Documentation.

  8. Save and commit the virtual service resources to the Git repository that is configured in your project from the containerized product.
  9. Delete the containerized product session by closing the browser tab of the containerized product, and then click Delete session.

Results

You edited the virtual service resources by using the containerized product on HCL OneTest Server.

What to do next

You can configure a run of the virtual service resource that you edited. See Configuring a run of a virtual service.