I’m seeing a strange issue where I’m getting a “missing baseUrl” error when I have set the url and I can print and show it’s set.
The output looks like this…
`
the base urls are:
- List(http://localhost:9000)
Simulation BasicSimulation started…
14:26:40.355 [ERROR] i.g.h.a.s.HttpRequestAction - ‘httpRequest-1’ failed to execute: No protocol.baseUrl defined but provided url is relative :
`
The first 2 lines are from a println statement.
The full code snippet is here:
val httpConf = http.baseURL("http://localhost:9000")
println("the base urls are: \n + " + httpConf.baseUrls)
val scn = scenario("Hello World") // A scenario is a chain of requests and pauses
.exec(http("default_greeting")
.get("/greeting")
.check(jsonPath("$..greeting").is("Hello, World!"))
)
setUp(scn.inject(atOnceUsers(1)))
The build.sbt file looks like this: