When i made my simulation with recorder, i got the following line in my simulation class
.exec(http(“Appel cartégie”)
.httpRequest(“RequestElement(http://myhost/espacePrestataire/cartegie/48929360500023/1/1/0/1/0,JSON,Map(Referer → http://myhost/espacePrestataire/eligibilite, Connection → keep-alive, Accept → /, Cookie → Drupal.toolbar.collapsed=0; Drupal.tableDrag.showWeight=0; _ga=GA1.2.967867089.1412690271; has_js=1; _gat=1; SESSf0065e65aa4d54fa03930523b18f0e3b=CLhgEByeb56XNPqBA5_ndLYlbUcDXeFpVDVy0iMylKI, Accept-Language → fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3, Accept-Encoding → gzip, deflate, User-Agent → Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0, Host → myhost, X-Requested-With → XMLHttpRequest),None,200,List(),List()).method”, Left("""/espacePrestataire/cartegie/48929360500023/1/1/0/1/0""")):
But this line produces an error an my simulation class can’t compile. Any help please.
Error description :
overloaded method value httpRequest with alternatives: (method: String,urlOrURI:
Either[io.gatling.core.session.Session =>
io.gatling.core.validation.Validation[String],com.ning.http.client.uri.Uri])io.gatling.http.request.builder.HttpRe
questBuilder (method: String,url: io.gatling.core.session.Session =>
io.gatling.core.validation.Validation[String])io.gatling.http.request.builder.HttpRequestBuilder cannot be
applied to (String, scala.util.Left[String,Nothing]).