IntelliJ DEBUG simulatinon problem

62 views
Skip to first unread message

CHEN YANQING

unread,
Oct 6, 2015, 11:33:36 AM10/6/15
to Gatling User Group
Hello everyone,


I defined a val in my simulation as follows (I use the latest version of gatling):

val request = StringBody("""<soap:Envelope xmlns:dico="http://www.erdfdistribution.fr/linky/types/dico" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v1="http://www.erdfdistribution.fr/linky/types/smc/parametragec/v1">
<soap:Header/>
<soap:Body>
...
</soap:Body>
</soap:Envelope>""")



How could I print the stringbody or watch it when running debug?

I tried "println(request)" and println(request.toString()), both of the output "<function1>"
On debugging I can't find out the SOAP body in variable "
request" neither...

Could anybody help? Thanks a lot!


Gregory Melekh

unread,
Oct 6, 2015, 12:24:30 PM10/6/15
to Gatling User Group
  val getRequest = group("Get request") {
    exec(session => {
        println("Request is = " + request)
        session
      })

CHEN YANQING

unread,
Oct 6, 2015, 12:37:22 PM10/6/15
to Gatling User Group
Thanks a lot!
But I still coun't see the Stringbody.The objects that I can see are GroupBuilder and SessionHookBuilder...

CHEN YANQING

unread,
Oct 22, 2015, 4:01:07 AM10/22/15
to Gatling User Group

CHEN YANQING

unread,
Oct 22, 2015, 4:01:53 AM10/22/15
to Gatling User Group
Reply all
Reply to author
Forward
0 new messages