Skip to content

Commit 47c707e

Browse files
committed
Add Python SDK setup instructions to commands
1 parent aedc11b commit 47c707e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/tools/sdk-utils/bstack/commands.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,18 @@ Alternative setup for Gradle users:
9999
${GRADLE_SETUP_INSTRUCTIONS}`;
100100
}
101101

102+
function getPythonSDKInstructions(
103+
username: string,
104+
accessKey: string,
105+
): string {
106+
return `---STEP---
107+
Install BrowserStack Python SDK and setup:
108+
\`\`\`bash
109+
pip install browserstack-sdk
110+
browserstack-sdk setup --username "${username}" --key "${accessKey}"
111+
\`\`\``;
112+
}
113+
102114
// Main function to get SDK setup commands based on language and framework
103115
export function getSDKPrefixCommand(
104116
language: SDKSupportedLanguage,
@@ -112,7 +124,8 @@ export function getSDKPrefixCommand(
112124

113125
case "java":
114126
return getJavaSDKInstructions(framework, username, accessKey);
115-
127+
case "python":
128+
return getPythonSDKInstructions(username, accessKey);
116129
default:
117130
return "";
118131
}

0 commit comments

Comments
 (0)