File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -33,27 +33,34 @@ browserstack-sdk python <path-to-test-file>
33
33
\`\`\`
34
34
` ;
35
35
36
+ const ins =
37
+ '<argLine>-javaagent:"${com.browserstack:browserstack-java-sdk:jar}"</argLine>' ;
36
38
37
39
const javaInstructions = `
38
- Add the following dependency to your pom.xml:
40
+ Add the following dependency to your \` pom.xml\` :
39
41
\`\`\`xml
40
42
<dependency>
41
43
<groupId>com.browserstack</groupId>
42
44
<artifactId>browserstack-java-sdk</artifactId>
43
45
<version>LATEST</version>
44
46
<scope>compile</scope>
45
47
</dependency>
48
+
49
+ ${ ins }
46
50
\`\`\`
47
51
48
- For Gradle projects, add to build.gradle:
52
+ For Gradle projects, add to \` build.gradle\` :
49
53
\`\`\`groovy
50
54
dependencies {
51
55
implementation 'com.browserstack:browserstack-java-sdk:LATEST'
52
56
}
53
57
\`\`\`
54
58
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
+ \`\`\`
57
64
58
65
Run tests using:
59
66
\`\`\`bash
You can’t perform that action at this time.
0 commit comments