Hi,
val contactCreateScn = scenario("Contact Create Req")
.exec(Auth.setHeaderValues)
.repeat(10) {
exec(
RequestFormatter.postContactCreate
).exec(session => {
println(">>>>>>>>>............"+session("contactId").as[String])
writer.write(session("contactId").as[String])
writer.write("\n")
session
})
}
I have the above scenario to write values to a csv
I am using the below scenario ( the csv written above is used as feeder here )
val contactGetScn = scenario("Contact Get Req")
.exec(Auth.setHeaderValues)
.feed(csv("primarycontact.csv").batch(2))
.repeat(5) {
exec(
RequestFormatter.getContact
)
}
My setup:
setUp(
contactCreateScn.inject(atOnceUsers(1))
.andThen(contactGetScn.inject(atOnceUsers(2)))
).protocols(http
.baseUrl("https://bam.nr-data.net"))
But then I experience the below error
java.lang.IllegalStateException: Feeder is now empty, stopping engine
where as the contact create req is successful and could see values in csv too