In IBM® DevOps Test Integrations and APIs (Test Integrations and APIs), tests and stubs reference the logical resources in a project. Therefore, you must create at least one logical HTTP connection for each HTTP transport that you want to use.
Ensure that there is at least one environment in your project. If there are no environments, you
must create one. See Creating an environment.
Two alternative methods to manually create a logical HTTP connection are available:
-
Open the Logical View of the Architecture School perspective.
-
Click from the toolbar.
The New HTTP Connection dialog is displayed.
-
Enter a name for the connection in the Name field, and then click OK.
The logical HTTP connection that you created is displayed in the canvas of the
Logical View.
Note: When a logical connection is created, a new physical resource is also created and bound in this environment. You can view or edit this physical resource by right-clicking the new connection, and then clicking Physical Resource.
-
Double-click the logical HTTP connection that is displayed on the canvas of the Logical View.
Alternatively, right-click the logical HTTP connection, and then click Open.
The HTTP Connection dialog is displayed.
- Optional:
Associate the new logical HTTP connection with a different logical resource by completing
the following steps:
-
Click Parent.
The Select a Resource window is displayed.
-
Under Logical, select a different parent resource.
-
Click OK.
The Resource Path field on the Properties
tab of the HTTP Connection window displays the updated resource path
information.
- Optional:
Click the Bindings tab.
If you did not bind the HTTP connection to a physical HTTP server resource,
UNBOUND is displayed in the Binding
column.
To bind the HTTP connection, click
UNBOUND and choose a web
server from the list.
Note: Alternatively, you can modify the bindings for an environment
in the Environment Editor window ().
-
Add a log file for the new logical HTTP connection by clicking the
Monitoring tab.
The log file can be monitored during the execution of a test that involves the new logical
HTTP connection.
- If you want to enter additional information
about the new logical HTTP connection, click the Documentation tab.
This information can help with the maintenance of the resources
in your project or help future users of your project.
-
Change the Display Color option for this
transport in the Events View by performing the following
steps:
-
Click the Recording Studio tab.
-
Click the color box to change the display color.
-
Select the color that you want from the palette.
-
Click OK to apply the selected color as the display
color.
- Click OK.
The new logical HTTP connection is added to your project.
When a logical connection is created, a new physical resource is also created and bound to
the logical connection. To view or edit this physical resource, you can perform one of the
following actions:
After you have a logical HTTP connection that is bound to a physical web server in an
environment, use those resources to create tests and virtual services (stubs). See Testing with the HTTP transport and Virtualizing HTTP.