TestBench Integration
This page explains how to connect TestBench to the running TestBench Defect Service.
Overview
TestBench communicates with the Defect Service through the DMProxy (Defect Management Proxy) component. The connection is configured via two .properties files in the TestBench installation directory.
Requirements
- TestBench Defect Service is installed and running (see Quick Start).
- You know the host and port the service is listening on.
- You have set credentials with
testbench-defect-service set-credentials.
Configuration in TestBench
The DMProxy is a component of the TestBench installation, located at e.g.:
C:\imbus\TestBench\iTB_DMProxy\
It contains two relevant configuration files:
1. Wrapper configuration
Located in the wrapper-config subdirectory, e.g.:
C:\imbus\TestBench\iTB_DMProxy\wrapper-config\DefectService_wrapper.properties
This file registers the Defect Service as a repository and points to its settings. You typically do not need to change anything here, but verify it contains:
main-class = de.imbus.testbench.service.dm.DefectServiceWrapper
# Repository identifier as it appears in TestBench (must match the service name in config.toml)
name=DefectService
settings = ../defectServiceWrapper/DefectService_settings.properties
The name value is the repository identifier that appears in TestBench. The settings path points to the service settings file (relative to the wrapper config file).
2. Service settings
Located at (relative to the DMProxy directory):
C:\imbus\TestBench\iTB_DMProxy\defectServiceWrapper\DefectService_settings.properties
This is the file you need to edit. Set the URL to match the host and port the Defect Service is listening on:
# Server configuration
server.url=http://127.0.0.1:8030
If you configured HTTPS, use https:// instead and ensure the TestBench host trusts the certificate.
Verifying the connection
- Start the Defect Service:
testbench-defect-service start
- Open
http://127.0.0.1:8030/check-loginin a browser (or use curl) — it should return200 OK. - Start the DMProxy.
- Open TestBench, select the Defect Service as defect management system for your project, enter login data, select a project and trigger a defect synchronization. Check the service logs for incoming requests.
Migrating to the New Service
Use this procedure to migrate from the legacy Defect Service setup to the new architecture without losing synchronization.
During setup and integration, the new service name must be exactly the same as the old service name. Any mismatch will break the integration.
Migration steps
-
Set up the new Defect Service Initialize and configure
testbench-defect-servicein your environment.tipIf you are migrating an existing setup, use the values from your current DMProxy
.propertiesfiles as input for the service configuration. This is especially helpful when running the configuration wizard, because you can reuse the existing service-related values instead of entering them again manually. For the initial setup flow, see Quickstart and Configuration.The current DMProxy configuration is usually the best reference for the values you need during migration:
- Use the existing repository name from the wrapper configuration.
- Use the current connection details from the service settings.
Requirement: The configured service name must match the previous service name character-for-character.
-
Integrate with DMProxy Register the new service in DMProxy as described on this page.
Requirement: The service name used in DMProxy must be identical to the previous service name.
-
Start both services After configuration is complete, start:
testbench-defect-serviceDMProxy
-
Update credentials in TestBench Open TestBench and go to Defect Manager. Update the credentials for the migrated service connection.
-
Reselect and synchronize the project Complete the migration in your project workspace:
- Reselect the project once in the UI (even if it is already selected).
- Trigger a manual synchronization.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
Connection refused | Service is not running or port mismatch | Start the service; verify host and port in config. |
401 Unauthorized | Wrong credentials | Re-run testbench-defect-service set-credentials. |
500 Server Error | Service or client misconfiguration | Check service logs; run configure --view to inspect current settings. |
Network considerations
- By default the service listens on
127.0.0.1(loopback only). To accept connections from another machine (e.g. TestBench running on a different host), sethost = "0.0.0.0"inconfig.toml. - If a firewall is in place, open the configured port (default
8030). - For production deployments, consider enabling HTTPS — see Configuration.