Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Bosonchenko committed Jul 10, 2015
1 parent dea0fda commit 53b04cc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Inspired by `apache ab testing tool`. Created with `golang`. Add few features.
You can use:

- File with post data strings
- File with urls string
- File with urls strings
- Headers file
- Realtime stats
- Send result to Slack
Expand All @@ -15,6 +15,30 @@ run ./ab-go for usage

## run options:

#### -n
Number of requests sended to server.

#### -c
Number of concurrency requests sended in one batch.

#### -d
String with post data

#### -p
String with filename contains post data strings

#### -u
String with filename contains urls strings

#### -H
String with header

#### -h
String with filename contains headers strings

#### -t
Number of milliseconds request timeout

#### -test
Testing mode. Run cycled tests with send result to graphics. R
Run with this flag and open `localhost:9999` (default port) in your browser
Expand All @@ -24,6 +48,11 @@ Data is updated every second.
#### -port
Embedded web-serser port. Used with `-test` flag

#### -slack
String with Slack endpoint url for sending results.

#### -name
String of tested api name, who will be presented in results message in Slask. Used with `-slack` flag

-----------------
#### build:
Expand Down
2 changes: 1 addition & 1 deletion service/arguments.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func ReadFlags(){
flag.StringVar(&flags.ApiName, "name", "test", "a string, tested api name")
flag.IntVar(&flags.Timeout,"t", 3000, "a number, milliseconds request timeout")
flag.BoolVar(&flags.Tesing,"test", false, "a flag, testing mode (repeat test)")
flag.BoolVar(&flags.Web,"web", false, "a flag, web mode (see localhost:9999 for results)")
//flag.BoolVar(&flags.Web,"web", false, "a flag, web mode (see localhost:9999 for results)")
flags.Url = os.Args[len(os.Args) - 1]
flag.Parse()
flag.Usage = func() {
Expand Down

0 comments on commit 53b04cc

Please sign in to comment.