You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Array of test IDs to fetch RCA data for (maximum 3 IDs). If not provided, use the listTestIds tool get all failed testcases. If more than 3 IDs are provided, only the first 3 will be processed."
10
+
),
11
+
};
12
+
13
+
exportconstGET_BUILD_ID_PARAMS={
14
+
projectName: z
15
+
.string()
16
+
.describe(
17
+
"The Browserstack project name used while creation of test run. Check browserstack.yml or similar project configuration files. If found extract it and provide to user, IF not found or unsure, prompt the user for this value. Do not make assumptions"
18
+
),
19
+
buildName: z
20
+
.string()
21
+
.describe(
22
+
"The Browserstack build name used while creation of test run. Check browserstack.yml or similar project configuration files. If found extract it and provide to user, IF not found or unsure, prompt the user for this value. Do not make assumptions"
23
+
),
24
+
};
25
+
26
+
exportconstLIST_TEST_IDS_PARAMS={
27
+
buildId: z
28
+
.string()
29
+
.describe(
30
+
"The Browserstack Build ID of the test run. If not known, use the getBuildId tool to fetch it using project and build name"
31
+
),
32
+
status: z
33
+
.nativeEnum(TestStatus)
34
+
.describe(
35
+
"Filter tests by status. If not provided, all tests are returned. Example for RCA usecase always use failed status"
@@ -127,14 +127,7 @@ export default function addRCATools(
127
127
tools.fetchRCA=server.tool(
128
128
"fetchRCA",
129
129
"Retrieves AI-RCA (Root Cause Analysis) data for a BrowserStack Automate and App-Automate session and provides insights into test failures.",
130
-
{
131
-
testId: z
132
-
.array(z.string())
133
-
.max(3)
134
-
.describe(
135
-
"Array of test IDs to fetch RCA data for (maximum 3 IDs). If not provided, use the listTestIds tool get all failed testcases. If more than 3 IDs are provided, only the first 3 will be processed.",
136
-
),
137
-
},
130
+
FETCH_RCA_PARAMS,
138
131
async(args)=>{
139
132
try{
140
133
returnawaitfetchRCADataTool(args,config);
@@ -156,18 +149,7 @@ export default function addRCATools(
156
149
tools.getBuildId=server.tool(
157
150
"getBuildId",
158
151
"Get the BrowserStack build ID for a given project and build name.",
159
-
{
160
-
projectName: z
161
-
.string()
162
-
.describe(
163
-
"The Browserstack project name used while creation of test run. Check browserstack.yml or similar project configuration files. If found extract it and provide to user, IF not found or unsure, prompt the user for this value. Do not make assumptions",
164
-
),
165
-
buildName: z
166
-
.string()
167
-
.describe(
168
-
"The Browserstack build name used while creation of test run. Check browserstack.yml or similar project configuration files. If found extract it and provide to user, IF not found or unsure, prompt the user for this value. Do not make assumptions",
169
-
),
170
-
},
152
+
GET_BUILD_ID_PARAMS,
171
153
async(args)=>{
172
154
try{
173
155
returnawaitgetBuildIdTool(args,config);
@@ -189,18 +171,7 @@ export default function addRCATools(
189
171
tools.listTestIds=server.tool(
190
172
"listTestIds",
191
173
"List test IDs from a BrowserStack Automate build, optionally filtered by status",
192
-
{
193
-
buildId: z
194
-
.string()
195
-
.describe(
196
-
"The Browserstack Build ID of the test run. If not known, use the getBuildId tool to fetch it using project and build name",
197
-
),
198
-
status: z
199
-
.nativeEnum(TestStatus)
200
-
.describe(
201
-
"Filter tests by status. If not provided, all tests are returned. Example for RCA usecase always use failed status",
0 commit comments