Using IntelliJ and a xml soap response, I get a xpath generated that is unique using IntelliJs built in functionality.
Putting this into gatling scala script
`
val scn = scenario(“RuleEngineSimulation”)
.exec(http(“request_0”)
.post("/EngasjementBasisA2A")
.headers(headers_0)
.body(RawFileBody(“RuleEngineSimulation_request.xml”))
.basicAuth(“test234”,“test234”)
.check(xpath("/SOAP-ENV:Envelope/SOAP-ENV:Body/e:HentRisikoOversiktResponse/ef:engasjementOversiktRisikoer/ef:risikogrupper/ef:risikogruppe/ef:risikoer/ef:risiko/ef:partref/text()").saveAs(“partref”)))
`
Running this gives me the following:
`
Namespace prefix ‘SOAP-ENV’ has not been declared
`
Please advice.
Thanks
Magnus