You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gatling User Group
Hi ,
In one of my tests I would like to run some cleanup code after the simulation (after hook) which should delete some database entries. However in order to delete the correct database record, I should be able to pass a session attribute id value as some kind of variable to the after hook block of code. Any idea how this can be achieved?
Thanks!
Nikolay Degkin
unread,
Sep 22, 2016, 5:40:52 AM9/22/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gatling User Group
Save variables to text doc and then read?
val writer ={ val fos =new java.io.FileOutputStream("foo.txt") new java.io.PrintWriter(fos,true) } .exec{ session => writer.println(session("ID").as[String]) session }