Skip to content

Commit 5553107

Browse files
committed
Readme+screenshot
1 parent 5662c70 commit 5553107

File tree

1 file changed

+17
-77
lines changed

1 file changed

+17
-77
lines changed

README.md

Lines changed: 17 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -21,109 +21,49 @@ git clone https://github.com/LambdaTest/junit-selenium-sample.git
2121

2222
Step 2. Inside Junit-selenium-sample folder, export the Lambda-test Credentials. You can get these from your automation dashboard.
2323

24-
<p align="center">
25-
<b>For Linux/macOS:</b>
26-
27-
```
28-
export LT_USERNAME="YOUR_USERNAME"
29-
export LT_ACCESS_KEY="YOUR ACCESS KEY"
30-
```
31-
<p align="center">
32-
<b>For Windows:</b>
33-
```
34-
set LT_USERNAME="YOUR_USERNAME"
35-
set LT_ACCESS_KEY="YOUR ACCESS KEY"
36-
```
37-
Step 3. To run your First Test.
38-
```
39-
mvn test -P single
40-
```
41-
Step 4. To run Parallel Test.
42-
```
43-
mvn test -P parallel
44-
```
45-
## See the Results
46-
You can see the results of the test on Lambdatest [Automation Dashboard](https://automation.lambdatest.com/build)
47-
![Dashboard](https://github.com/LambdaTest/junit-selenium-sample/dashboard)
48-
49-
## Testing Locally Hosted or Privately Hosted Projects
50-
51-
To help you perform cross browser testing of your locally stored web pages, LambdaTest provides an SSH(Secure Shell) tunnel connection with the name Lambda Tunnel. With Lambda Tunnel, you can test your locally hosted files before you make them live over the internet. You could even perform cross browser testing from different IP addresses belonging to various geographic locations. You can also use LambdaTest Tunnel to test web-apps and websites that are permissible inside your corporate firewall.
52-
53-
- Set tunnel value to True in test capabilities
54-
> OS specific instructions to download and setup tunnel binary can be found at the following links.
55-
>
56-
> - [Windows](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Windows)
57-
> - [Mac](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+MacOS)
58-
> - [Linux](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Linux)
59-
> After setting tunnel you can also see the active tunnel in our LambdaTest dashboard:
60-
> ![tunnel active](https://github.com/LambdaTest/Robot-Selenium-Sample/blob/master/tutorial-images/tn.PNG)
61-
62-
## About LambdaTest
63-
64-
[LambdaTest](https://www.lambdatest.com/) is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your [selenium automation testing](https://www.lambdatest.com/selenium-automation) to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.
65-
66-
# JUnit Selenium tutorial
67-
68-
![MSTest](https://www.lambdatest.com/resources/images/meta/With-Junit.jpg)
69-
70-
## Prerequisites
71-
72-
To run your test script using JUnit with Selenium, first you need to setup the environment.
73-
74-
1. Install JDK 1.6 or higher version
75-
2. Latest Selenium client and it’s WebDriver Bindings.
76-
3. Download Maven([Windows](https://maven.apache.org/download.cgi), [Linux](https://maven.apache.org/install.html), and [Mac](https://maven.apache.org/install.html)) or Ant. Maven supports JUnit out of the box. You would just have to define Selenium dependencies in it’s project object model file or pom.xml file.
77-
4. Optional - To test your locally or privately hosted files, you need LambdaTest Tunnel binary file.
78-
79-
## Steps to Run your First Test
80-
81-
Step 1. Clone the Python-Pytest-Selenium Repository.
82-
8324
```
84-
git clone https://github.com/LambdaTest/junit-selenium-sample.git
85-
```
86-
87-
Step 2. Inside Junit-selenium-sample folder, export the Lambda-test Credentials. You can get these from your automation dashboard.
88-
8925
<p align="center">
9026
<b>For Linux/macOS:</b>
91-
9227
```
28+
9329
export LT_USERNAME="YOUR_USERNAME"
9430
export LT_ACCESS_KEY="YOUR ACCESS KEY"
31+
9532
```
9633
<p align="center">
9734
<b>For Windows:</b>
9835
```
36+
9937
set LT_USERNAME="YOUR_USERNAME"
10038
set LT_ACCESS_KEY="YOUR ACCESS KEY"
39+
10140
```
10241
Step 3. To run your First Test.
10342
```
43+
10444
mvn test -P single
45+
10546
```
10647
Step 4. To run Parallel Test.
10748
```
49+
10850
mvn test -P parallel
51+
10952
```
11053
## See the Results
11154
You can see the results of the test on Lambdatest [Automation Dashboard](https://automation.lambdatest.com/build)
11255
![Dashboard](https://github.com/LambdaTest/junit-selenium-sample/dashboard)
11356
114-
## Testing Locally Hosted or Privately Hosted Projects
115-
57+
## Testing Locally Hosted or Privately Hosted Projects
11658
To help you perform cross browser testing of your locally stored web pages, LambdaTest provides an SSH(Secure Shell) tunnel connection with the name Lambda Tunnel. With Lambda Tunnel, you can test your locally hosted files before you make them live over the internet. You could even perform cross browser testing from different IP addresses belonging to various geographic locations. You can also use LambdaTest Tunnel to test web-apps and websites that are permissible inside your corporate firewall.
117-
118-
- Set tunnel value to True in test capabilities
119-
> OS specific instructions to download and setup tunnel binary can be found at the following links.
120-
>
121-
> - [Windows](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Windows)
122-
> - [Mac](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+MacOS)
123-
> - [Linux](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Linux)
124-
> After setting tunnel you can also see the active tunnel in our LambdaTest dashboard:
125-
> ![tunnel active](https://github.com/LambdaTest/Robot-Selenium-Sample/blob/master/tutorial-images/tn.PNG)
59+
* Set tunnel value to True in test capabilities
60+
> OS specific instructions to download and setup tunnel binary can be found at the following links.
61+
> - [Windows](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Windows)
62+
> - [Mac](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+MacOS)
63+
> - [Linux](https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Linux)
64+
After setting tunnel you can also see the active tunnel in our LambdaTest dashboard:
65+
![tunnel active](https://github.com/LambdaTest/Robot-Selenium-Sample/blob/master/tutorial-images/tn.PNG)
12666
12767
## About LambdaTest
128-
12968
[LambdaTest](https://www.lambdatest.com/) is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your [selenium automation testing](https://www.lambdatest.com/selenium-automation) to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.
69+
```

0 commit comments

Comments
 (0)