I am new to gatling, please bear me if this is a simple mistake.
val scn = scenario(“GetProjectIdGenerateReport”)
.exec(http(“request_0”)
.get("/codeinsight/api/project/id?projectName=eporta")
.headers(headers_0))
.check(regex(":(?[0-9]+)").saveAs(“Project1”))) -------> Here Im grepping and storing the value from the response.
})
.exec(http(“request_1”)
.get(s"/codeinsight/api/project/generateReport?projectId=${Project1}&reportType=PROJECT") → When im trying reuse, it says variable not declared/ Not found.
.headers(headers_0))
})
can someone help me with this, Thanks in Advance