Viewing virtual service resources

When project repositories contain virtual service resources and you want to view the resources so that you can run them, you can view the virtual services from the Resources page in HCL OneTest Server.

Before you begin

You must have completed the following tasks:
  • Created virtual services that use the HTTP or IBM® WebSphere® MQ transport for tests in HCL OneTest API, committed the test resources to the remote repository, and added the repository to your project.
  • Been assigned the Viewer, Tester, or Owner role in the project so that you can view the virtual service resources that are in the project repositories.

About this task

After you have committed the test assets and resources to the remote repositories and added the repositories to projects on HCL OneTest Server, you can go to the Resources page and perform the following tasks:
  • View the virtual service resources that are contained in any branch of the repositories that are added to your project.
  • Create or use saved filters for viewing virtual service resources.
  • Run or start an instance of the virtual service resource.
  • View the number of instances of the virtual service resources that are running.
  • View all instances of a running virtual service on the Instances page by clicking the Show in instances page icon Image of the icon..

Procedure

  1. Log in to HCL OneTest Server.
  2. Open the project that contains the virtual service resources in the test assets by clicking Projects > My Projects > project_name.
  3. Click Virtualization > Resources in the navigation pane.

    The Resources page is displayed.

  4. Complete the steps for the task that you want to perform as listed in the following table:
    Task Action

    Viewing the virtual service resources that are contained in a branch of any of the repositories that are added to your project.

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

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

    Creating or using saved filters for viewing specific instances of virtual service resources.
    To create a query, perform the following actions:
    1. Click New filter.
    2. Create a rule with an appropriate operator.
    3. Select criteria such as Name, Path, Instance number, or Instance state.
    4. Select the condition, and then enter the value for the criteria.
    5. Apply the filter query.

      The virtual services that match the filter criteria are displayed.

    6. Save the filter query for retrieving it from the saved filters list.
    To use a saved filter query, perform the following actions:
    Note: To open the filter query, you must have created and saved a filter query.
    1. Click the Open filters icon Image of the icon.
    2. Select the saved filter.
    3. Apply the filter.

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

    Running an instance of the virtual service resource. After you identify the virtual service that you want to run, perform the following actions:
    1. Click the Execute icon Image of the icon. in the row of the identified virtual service.

      The Execute virtual service dialog box is displayed.

    2. Run the virtual service with the settings that are configured in the resource by clicking Execute or modify any of the settings, and then click Execute.

      An instance of the virtual service starts to run. The virtual service is displayed with the state as Running along with the number of instances that are running in the Active instances column.

    Viewing the number of instances of the virtual service resources that are running. If any of the virtual services in the project repositories are started by any project member with the Tester or Owner role, you can view the number of instances that are running or active from the Resources page.

    The virtual services are displayed with the state as Running along with the number of instances that are running, in the Active instances column.

    Viewing all instances of a running virtual service. Click the Show in instances page icon Image of the icon. in the row of the virtual service on the Resources page.

    The Instances page is displayed with all the running instances of a particular virtual service.

    You can also view the number of requests that are received by the virtual service. The number of requests is displayed as the number of hits when you hover the cursor over the text in the Activity column.

Results

You have viewed virtual services from the Resources page on HCL OneTest Server.