Skip to content

Commit 03983d5

Browse files
fix: update progress messages for LCA build and test case generation
1 parent 9349ba3 commit 03983d5

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/tools/testmanagement-utils/TCG-utils/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export async function pollScenariosTestDetails(
230230
progressToken: context._meta?.progressToken ?? traceId,
231231
progress: iteratorCount,
232232
total,
233-
message: `Fetched ${array.length} test cases for scenario ${iteratorCount} out of ${total}`,
233+
message: `Generated ${array.length} test cases for scenario ${iteratorCount} out of ${total}`,
234234
},
235235
});
236236
}
@@ -315,7 +315,7 @@ export async function bulkCreateTestCases(
315315
method: "notifications/progress",
316316
params: {
317317
progressToken: context._meta?.progressToken ?? "bulk-create",
318-
message: `Bulk create done for scenario ${doneCount} of ${total}`,
318+
message: `Saving and creating test cases...`,
319319
total,
320320
progress: doneCount,
321321
},
@@ -326,7 +326,7 @@ export async function bulkCreateTestCases(
326326
method: "notifications/progress",
327327
params: {
328328
progressToken: context._meta?.progressToken ?? traceId,
329-
message: `Bulk create failed for scenario ${id}: ${error instanceof Error ? error.message : "Unknown error"}`,
329+
message: `Creation failed for scenario ${id}: ${error instanceof Error ? error.message : "Unknown error"}`,
330330
total,
331331
progress: doneCount,
332332
},

src/tools/testmanagement-utils/create-lca-steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const CreateLCAStepsSchema = z.object({
2727
})
2828
.optional()
2929
.describe(
30-
"Optional credentials for authentication. Extract from the test case details if provided in it. This is required for the test cases which require authentication."
30+
"Optional credentials for authentication. Extract from the test case details if provided in it. This is required for the test cases which require authentication.",
3131
),
3232
local_enabled: z
3333
.boolean()

src/tools/testmanagement-utils/poll-lca-status.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function pollLCAStatus(
4646
method: "notifications/progress",
4747
params: {
4848
progressToken: context._meta?.progressToken ?? `lca-${testCaseId}`,
49-
message: `Starting LCA build polling for test case ${testCaseId}...`,
49+
message: `Generating Low Code Automation...`,
5050
progress: 0,
5151
total: 100,
5252
},
@@ -60,7 +60,7 @@ export async function pollLCAStatus(
6060
method: "notifications/progress",
6161
params: {
6262
progressToken: context._meta?.progressToken ?? `lca-${testCaseId}`,
63-
message: `Initial wait completed. Starting active polling for LCA build status...`,
63+
message: `Half of the Low Code Automation is done, Wait for some more time...`,
6464
progress: 10,
6565
total: 100,
6666
},
@@ -133,7 +133,6 @@ export async function pollLCAStatus(
133133
Math.floor((elapsedTime / maxWaitTimeMs) * 90) + 10,
134134
);
135135

136-
137136
await context.sendNotification({
138137
method: "notifications/progress",
139138
params: {

0 commit comments

Comments
 (0)