Skip to content

Commit 6d9fae1

Browse files
committed
++ enhancing instructions
1 parent f7259ed commit 6d9fae1

File tree

2 files changed

+3
-44
lines changed

2 files changed

+3
-44
lines changed

src/tools/sdk-utils/constants.ts

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -87,47 +87,6 @@ gradle clean test
8787
\`\`\`
8888
`;
8989

90-
const generateJUnitInstructions = (framework: string) => `
91-
Set BrowserStack credentials as environment variables:
92-
\`\`\`bash
93-
export BROWSERSTACK_USERNAME="${config.browserstackUsername}"
94-
export BROWSERSTACK_ACCESS_KEY="${config.browserstackAccessKey}"
95-
\`\`\`
96-
97-
For Maven projects, run the following command to add browserstack-java-sdk dependency and browserstack.yml file:
98-
\`\`\`bash
99-
mvn archetype:generate -B -DarchetypeGroupId=com.browserstack \\
100-
-DarchetypeArtifactId=browserstack-sdk-archetype-integrate -DarchetypeVersion=1.0 \\
101-
-DgroupId=com.browserstack -DartifactId=browserstack-sdk-archetype-integrate -Dversion=1.0 \\
102-
-DBROWSERSTACK_USERNAME=${config.browserstackUsername} -DBROWSERSTACK_ACCESS_KEY=${config.browserstackAccessKey} \\
103-
-DBROWSERSTACK_FRAMEWORK=${framework}
104-
\`\`\`
105-
106-
For Gradle projects, add to build.gradle:
107-
\`\`\`groovy
108-
implementation 'com.browserstack:browserstack-java-sdk:latest.release'
109-
110-
def browserstackSDKArtifact = configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts.find { it.name == 'browserstack-java-sdk' }
111-
112-
test {
113-
jvmArgs "-javaagent:\${browserstackSDKArtifact.file}"
114-
}
115-
\`\`\`
116-
117-
Run tests using:
118-
\`\`\`bash
119-
mvn clean test
120-
\`\`\`
121-
122-
Or for Gradle:
123-
\`\`\`bash
124-
gradle clean test
125-
\`\`\`
126-
`;
127-
128-
const junit4Instructions = generateJUnitInstructions("junit4");
129-
const junit5Instructions = generateJUnitInstructions("junit5");
130-
13190
/**
13291
* ---------- CSharp INSTRUCTIONS ----------
13392
*/
@@ -458,8 +417,8 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
458417
selenium: {
459418
testng: { instructions: javaInstructions },
460419
cucumber: { instructions: javaInstructions },
461-
junit4: { instructions: junit4Instructions },
462-
junit5: { instructions: junit5Instructions },
420+
junit4: { instructions: javaInstructions },
421+
junit5: { instructions: javaInstructions },
463422
},
464423
},
465424
csharp: {

src/tools/sdk-utils/instructions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function generateBrowserStackYMLInstructions(
4949
# A single name for your project to organize all your tests. This is required for Percy.
5050
projectName: BrowserStack Sample
5151
# A name for the group of tests you are running
52-
build: mcp-run
52+
buildName: mcp-run
5353
5454
# =======================================
5555
# Platforms (Browsers / Devices to test)

0 commit comments

Comments
 (0)