Execute multiple check's even if the first one fails

In the below example I execute a POST request towards a REST web service using Gatling. There are two checks. I check that status is returned as OK and I also check that there is no errorString returned in the JSON structure.

If the REST web service returns status FAIL and a custom errorString describing the problem I will never see the error string in the console output. It seem like if gatling gives up on the first check that fail.

I would prefer having it to execute all the checks and print all of them that fails so that I get a little bit more info in the logs. Can this be done in some way?

http("Test case")
    .post("/sequence/start")
    .fileBody("startSequence", Map(
         "seq_id" -> "123"
        )
    ).asJSON
    .basicAuth(user, pass)
    .check(jsonPath("$.status").is("OK"), jsonPath("$.errorString").notExists)
    .check(bodyToJson.saveAs("startseq"))

Edit: Question is regarding Gatling 1.5.X

Answers


I believe a "slow fail" of checks is not possible in Gatling 1.5. See this issue on the Gatling Bug Tracker: https://github.com/excilys/gatling/issues/1501


Need Your Help

HTML5 Drop down with list

javascript html5 validation w3c html-select

im currently working on bringing a website up to date. Iv taken the code from one of the old pages and put it in the new website. It works but dosnt do so when when its being validated by w3c.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.