Skip to content

Commit e23cc45

Browse files
committed
update README.md
1 parent 6d69e64 commit e23cc45

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
An example project for http load testing using [locust4j](https://github.com/myzhan/locust4j), written in Java and Kotlin.
66

7+
This is not a library of any sort, just an example on how to use Locust and Locust4j to write load tests for more complex scenarios (dependent subsequent requests, ...)
8+
79
Inspired by/based on [locust4j-http](https://github.com/myzhan/locust4j-http)
810

911
## Run
@@ -12,8 +14,10 @@ App acts as Locust slave that connects to Locust master, hence you need to also
1214

1315
### Run slave
1416

15-
- build and package with Maven (`mvn package`)
16-
- run jar
17+
- Build and package with Maven (`mvn package`)
18+
- Run jar (`java -jar locust4j-load-http-1.0-SNAPSHOT-fat.jar`)
19+
20+
Jar accepts arguments to configure Locust, see [ConfigurationContext](https://github.com/nejckorasa/locust4j-http-load/blob/master/src/main/java/io/github/nejckorasa/locust4j/http/config/ConfigurationContext.java).
1721

1822
### Run master (Bash)
1923

@@ -57,3 +61,9 @@ $ docker run --rm --name master-locust -p 8089:8089 -p 5557:5557 -p 5558:5558 -v
5761
## Write your own task objects
5862

5963
See [GetExampleTask](https://github.com/nejckorasa/locust4j-http-load/blob/master/src/main/kotlin/io/github/nejckorasa/locust4j/http/task/GetExampleTask.kt) and [PostExampleTask](https://github.com/nejckorasa/locust4j-http-load/blob/master/src/main/kotlin/io/github/nejckorasa/locust4j/http/task/PostExampleTask.kt) for examples
64+
65+
66+
## Http
67+
68+
Http requests are made using [HttpRequests](https://github.com/nejckorasa/locust4j-http-load/blob/master/src/main/kotlin/io/github/nejckorasa/locust4j/http/HttpRequests.kt), with options to record or not record the request with Locust.
69+

src/main/java/io/github/nejckorasa/locust4j/http/client/HttpClientSingleton.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
66

77
/**
8-
* Creates and holds singelton instance of CloseableHttpClient
8+
* Creates and holds singleton instance of CloseableHttpClient
99
*/
1010
public class HttpClientSingleton {
1111

0 commit comments

Comments
 (0)