Starting from TDM 10.1, AI-assisted test data provisioning can be integrated into CI/CD pipelines. A CI/CD pipeline or an external application can provide a user story with its test cases to the TDM Agent. For each test case, the agent identifies the relevant TDM task and execution parameters, saves an execution draft, and returns a URL for executing the task with the required parameters.
Note: The API prepares the executions but does not execute them. The task is executed only when the returned stagedExecutionUrl is invoked, or when a user opens the draft in the TDM App and executes it.
The integration flow is as follows:
stagedExecutionUrl to start the task execution, or open the returned reviewUrl to review the execution parameters in the TDM App before executing the task.The APIs run with the permissions of the calling user. Each test case is prepared with the identity and Fabric roles of the user who submitted the request.
/test-data-agent/createTask
POST
TDM_AI
{
"externalUserStoryId": "1",
"name": "Financial Risk Warning",
"description": "Display Financial Risk Warning for High-Value Loan Customers...",
"sourceEnvironment": "Production",
"targetEnvironment": "UAT",
"businessEntity": "Customer",
"cases": [
{
"caseId": "1.1",
"content": "Customer has a personal loan above 100,000...",
"requiredCount": 5
},
{
"caseId": "1.2",
"content": "Customer has no outstanding loans..."
}
]
}
The API returns the job ID immediately and prepares the test cases in the background, in a Fabric batch with one entity per test case.
The API waits a few seconds for the batch to start. If it has not started by then, both attributes are null, and the status API returns them once the batch has started.
{
"jobId": "8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c",
"status": "ACCEPTED",
"testCaseCount": 2,
"submittedAt": "2026-08-31T09:14:22.031Z",
"batchId": "tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"batchUrl": "https://<host>/k2view/app/admin/batches/batch-monitor/tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"message": "Request accepted. Preparing 2 test cases."
}
/test-data-agent/status/{jobId}
GET
TDM_AI
The API returns the job attributes (jobId, userStoryId, name, status, sourceEnvironment, targetEnvironment, startedAt, completedAt, batchId, batchUrl) and a cases array with the following information per test case:
The job-level status is derived from the test case statuses:
Note: A test case can show READY shortly before its reasoning is written. Read the reasoning once the job status is COMPLETED.
The status API reports on the preparation only. It does not report on executions started from the prepared drafts; use the TDM execution APIs to monitor them.
{
"jobId": "8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c",
"userStoryId": "1",
"name": "Financial Risk Warning",
"status": "COMPLETED",
"sourceEnvironment": "Production",
"targetEnvironment": "UAT",
"startedAt": "2026-08-31T09:14:22.031Z",
"completedAt": "2026-08-31T09:17:40.114Z",
"batchId": "tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"batchUrl": "https://<host>/k2view/app/admin/batches/batch-monitor/tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"cases": [
{
"caseId": "1.1",
"status": "READY",
"reasoning": "Prepared task 128 'Copy Gold customers' to extract and load 5 customers from Production to UAT...",
"stagedExecutionUrl": "https://<host>/k2view/api/task/128/forced/false/startTask?taskExecutionId=5417",
"reviewUrl": "https://<host>/k2view/app/TDM/tasks/execute?taskExecutionId=5417",
"agentSessionId": "tdmai-8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c-1-1",
"taskId": 128,
"executionId": 5417
},
{
"caseId": "1.2",
"status": "FAILED",
"reasoning": "No existing task can satisfy this test case...",
"agentSessionId": "tdmai-8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c-1-2"
}
]
}
Starting from TDM 10.1, AI-assisted test data provisioning can be integrated into CI/CD pipelines. A CI/CD pipeline or an external application can provide a user story with its test cases to the TDM Agent. For each test case, the agent identifies the relevant TDM task and execution parameters, saves an execution draft, and returns a URL for executing the task with the required parameters.
Note: The API prepares the executions but does not execute them. The task is executed only when the returned stagedExecutionUrl is invoked, or when a user opens the draft in the TDM App and executes it.
The integration flow is as follows:
stagedExecutionUrl to start the task execution, or open the returned reviewUrl to review the execution parameters in the TDM App before executing the task.The APIs run with the permissions of the calling user. Each test case is prepared with the identity and Fabric roles of the user who submitted the request.
/test-data-agent/createTask
POST
TDM_AI
{
"externalUserStoryId": "1",
"name": "Financial Risk Warning",
"description": "Display Financial Risk Warning for High-Value Loan Customers...",
"sourceEnvironment": "Production",
"targetEnvironment": "UAT",
"businessEntity": "Customer",
"cases": [
{
"caseId": "1.1",
"content": "Customer has a personal loan above 100,000...",
"requiredCount": 5
},
{
"caseId": "1.2",
"content": "Customer has no outstanding loans..."
}
]
}
The API returns the job ID immediately and prepares the test cases in the background, in a Fabric batch with one entity per test case.
The API waits a few seconds for the batch to start. If it has not started by then, both attributes are null, and the status API returns them once the batch has started.
{
"jobId": "8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c",
"status": "ACCEPTED",
"testCaseCount": 2,
"submittedAt": "2026-08-31T09:14:22.031Z",
"batchId": "tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"batchUrl": "https://<host>/k2view/app/admin/batches/batch-monitor/tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"message": "Request accepted. Preparing 2 test cases."
}
/test-data-agent/status/{jobId}
GET
TDM_AI
The API returns the job attributes (jobId, userStoryId, name, status, sourceEnvironment, targetEnvironment, startedAt, completedAt, batchId, batchUrl) and a cases array with the following information per test case:
The job-level status is derived from the test case statuses:
Note: A test case can show READY shortly before its reasoning is written. Read the reasoning once the job status is COMPLETED.
The status API reports on the preparation only. It does not report on executions started from the prepared drafts; use the TDM execution APIs to monitor them.
{
"jobId": "8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c",
"userStoryId": "1",
"name": "Financial Risk Warning",
"status": "COMPLETED",
"sourceEnvironment": "Production",
"targetEnvironment": "UAT",
"startedAt": "2026-08-31T09:14:22.031Z",
"completedAt": "2026-08-31T09:17:40.114Z",
"batchId": "tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"batchUrl": "https://<host>/k2view/app/admin/batches/batch-monitor/tdmai_8f1b0c8e_3f0a9c1e-52d4-4b8e-9a6f-0d7c2e1b4a55",
"cases": [
{
"caseId": "1.1",
"status": "READY",
"reasoning": "Prepared task 128 'Copy Gold customers' to extract and load 5 customers from Production to UAT...",
"stagedExecutionUrl": "https://<host>/k2view/api/task/128/forced/false/startTask?taskExecutionId=5417",
"reviewUrl": "https://<host>/k2view/app/TDM/tasks/execute?taskExecutionId=5417",
"agentSessionId": "tdmai-8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c-1-1",
"taskId": 128,
"executionId": 5417
},
{
"caseId": "1.2",
"status": "FAILED",
"reasoning": "No existing task can satisfy this test case...",
"agentSessionId": "tdmai-8f1b0c8e-6a1e-4a7b-9f1d-2c3e4f5a6b7c-1-2"
}
]
}