Skip to content

Commit

Permalink
fix profile description && rm trash config
Browse files Browse the repository at this point in the history
  • Loading branch information
s.chepkasov committed May 18, 2020
1 parent 0b6e97d commit 301ba4e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
47 changes: 25 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,36 +118,39 @@ import ru.tinkoff.gatling.profile._

Using:

*resources/profile/sample_profile.conf*
*resources/profile.conf*
```
{
"profile": {
"name": "awesome_profile",
"requests": {
"awesome/url_1/": {
"method": "GET",
"url": "awesome/url_1/",
"prob": 33.33333
},
"awesome/url_1/sub_url_2": {
"method": "GET",
"url": "awesome/url_1/sub_url_2",
"prob": 66.66667
}
}
}
"name": "awesome_profile",
"requests": [
{
"request-name": "POST first",
"method": "POST",
"url": "awesome/url_1/",
"prob": 33.33333
},
{
"request-name": "GET second"
"method": "GET",
"url": "awesome/url_1/sub_url_2",
"prob": 66.66667
}
]
}
```

*Simulation setUp*
```scala
val profileConfig: Config = ProfileConfigManager.profileConfigLoad(s"profile/sample_profile.conf")
val profileConfigName = "profile.conf"
val someTestPlan = constantUsersPerSec(intensity) during stageDuration
val httpProtocol = http.baseUrl(baseUrl)

setUp(
HttpProfile(profileConfig)
setUp(
HttpProfile(profileConfigName)
.build()
.inject(someTestPlan)
.protocols(someProtocol)
)

).protocols(httpProtocol)
.maxDuration(testDuration)
```

### templates
Expand Down

This file was deleted.

0 comments on commit 301ba4e

Please sign in to comment.