Hi,
Stéphane
Hope you will be doing fine.
I have a soap request
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import bootstrap._
object ConsultProductsScenario {
val products = csv("sql_time_demo.csv").random
feed(products)
def SAMLAuthenticationSoapRequest = """<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:rep="
http://www.nextone.com/ivms/schema/reportservice">
<soapenv:Header/>
<soapenv:Body>
<rep:get>
<com:credential xmlns:com="
http://www.nextone.com/ivms/schema/common">
<com:user>root</com:user>
<com:password>shipped!!</com:password>
<com:partition>admin</com:partition>
</com:credential>
<filter type="subtree" beginDate="${starttime}" endDate="${endtime}" pageIndex="1" pageSize="100">
<report>
<timeZone>GMT</timeZone>
</report>
<partition>1</partition>
<deviceName>"${sbc}"</deviceName>
<reportDomain>Engineering</reportDomain>
<reportSubType>NER by Destination Reg ID</reportSubType>
<total>true</total>
</filter>
</rep:get>
</soapenv:Body>
</soapenv:Envelope>"""
.exec(http("Get data")
.post("
https://10.216.220.10:443/rsm/ws/prov/reportservice")
.body(SAMLAuthenticationSoapRequest)
.check(
status.is(200)))
}
csv file content is :
starttime,endtime,sbc
2014-09-16T09:10:00.000+00:00,2014-09-16T09:20:00.000+00:00,msx89
2014-09-16T09:20:00.000+00:00,2014-09-16T09:30:00.000+00:00,msx90
2014-09-16T09:30:00.000+00:00,2014-09-16T09:40:00.000+00:00,msx91
2014-09-16T09:40:00.000+00:00,2014-09-16T09:50:00.000+00:00,msx92
when i run the simulator it exit with error message
5:40:49.706 [ERROR] i.g.h.a.HttpRequestAction - No attribute named 'productIdFound' is defined
15:40:49.714 [ERROR] i.g.h.a.HttpRequestAction - No attribute named 'productIdFound' is defined
15:40:49.715 [ERROR] i.g.h.a.HttpRequestAction - No attribute named 'productIdFound' is defined
Exception in thread "main" java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won't be generated
at io.gatling.charts.report.ReportsGenerator$.generateFor(ReportsGenerator.scala:41)
at io.gatling.app.Gatling.generateReports$1(Gatling.scala:156)
at io.gatling.app.Gatling.start(Gatling.scala:209)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:58)
at io.gatling.app.Gatling$.runGatling(Gatling.scala:79)
at io.gatling.app.Gatling$.main(Gatling.scala:53)
at io.gatling.app.Gatling.main(Gatling.scala)
can you please let me know what is the problem in my code.
Thanks and regards,
Piyush Pathak