Skip to content

Commit f26a676

Browse files
committed
fix: add tracking for runAppTestsOnBrowserStack function execution and errors
1 parent 8cabf4a commit f26a676

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/tools/appautomate.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ async function runAppTestsOnBrowserStack(args: {
148148
project: string;
149149
detectedAutomationFramework: string;
150150
}): Promise<CallToolResult> {
151-
152151
switch (args.detectedAutomationFramework) {
153152
case AppTestPlatform.ESPRESSO: {
154153
try {
@@ -257,8 +256,17 @@ export default function addAppAutomationTools(server: McpServer) {
257256
},
258257
async (args) => {
259258
try {
259+
trackMCP(
260+
"runAppTestsOnBrowserStack",
261+
server.server.getClientVersion()!,
262+
);
260263
return await runAppTestsOnBrowserStack(args);
261264
} catch (error) {
265+
trackMCP(
266+
"runAppTestsOnBrowserStack",
267+
server.server.getClientVersion()!,
268+
error,
269+
);
262270
const errorMessage =
263271
error instanceof Error ? error.message : "Unknown error";
264272
return {

0 commit comments

Comments
 (0)