Dear Team,
I am new to gatling. While exploring the load testing features, I couldn’t solve this problem myself.
Scenario : When I try to test a secure API( the endpoint url starts with https://), I see the below error.
io.netty.channel.ConnectTimeoutException: connection timed out.
Script is here.
class BasicSimulation extends Simulation {
private val httpConf = http
.baseUrl(“https://jsonplaceholder.typicode.com”)
.acceptHeader(" application/json")
private val scn: ScenarioBuilder = scenario(“Initial Scenario”)
.exec(http(“Get all posts”)
.get("/posts")
.proxy(
Proxy(“195.233.25.20”, 8080)
.httpsPort(8143)))
setUp(
scn.inject(atOnceUsers(1))
).protocols(httpConf)
Could someone please help.
Best Regards,
Satyasushma Chopparapu.