The main goal of the TDM simplify test data usage and management on the project for Standalone/End-to-End testing manual and automated.
The concept of test data management assumes usage of TDM tool as one centralized data storage, for creation, update and tracking of test data usage on different environments.
This approach gives user one entry point for test data usage on different environment, new scripts for test data collection or update can be performed in few clicks on different servers.
- Download and install PostgreSQL
- Create database
CREATE DATABASE qstptdm; - Create user tdmadmin (Username and below password are example ones; please change them, and change service configuration variables TDM_DB_USER and TDM_DB_PASSWORD accordingly)
CREATE USER tdmadmin WITH PASSWORD 'tdmadmin'; - Grant privileges on database to user
GRANT ALL PRIVILEGES ON DATABASE "qstptdm" to tdmadmin;- Install extension in the database
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";- To setup local copy of database you need to build project by maven "clean" and "package".
Please notice that Maven must be configured with
Profiles -> migration-on-build-pgproperty or it WILL NOT setup basic DB strusture. If you had already set up DB structure, don't use this property. Basic structure of DB (constraints and tables) is scripted in migration module (src/main/scripts/install.xml)
-
Main class
org.qubership.atp.tdm.Main -
VM options (contains links, can be edited in parent-db pom.xml):
-Dspring.config.location=C:\qstp-tdm\qubership-atp-tdm-backend\target\config\application.properties -Dspring.cloud.bootstrap.location=C:\qstptdm\qubership-atp-tdm-backend\target\config\bootstrap.properties -Dfeign.atp.catalogue.url=https://atp-catalogue:8080 -Dfeign.atp.environments.url=https://environments:8080 -
Select "Working directory"
$MODULE_WORKING_DIRS$ -
Just run Main#main with args from step above
- PostgreSQL installed local
- Download and install PostgreSQL.
- Create database: qstptdmtest (This is example name; please change database name according your business needs)
- Port: 5432
- Create user and pass tdmadmin / tdmadmin (User name and below password are example ones; please change them, and change service configuration variables TDM_DB_USER and TDM_DB_PASSWORD accordingly)
- Grant privileges on database to user
- Install extension uuid-ossp (see above)
- Docker installed local
- VM options: -DLOCAL_DOCKER_START=true
- Build project: build by maven "clean" and "package", run as backend on port 8080.
- Build snaphot (artifacts and docker image) of https://github.com/Netcracker/qubership-testing-platform-tdm in GitHub
- Clone repository to a place, available from your openshift/kubernetes where you need to deploy the tool to
- Navigate to /deployments/charts/atp-tdm folder
- Check/change configuration parameters in the ./values.yaml file according to your services installed
- Execute the command: helm install qstp-tdm
- After installation is completed, check deployment health