Creating logical MongoDB transport connections
In HCL 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 MongoDB transport connection for each MongoDB transport to be used.
Before you begin
You must have at least one environment in your project. If there are no environments, you must create one.
Procedure
- Open the Logical View of the Architecture School perspective.
-
On the toolbar of the Logical View, select
.
The New MongoDB Connection window is displayed.
- In the Name field, enter a name for the connection.
-
Select OK.
The New MongoDB Connection window is closed and the new logical MongoDB connection is displayed in the canvas of the Logical View.
- When a logical connection is created, a new physical resource is also created and bound in this environment. To view or edit this physical resource, right-click the new connection and select Physical Resource.
-
Double-click the new logical MongoDB
connection.
The MongoDB Connection window is displayed.
Alternatively, right-click the logical MongoDB connection and select Open in the pop-up menu.
-
To associate the new logical MongoDB
connection with a different logical resource, complete the following tasks:
- Optional:
Select the Bindings tab. Alternatively, select in the menu bar to open the Environment Editor window and select
the Bindings tab to modify the bindings of the selected environment.
If you did not bind the MongoDB connection to a physical MongoDB broker, UNBOUND is displayed under Binding and you must complete the following tasks:
- Optional:
To add a log file for the new logical MongoDB
connection, select the Monitoring tab.
You can monitor the log file during the execution of a test that involves the new logical MongoDB connection.
- Optional: To enter additional information about the new logical MongoDB connection, select the Documentation tab. Although this additional information is optional, it might help with the maintenance of the resources in the project or help future users of the project.
- Select OK.
Results
The new logical MongoDB connection is added to the project.