val httpProtocol = http .baseURL("http://mysite.com") .inferHtmlResources() .acceptHeader("""text/css,*/*;q=0.1""") .acceptEncodingHeader("""gzip, deflate""") .acceptLanguageHeader("""en-US,en;q=0.5""") .connection("""keep-alive""")
.userAgentHeader("""Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0""")
val headers_0 = Map("""Accept""" -> """text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8""")
val scn = scenario("BasicSimulation") .exec(http("Landing Page")
// Generates a 302 redirect .get("""/""") .headers(headers_0) .basicAuth("""username""","""password""") .check(regex("""input name="authenticity_token" type="hidden" value="(.*)">""").saveAs("auth_token")))--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/ixhbiYHwRnE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Select simulation id (default is 'basicsimulation'). Accepted characters are a-z, A-Z, 0-9, - and _
Select run description (optional)
Simulation consumer.BasicSimulation started...
09:20:42.774 [INFO ] i.g.h.c.HttpProtocol - Start warm up
09:20:43.095 [INFO ] i.g.h.c.HttpProtocol - Warm up done
09:20:43.231 [INFO ] i.g.h.a.HttpRequestAction$ - Sending request=Landing Page uri=http://mysite.com/: scenario=BasicSimulation, userId=1429584253802008026-0
================================================================================
2014-08-21 09:20:43 0s elapsed
---- BasicSimulation -----------------------------------------------------------
[ ] 0%
waiting: 1 / running: 0 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=0 KO=0 )
================================================================================
09:20:43.622 [INFO ] i.g.h.a.HttpRequestAction$ - Sending request=Landing Page uri=http://mysite.com/users/sign_in: scenario=BasicSimulation, userId=1429584253802008026-0
09:20:43.705 [WARN ] i.g.h.a.AsyncHandlerActor - Request 'Landing Page Redirect 1' failed: regex(input name="authenticity_token" type="hidden" value="(.*)">).exists, found nothing
09:20:43.708 [DEBUG] i.g.h.a.AsyncHandlerActor -
>>>>>>>>>>>>>>>>>>>>>>>>>>
Request:
Landing Page Redirect 1: KO regex(input name="authenticity_token" type="hidden" value="(.*)">).exists, found nothing
=========================
Session:
Session(BasicSimulation,1429584253802008026-0,Map(gatling.http.cookies -> CookieJar(Map()), gatling.http.cache.redirects -> Map(http://mysite.com/ -> http://mysite.com/users/sign_in), gatling.http.referer -> http://mysite.com/users/sign_in),1408634443154,0,KO,List())
=========================
HTTP request:
GET http://mysite.com/users/sign_in
headers=
Accept: [text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Accept-Encoding: [gzip, deflate]
Accept-Language: [en-US,en;q=0.5]
User-Agent: [Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0]
=========================
HTTP response:
status=
401 Unauthorized
headers=
Server: [nginx/1.4.6]
Date: [Thu, 21 Aug 2014 15:20:47 GMT]
Content-Type: [text/html]
Content-Length: [194]
Connection: [keep-alive]
WWW-Authenticate: [Basic realm="Restricted"]
body=
<html>
<head><title>401 Authorization Required</title></head>
<body bgcolor="white">
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx/1.4.6</center>
</body>
</html>
<<<<<<<<<<<<<<<<<<<<<<<<<
================================================================================
2014-08-21 09:20:48 5s elapsed
---- BasicSimulation -----------------------------------------------------------
[--------------------------------------------------------------------------] 0%
waiting: 0 / running: 1 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=1 KO=1 )
> Landing Page Redirect 1 (OK=1 KO=1 )
---- Errors --------------------------------------------------------------------
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (100.0%)
)">).exists, found nothing
================================================================================
================================================================================
2014-08-21 09:20:53 10s elapsed
---- BasicSimulation -----------------------------------------------------------
[--------------------------------------------------------------------------] 0%
waiting: 0 / running: 1 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=1 KO=1 )
> Landing Page Redirect 1 (OK=1 KO=1 )
---- Errors --------------------------------------------------------------------
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (100.0%)
)">).exists, found nothing
================================================================================
09:20:53.717 [ERROR] i.g.h.a.HttpRequestAction - No attribute named 'auth_token' is defined
================================================================================
2014-08-21 09:20:53 10s elapsed
---- BasicSimulation -----------------------------------------------------------
[##########################################################################]100%
waiting: 0 / running: 0 / done:1
---- Requests ------------------------------------------------------------------
> Global (OK=1 KO=2 )
> Landing Page Redirect 1 (OK=1 KO=1 )
> request_10 (OK=0 KO=1 )
---- Errors --------------------------------------------------------------------
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (50.00%)
)">).exists, found nothing
> No attribute named 'auth_token' is defined 1 (50.00%)
================================================================================
Simulation finished
Generating reports...
Parsing log file(s)...
Parsing log file(s) done
================================================================================
---- Global Information --------------------------------------------------------
> request count 3 (OK=1 KO=2 )
> min response time 0 (OK=73 KO=0 )
> max response time 73 (OK=73 KO=66 )
> mean response time 46 (OK=73 KO=33 )
> std deviation 32 (OK=0 KO=33 )
> response time 95th percentile 72 (OK=73 KO=62 )
> response time 99th percentile 72 (OK=73 KO=65 )
> mean requests/sec 0.28 (OK=0.09 KO=0.19 )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms 1 ( 33%)
> 800 ms < t < 1200 ms 0 ( 0%)
> t > 1200 ms 0 ( 0%)
> failed 2 ( 67%)
---- Errors --------------------------------------------------------------------
> No attribute named 'auth_token' is defined 1 (50.00%)
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (50.00%)
)">).exists, found nothing
================================================================================
Reports generated in 0s.
Please open the following file: results/basicsimulation-1408634443111/index.html
...<p class="p2"
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
Select simulation id (default is 'basicsimulation'). Accepted characters are a-z, A-Z, 0-9, - and _
Select run description (optional)
Simulation subtextconsumer.BasicSimulation started...
08:19:13.809 [INFO ] i.g.h.c.HttpProtocol - Start warm up
08:19:14.177 [INFO ] i.g.h.c.HttpProtocol - Warm up done
08:19:14.286 [INFO ] i.g.h.a.HttpRequestAction$ - Sending request=Landing Page uri=http://mysite.com/: scenario=BasicSimulation, userId=3435566742843572270-0
================================================================================
2014-08-25 08:19:14 0s elapsed
---- BasicSimulation -----------------------------------------------------------
[ ] 0%
waiting: 1 / running: 0 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=0 KO=0 )
================================================================================
08:19:14.730 [INFO ] i.g.h.a.HttpRequestAction$ - Sending request=Landing Page uri=http://mysite.com/users/sign_in: scenario=BasicSimulation, userId=3435566742843572270-0
08:19:14.817 [WARN ] i.g.h.a.AsyncHandlerActor - Request 'Landing Page Redirect 1' failed: regex(input name="authenticity_token" type="hidden" value="(.*)">).exists, found nothing
08:19:14.820 [DEBUG] i.g.h.a.AsyncHandlerActor -
>>>>>>>>>>>>>>>>>>>>>>>>>>
Request:
Landing Page Redirect 1: KO regex(input name="authenticity_token" type="hidden" value="(.*)">).exists, found nothing
=========================
Session:
Session(BasicSimulation,3435566742843572270-0,Map(gatling.http.cookies -> CookieJar(Map()), gatling.http.cache.redirects -> Map(http://mysite.com/ -> http://mysite.com/users/sign_in), gatling.http.referer -> http://mysite.com/users/sign_in),1408976354225,0,KO,List())
=========================
HTTP request:
GET http://mysite.com/users/sign_in
headers=
Accept: [text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Accept-Encoding: [gzip, deflate]
Accept-Language: [en-US,en;q=0.5]
User-Agent: [Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0]
=========================
HTTP response:
status=
401 Unauthorized
headers=
Server: [nginx/1.4.6]
Date: [Mon, 25 Aug 2014 14:19:24 GMT]
Content-Type: [text/html]
Content-Length: [194]
Connection: [keep-alive]
WWW-Authenticate: [Basic realm="Restricted"]
body=
<html>
<head><title>401 Authorization Required</title></head>
<body bgcolor="white">
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx/1.4.6</center>
</body>
</html>
<<<<<<<<<<<<<<<<<<<<<<<<<
================================================================================
2014-08-25 08:19:19 5s elapsed
---- BasicSimulation -----------------------------------------------------------
[--------------------------------------------------------------------------] 0%
waiting: 0 / running: 1 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=1 KO=1 )
> Landing Page Redirect 1 (OK=1 KO=1 )
---- Errors --------------------------------------------------------------------
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (100.0%)
)">).exists, found nothing
================================================================================
================================================================================
2014-08-25 08:19:24 10s elapsed
---- BasicSimulation -----------------------------------------------------------
[--------------------------------------------------------------------------] 0%
waiting: 0 / running: 1 / done:0
---- Requests ------------------------------------------------------------------
> Global (OK=1 KO=1 )
> Landing Page Redirect 1 (OK=1 KO=1 )
---- Errors --------------------------------------------------------------------
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (100.0%)
)">).exists, found nothing
================================================================================
08:19:24.824 [ERROR] i.g.h.a.HttpRequestAction - No attribute named 'auth_token' is defined
================================================================================
2014-08-25 08:19:24 10s elapsed
---- BasicSimulation -----------------------------------------------------------
[##########################################################################]100%
waiting: 0 / running: 0 / done:1
---- Requests ------------------------------------------------------------------
> Global (OK=1 KO=2 )
> Landing Page Redirect 1 (OK=1 KO=1 )
> request_10 (OK=0 KO=1 )
---- Errors --------------------------------------------------------------------
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (50.00%)
)">).exists, found nothing
> No attribute named 'auth_token' is defined 1 (50.00%)
================================================================================
Simulation finished
Generating reports...
Parsing log file(s)...
Parsing log file(s) done
================================================================================
---- Global Information --------------------------------------------------------
> request count 3 (OK=1 KO=2 )
> min response time 0 (OK=115 KO=0 )
> max response time 115 (OK=115 KO=67 )
> mean response time 60 (OK=115 KO=33 )
> std deviation 47 (OK=0 KO=33 )
> response time 95th percentile 110 (OK=115 KO=63 )
> response time 99th percentile 114 (OK=115 KO=66 )
> mean requests/sec 0.28 (OK=0.09 KO=0.19 )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms 1 ( 33%)
> 800 ms < t < 1200 ms 0 ( 0%)
> t > 1200 ms 0 ( 0%)
> failed 2 ( 67%)
---- Errors --------------------------------------------------------------------
> No attribute named 'auth_token' is defined 1 (50.00%)
> regex(input name="authenticity_token" type="hidden" value="(.* 1 (50.00%)
)">).exists, found nothing
================================================================================
Reports generated in 0s.
Please open the following file: results/basicsimulation-1408976354191/index.html