Hello,
I’m having problem while running my test about a SSL secured web service.
I generated my certificates and installed them on a local tomcat server, tested it with SOAPUI, it worked correctly.
Now I’m trying to test it with gatling. But I always got the error when I run Engine:
---- Errors --------------------------------------------------------------------
status.find.in(200,304,201,202,203,204,205,206,207,208,209), but actually found 500
my configuration in gatling.conf as:
http {
ssl {
trustStore {
file=“mytruststore.truststore”
password=“password”
}
keyStore {
file=“mykeystore.keystore”
password=“password”
}
}
Here is my senario:
import io.gatling.core.Predef._
import io.gatling.core.scenario.Simulation
import io.gatling.core.session.Session
import io.gatling.http.Predef._
class SimpleTest extends Simulation {
val httpProtocol = http
.baseURL(“https://localhost:8443/”)
.acceptHeader(“text/html,text/xml,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”)
.acceptEncodingHeader(“gzip, deflate”)
.acceptLanguageHeader(“fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3”)
.connectionHeader(“Keep-Alive”)
.userAgentHeader(“Apache-HttpClient/4.1.1 (java 1.5)”)
val scn = scenario(“SimpleTest”)
.repeat(1) {
exec(
http(“TestLocal”)
.post(“services/mySimple_WS”)
.body(StringBody(“”“”“”))
.header(“Content-Type”, “”“text/xml;charset=UTF-8"”")
.header(“Accept-Encoding”, “”“gzip, deflate”“”)
.header(“Connection”, “”“keep-alive”“”)
)
}
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}
Please help if you have any idea.
Regards,