@@ -55,7 +55,7 @@ async function takeAppScreenshot(args: {
55
55
desiredPlatformVersion : string ;
56
56
appPath ?: string ;
57
57
desiredPhone : string ;
58
- browserstack_app_url ?: string ;
58
+ browserstackAppUrl ?: string ;
59
59
config : BrowserStackConfig ;
60
60
} ) : Promise < CallToolResult > {
61
61
let driver ;
@@ -65,7 +65,7 @@ async function takeAppScreenshot(args: {
65
65
desiredPlatform,
66
66
desiredPhone,
67
67
appPath,
68
- browserstack_app_url ,
68
+ browserstackAppUrl ,
69
69
config,
70
70
} = args ;
71
71
let { desiredPlatformVersion } = args ;
@@ -106,13 +106,13 @@ async function takeAppScreenshot(args: {
106
106
const [ username , password ] = authString . split ( ":" ) ;
107
107
108
108
let app_url : string ;
109
- if ( browserstack_app_url ) {
110
- app_url = browserstack_app_url ;
109
+ if ( browserstackAppUrl ) {
110
+ app_url = browserstackAppUrl ;
111
111
logger . info ( `Using provided BrowserStack app URL: ${ app_url } ` ) ;
112
112
} else {
113
113
if ( ! appPath ) {
114
114
throw new Error (
115
- "appPath is required when browserstack_app_url is not provided" ,
115
+ "appPath is required when browserstackAppUrl is not provided" ,
116
116
) ;
117
117
}
118
118
app_url = await uploadApp ( appPath , username , password ) ;
@@ -177,7 +177,7 @@ async function runAppTestsOnBrowserStack(
177
177
args : {
178
178
appPath ?: string ;
179
179
testSuitePath ?: string ;
180
- browserstack_app_url ?: string ;
180
+ browserstackAppUrl ?: string ;
181
181
browserstack_test_suite_url ?: string ;
182
182
devices : string [ ] ;
183
183
project : string ;
@@ -186,9 +186,9 @@ async function runAppTestsOnBrowserStack(
186
186
config : BrowserStackConfig ,
187
187
) : Promise < CallToolResult > {
188
188
// Validate that either paths or URLs are provided for both app and test suite
189
- if ( ! args . browserstack_app_url && ! args . appPath ) {
189
+ if ( ! args . browserstackAppUrl && ! args . appPath ) {
190
190
throw new Error (
191
- "appPath is required when browserstack_app_url is not provided" ,
191
+ "appPath is required when browserstackAppUrl is not provided" ,
192
192
) ;
193
193
}
194
194
if ( ! args . browserstack_test_suite_url && ! args . testSuitePath ) {
@@ -201,8 +201,8 @@ async function runAppTestsOnBrowserStack(
201
201
case AppTestPlatform . ESPRESSO : {
202
202
try {
203
203
let app_url : string ;
204
- if ( args . browserstack_app_url ) {
205
- app_url = args . browserstack_app_url ;
204
+ if ( args . browserstackAppUrl ) {
205
+ app_url = args . browserstackAppUrl ;
206
206
logger . info ( `Using provided BrowserStack app URL: ${ app_url } ` ) ;
207
207
} else {
208
208
app_url = await uploadEspressoApp ( args . appPath ! , config ) ;
@@ -246,8 +246,8 @@ async function runAppTestsOnBrowserStack(
246
246
case AppTestPlatform . XCUITEST : {
247
247
try {
248
248
let app_url : string ;
249
- if ( args . browserstack_app_url ) {
250
- app_url = args . browserstack_app_url ;
249
+ if ( args . browserstackAppUrl ) {
250
+ app_url = args . browserstackAppUrl ;
251
251
logger . info ( `Using provided BrowserStack app URL: ${ app_url } ` ) ;
252
252
} else {
253
253
app_url = await uploadXcuiApp ( args . appPath ! , config ) ;
0 commit comments