Skip to content

Commit 86047a6

Browse files
committed
enhance Java instructions
1 parent 6fd06e2 commit 86047a6

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/tools/sdk-utils/constants.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,34 @@ browserstack-sdk python <path-to-test-file>
3333
\`\`\`
3434
`;
3535

36+
const ins =
37+
'<argLine>-javaagent:"${com.browserstack:browserstack-java-sdk:jar}"</argLine>';
3638

3739
const javaInstructions = `
38-
Add the following dependency to your pom.xml:
40+
Add the following dependency to your \`pom.xml\`:
3941
\`\`\`xml
4042
<dependency>
4143
<groupId>com.browserstack</groupId>
4244
<artifactId>browserstack-java-sdk</artifactId>
4345
<version>LATEST</version>
4446
<scope>compile</scope>
4547
</dependency>
48+
49+
${ins}
4650
\`\`\`
4751
48-
For Gradle projects, add to build.gradle:
52+
For Gradle projects, add to \`build.gradle\`:
4953
\`\`\`groovy
5054
dependencies {
5155
implementation 'com.browserstack:browserstack-java-sdk:LATEST'
5256
}
5357
\`\`\`
5458
55-
Inform user to export BROWSERSTACK_USERNAME=${config.browserstackUsername} and
56-
BROWSERSTACK_ACCESS_KEY=${config.browserstackAccessKey} as environment variables.
59+
Inform user to export:
60+
\`\`\`bash
61+
export BROWSERSTACK_USERNAME=${config.browserstackUsername}
62+
export BROWSERSTACK_ACCESS_KEY=${config.browserstackAccessKey}
63+
\`\`\`
5764
5865
Run tests using:
5966
\`\`\`bash

0 commit comments

Comments
 (0)