Usage
After installation, verify that TDM CLI is accessible from your environment:
tdm
or on Windows:
tdm.exe
If the command executes successfully, the CLI is ready to use.
Global Flags¶
--insecure
The --insecure flag disables SSL/TLS certificate validation.
Warning
Disabling certificate validation may expose the application to security risks such as man-in-the-middle attacks. This option should only be used in development or test environments with self-signed certificates.
Example:
tdm <command> --insecure
Commands¶
Login¶
The login command authenticates the user and persists configuration in the tdm.conf file.
This configuration is reused for subsequent executions.
tdm login --endpoint "<endpoint>" \
--username "<username>" \
--password "<password>" \
--expiration "<expiration_date>"
Insecure Mode
tdm login --endpoint "<endpoint>" \
--username "<username>" \
--password "<password>" \
--expiration "<expiration_date>" \
--insecure
Case¶
The case command is used to execute individual test cases.
Run a Test Case with Parameters
tdm case run --id <id> --param-path "</path/to/caseparams.json>"
Run a Test Case (Default Parameters)
tdm case run --id <id>
Insecure Mode
tdm case run --id <id> --param-path "</path/to/caseparams.json>" --insecure
Parameter File Format
The parameter file must be provided in JSON format as shown below:
[
{
"Key": "testkey1",
"Value": "2001-06-06",
"DataType": "DATE"
},
{
"Key": "testkey2",
"Value": "1",
"DataType": "NUMBER"
}
]
Retrieve Flow Parameters
Use the following command to retrieve parameters based on flow name and type:
tdm case flow --flowname <flowname> --flowtype <flowtype>
Insecure Mode
tdm case flow --flowname <flowname> --flowtype <flowtype> --insecure
Suite¶
The suite command is used to execute test suites consisting of multiple test cases.
Run a Test Suite with Parameters
tdm suite run --id <id> --param-path "</path/to/suiteparams.json>"
Run a Test Suite (Default Parameters)
tdm suite run --id <id>
Insecure Mode
tdm suite run --id <id> --param-path "</path/to/suiteparams.json>" --insecure
Suite Parameter File Format
Suite execution parameters must be defined in JSON format:
[
{
"caseId": 1,
"testCaseName": "TestSuite1",
"caseParameterList": [
{
"key": "startDate",
"value": "2022-01-01",
"dataType": "DATE"
},
{
"key": "limit",
"value": "10",
"dataType": "NUMBER"
}
]
},
{
"caseId": 2,
"testCaseName": "TestSuite2"
},
{
"caseId": 3,
"testCaseName": "TestSuite3"
}
]
Help¶
The help command provides detailed usage information for all commands and flags.
General Help
tdm --help
Command-Specific Help
tdm login --help
tdm case run --help
tdm case flow --help
tdm suite run --help
Summary¶
TDM CLI provides a streamlined and automation-friendly interface for executing test data workflows. It integrates easily with CI/CD pipelines, enabling consistent, repeatable, and scalable test data operations across environments.