Exception : Failed to build request

30 views
Skip to first unread message

DEEPAK KUMAR TIWARI

unread,
Nov 30, 2017, 1:45:42 AM11/30/17
to Gatling User Group
Hi,

            Can you please help me about these error. From screenshot it seems that request is being timed out. Simulation log shows following data.

            GROUP Failed to build request : No attribute named 'auth_token' is defined

            I am using below code in testing.

           .exec(http("Admin_Login_Request")
   .post(":8181/oauth/token")
   .headers(headers_1)
   .body(RawFileBody("LoginBodyDetails.txt"))
   .basicAuth("somedata1","somedata2")
   .check(jsonPath("$.access_token").optional.saveAs("auth_token")))

            Screenshot :- 



gatling image.png

DEEPAK KUMAR TIWARI

unread,
Dec 9, 2017, 10:38:33 PM12/9/17
to Gatling User Group

Hi ,
           I increased following values. 
           connectTimeout = 600000 
           handshakeTimeout = 600000 
           pooledConnectionIdleTimeout = 600000 
           readTimeout = 600000 
           requestTimeout = 600000. 

           Result are promising to me . Thanks
Reply all
Reply to author
Forward
0 new messages