Gatling simulation assertions failed !

1,716 views
Skip to first unread message

Julien Baldy

unread,
Jun 23, 2015, 9:42:29 AM6/23/15
to gat...@googlegroups.com
Hello everyone, first of all sorry for my bad english (i'm french student)

i have problem with gatling, i know scala/maven since yesterday. 

the error is : Failed to execute goal io.gatling:gatling-maven-plugin:2.1.2:execute (default) on project benchs: Gatling failed. Gatling simulation assertions failed ! Process exited with an error: 2 (Exit value: 2) -> [Help 1]

the error appear when benchs web is finished.

mvn -version : 
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_45\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "dos"

thx to help me

best regards,

Julien Baldy

unread,
Jun 23, 2015, 10:08:22 AM6/23/15
to gat...@googlegroups.com
My assertions :
.assertions(
        global.responseTime.max.lessThan(WebBenchsParameters.MAX_GLOBAL_RESPONSETIME),
        global.successfulRequests.percent.greaterThan(WebBenchsParameters.MIN_SUCCESSFUL_REQUEST_PERCENT)
    );

    val MAX_GLOBAL_RESPONSETIME = 1000
val MIN_SUCCESSFUL_REQUEST_PERCENT = 10

John Arrowwood

unread,
Jun 23, 2015, 1:28:47 PM6/23/15
to gat...@googlegroups.com
What are the final stats of the run?  For example:

================================================================================
---- Global Information --------------------------------------------------------
> request count                                      12757 (OK=12757  KO=0     )
> min response time                                      0 (OK=0      KO=-     )
> max response time                                    398 (OK=398    KO=-     )
> mean response time                                     2 (OK=2      KO=-     )
> std deviation                                          6 (OK=6      KO=-     )
> response time 50th percentile                          1 (OK=1      KO=-     )
> response time 75th percentile                          2 (OK=2      KO=-     )
> mean requests/sec                                 38.662 (OK=38.662 KO=-     )
---- Response Time Distribution ------------------------------------------------
> t < 500 ms                                         12757 (100%)
> 500 ms < t < 1000 ms                                   0 (  0%)
> t > 1000 ms                                            0 (  0%)
> failed                                                 0 (  0%)
================================================================================

Julien Baldy

unread,
Jun 24, 2015, 4:41:03 AM6/24/15
to gat...@googlegroups.com
Hello John,

thx for your answer.

this is the final stats : 

================================================================================
---- Global Information --------------------------------------------------------
> request count                                         24 (OK=24     KO=0     )
> min response time                                   1861 (OK=1861   KO=-     )
> max response time                                  35157 (OK=35157  KO=-     )
> mean response time                                 18742 (OK=18742  KO=-     )
> std deviation                                      12365 (OK=12365  KO=-     )
> response time 50th percentile                      23281 (OK=23281  KO=-     )
> response time 75th percentile                      28140 (OK=28140  KO=-     )
> mean requests/sec                                  0.339 (OK=0.339  KO=-     )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms                                             0 (  0%)
> 800 ms < t < 1200 ms                                   0 (  0%)
> t > 1200 ms                                           24 (100%)
> failed                                                 0 (  0%)
================================================================================

Reports generated in 0s.
Please open the following file: C:\PATH\index.html
Global: max of response time is less than 1000 : false
Global: percentage of successful requests is greater than 10 : true
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:44 min
[INFO] Finished at: 2015-06-24T10:39:54+01:00
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:2.1.2:execute (default) on project benchs: Gatling failed. Gatling simulation assertions failed ! Process exited with an error: 2 (Exit value: 2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:


John Arrowwood

unread,
Jun 24, 2015, 3:09:12 PM6/24/15
to gat...@googlegroups.com
It failed because you told it to.  The minimum response time was 1800+ms.  Your assertion was that all requests would complete in less than 1000ms.  That's what assertions are for.  Make sense?

--
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/HZbkZk1p8Wk/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.



--
John Arrowwood,
Consulting Hypnotist / Hypnotherapist
http://www.JohnArrowwood.com
503.863.4823
Reply all
Reply to author
Forward
0 new messages