Viewing virtual service resources
When project repositories contain virtual service resources and you want to view the resources so that you can start them, you can view the virtual services from the Resources page in your team space on HCL OneTest™ Server.
Before you begin
- 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 a Member or Project Creator role in a team space.
- Been assigned the Viewer, Tester, or Owner role in the project.
About this task
- View the virtual service resources that are contained in any branch of the repositories that are added to your project.
- View the components in the System Model that are associated with the virtual service resources.
- 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 .
Procedure
- Log in to HCL OneTest™ Server and open the team space that contains your project.
-
Open the project that contains the virtual service resources in the
test assets by clicking
.
The Overview page is displayed.
-
Click
in the navigation pane.
The Resources page is displayed.
-
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.
Viewing the components that are associated with the virtual service resource. The components that are associated with the virtual service resource are displayed in the Components column.
Click the component in the Components column to view the virtual resource on the System Model page.
Creating or using saved filters for viewing specific instances of virtual service resources. To create a query, perform the following actions:- Click New filter.
- Create a rule with an appropriate operator.
- Select criteria such as Name, Path, Instance number, Instance state, or Components.
- Select the condition, and then enter the value for the criteria.
- Apply the filter query.
The virtual services that match the filter criteria are displayed.
- 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.- Click the Open filters icon
- Select the saved filter.
- Apply the filter.
The virtual services that match the filter criteria 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: - Click the Execute icon in the row of the identified virtual service.
The Execute virtual service dialog box is displayed.
- 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 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.