Skip to content

Commit 12db0bc

Browse files
committed
init: framework sub-folders - testng
1 parent faa2bc7 commit 12db0bc

File tree

7 files changed

+74
-11
lines changed

7 files changed

+74
-11
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
target/
2-
log
1+
**/target/
2+
**/log
3+
**/browserstack-cli
4+
**/.DS_Store

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,24 @@
99
1. **Clone the repository**
1010

1111
```sh
12-
git clone https://github.com/browserstack/browserstack-playwright-load-testing-sample.git
13-
cd testng-browserstack
12+
git clone https://github.com/browserstack/browserstack-selenium-load-testing-sample.git
13+
cd browserstack-selenium-load-testing-sample
1414
```
1515

16-
2. **Install Maven dependencies**
16+
2. **Choose the framework to run**
17+
18+
cd into the the respective framework folder, for instance to run the testng sample:
19+
```sh
20+
cd testng
21+
```
22+
23+
3. **Install Maven dependencies**
1724

1825
```sh
1926
mvn compile
2027
```
2128

22-
3. **Install BrowserStack CLI**
29+
4. **Install BrowserStack CLI**
2330

2431
Download the appropriate BrowserStack CLI binary based on your operating system:
2532

@@ -40,14 +47,14 @@
4047

4148
> Place the downloaded `browserstack-cli` binary in the root of your project.
4249
43-
4. **Run tests using BrowserStack CLI**
50+
5. **Run tests using BrowserStack CLI**
4451

4552
```sh
4653
./browserstack-cli load run
4754
```
4855

49-
5. **View Test Results**
56+
6. **View Test Results**
5057

5158
Visit the [BrowserStack Load-Testing Dashboard](https://load.browserstack.com/projects) to monitor and analyze your test runs.
5259

53-
---
60+
---

browserstack-load.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ language: java
4040
# Add list of file paths under 'testConfigs' to define which configuration files should be used to run tests. Example: path to 'playwright.config.ts' for Playwright (Node.js), path to 'testng.xml' for Selenium (TestNG).
4141
files:
4242
dependencies:
43-
- ./pom.xml
43+
- ./pom.xml
4444
testConfigs:
45-
- ./src/test/resources/testng.xml
45+
- ./src/test/resources/testng.xml

testng/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# browserstack-selenium-load-testing-sample
2+
3+
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
4+
5+
## Getting Started
6+
7+
### Run Sample Build
8+
9+
1. **Clone the repository**
10+
11+
```sh
12+
git clone https://github.com/browserstack/browserstack-selenium-load-testing-sample.git
13+
cd browserstack-selenium-load-testing-sample
14+
cd testng
15+
```
16+
17+
2. **Install Maven dependencies**
18+
19+
```sh
20+
mvn compile
21+
```
22+
23+
3. **Install BrowserStack CLI**
24+
25+
Download the appropriate BrowserStack CLI binary based on your operating system:
26+
27+
- **macOS x86**
28+
[browserstack-cli-macOS-x86](https://load-api.browserstack.com/api/v1/binary?os=macos&arch=x64)
29+
30+
- **macOS ARM**
31+
[browserstack-cli-macOS-arm](https://load-api.browserstack.com/api/v1/binary?os=macos&arch=arm64)
32+
33+
- **Windows x86**
34+
[browserstack-cli-windows](https://load-api.browserstack.com/api/v1/binary?os=win&arch=x64)
35+
36+
- **Linux x86**
37+
[browserstack-cli-linux-x86](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=arm64)
38+
39+
- **Linux ARM**
40+
[browserstack-cli-linux-arm](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=x64)
41+
42+
> Place the downloaded `browserstack-cli` binary in the root of your project.
43+
44+
4. **Run tests using BrowserStack CLI**
45+
46+
```sh
47+
./browserstack-cli load run
48+
```
49+
50+
5. **View Test Results**
51+
52+
Visit the [BrowserStack Load-Testing Dashboard](https://load.browserstack.com/projects) to monitor and analyze your test runs.
53+
54+
---
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)