Skip to content

Commit c4ce606

Browse files
authored
Merge pull request #1218 from amanchopra1905/stage
selenium junit changes
2 parents f2364d4 + b47eb46 commit c4ce606

File tree

3 files changed

+117
-390
lines changed

3 files changed

+117
-390
lines changed

docs/java-frameworks.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Download or Clone the code sample for the Java from the LambdaTest GitHub reposi
6262
<a href="https://github.com/LambdaTest/java-selenium-sample" className="github__anchor" target="_blank"><img loading="lazy" src={require('../assets/images/icons/github.png').default} alt="Image" className="doc_img"/> View on GitHub</a>
6363
:::
6464

65-
```bash
65+
```bash title="terminal"
6666
git clone https://github.com/LambdaTest/java-selenium-sample.git
6767
cd java-selenium-sample
6868
```
@@ -76,10 +76,14 @@ public static String hubURL = "https://hub.lambdatest.com/wd/hub";
7676
## Step 2: Update the dependencies
7777
Run the command below to check for outdated dependencies. Review updates carefully before modifying your `pom.xml`, as they might not be compatible with your code.
7878

79-
```bash
79+
```bash title="terminal"
8080
mvn versions:display-dependency-updates
8181
```
8282

83+
```xml reference
84+
https://github.com/LambdaTest/java-selenium-sample/blob/main/pom.xml
85+
```
86+
8387
## Step 3: Configure your test Capabilities
8488
LambdaTest requires specific capabilities to set the browser, browser version, operating system, and other configurations for your test.
8589

@@ -95,7 +99,7 @@ capabilities.setCapability("name", "LambdaTestJavaSample");
9599
```
96100

97101
:::tip
98-
You can generate capabilities for your test requirements with the help of our inbuilt :link: **[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/)**.
102+
Use our [Capability Generator](https://www.lambdatest.com/capabilities-generator/) to select from a wide range of options for customizing your tests.
99103
:::
100104

101105
## Step 4: Setup your LambdaTest credentials
@@ -124,7 +128,7 @@ set LT_ACCESS_KEY="${ YOUR_LAMBDATEST_ACCESS_KEY()}"`}
124128

125129
## Step 5: Execute your test
126130
Replace the `TEST_FILE_NAME` in the below command with your desired test file to execute that particular test on LambdaTest Grid:
127-
```bash
131+
```bash title="terminal"
128132
mvn clean install exec:java -Dexec.mainClass="com.lambdatest.TEST_FILE_NAME" -Dexec.classpathScope=test -e
129133
```
130134

0 commit comments

Comments
 (0)