Created
April 19, 2013 13:31
-
-
Save schatteleyn/5420371 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val headers_13 = Map( | |
"Accept" -> """*/*""", | |
"Origin" -> """http://site.com""", | |
"token" -> """token""" | |
) | |
val scn = scenario("Scenario Name") | |
.exec(http("request_1") | |
.post("http://site.com/login") | |
.headers(headers_1) | |
.param("""player[email]""", """[email protected]""") | |
.param("""player[password]""", """password""") | |
) | |
.pause(757 milliseconds) | |
/* more .exec */ | |
.exec(http("request_13") | |
.get("http://site.com/logout") | |
.headers(headers_13) | |
) | |
.pause(202 milliseconds) |
slandelle
commented
Apr 19, 2013
Thanks a lot ! It compiles. Well it does not find the token, but it is at least compiling.
this is excellent! a dynamic header example
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment