Skip to content

Instantly share code, notes, and snippets.

@aghuddleston
Created January 16, 2014 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aghuddleston/8460261 to your computer and use it in GitHub Desktop.
Save aghuddleston/8460261 to your computer and use it in GitHub Desktop.
Gatling Simulation utilizing a circular feed
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.
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