Created
January 16, 2014 18:15
-
-
Save aghuddleston/8460261 to your computer and use it in GitHub Desktop.
Gatling Simulation utilizing a circular feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mypackage | |
import com.excilys.ebi.gatling.core.Predef._ | |
import com.excilys.ebi.gatling.http.Predef._ | |
import com.excilys.ebi.gatling.http.Headers.Names._ | |
import akka.util.duration._ | |
import bootstrap._ | |
object FindUsersWithCircularFeed { | |
val usersSearchCrit = tsv("usersSearchCrit.tsv").circular | |
val scnFindUsers = scenario("Find Users with Circular feed") | |
.feed(usersSearchCrit) | |
.exec( | |
http("Find Users") | |
.post("/users/find") | |
.body("${crit}") | |
.asJSON | |
.check(jsonPath("$.success")) | |
) | |
} |
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crit | |
{""searchCrit":[{"searchBy":"USERID","searchText":"hu"}],"page":1,"start":0,"limit":100,"sort":[{"property":"userId","direction":"ASC""}]} | |
{""searchCrit":[{"searchBy":"USERID","searchText":"man"}],"page":1,"start":0,"limit":100,"sort":[{"property":"userId","direction":"ASC""}]} | |
{""searchCrit":[{"searchBy":"STATUS","status":[7]}],"page":1,"start":0,"limit":100,"sort":[{"property":"status","direction":"ASC""}]} | |
{""searchCrit":[{"searchBy":"RESFOR","divisionCode":["HR"]}],"page":1,"start":0,"limit":100,"sort":[{"property":"userId","direction":"ASC""}]} | |
{""searchCrit":[{"searchBy":"DIVISION","divisionCode":["HR"]}],"page":1,"start":0,"limit":100,"sort":[{"property":"userId","direction":"ASC""}]} | |
{""searchCrit":[{"searchBy":"GROUPID","group":["West_Group"]}],"page":1,"start":0,"limit":100,"sort":[{"property":"userId","direction":"ASC""}]} | |
{""searchCrit":[{"searchBy":"LASTACCESSDATE","dateOperator":"ISBEFORE","dateCrit":"2014-01-09T00:00:00-05:00"}],"page":1,"start":0,"limit":100,"sort":[{"property":"lastAccessDate","direction":"ASC""}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment