scala-gatling

Gatling.io share data between virtual users

旧时模样 提交于 2019-12-02 07:16:15
问题 I'm using Gatling.io to test a website. I have a scenario with multiple virtual users. val users = scenario("Users").exec(Session.browse) val admins = scenario("Admins").exec(Session.create) I want the admin user to create a "session" on the website I'm testing, save the session name from the result returned by the website, and have the other users to visit the session previously created by getting the session name from the user admin. How can I share the session name between users ? 回答1: I

Gatling.io share data between virtual users

旧城冷巷雨未停 提交于 2019-12-02 06:01:31
I'm using Gatling.io to test a website. I have a scenario with multiple virtual users. val users = scenario("Users").exec(Session.browse) val admins = scenario("Admins").exec(Session.create) I want the admin user to create a "session" on the website I'm testing, save the session name from the result returned by the website, and have the other users to visit the session previously created by getting the session name from the user admin. How can I share the session name between users ? James Warr I think the default Gatling answer for this is to create the session and persist it in a file of