For now, you need to have a running dockerized James JMAP server running on the same computer than your Gatling host. It needs to export the webAdmin over port 8000.
Alternativly you can set up the following system properties:
-
TARGET_HOSTNAMEwhich is set tolocalhostby default -
SMTP_PORTwhich is set to25by default -
SMTP_SSL_PORTwhich is set to465by default -
JMAP_PORTwhich is set to1080by default -
JMAP_PROTOCOLwhich is set tohttpby default (you can usehttpsinstead for example) -
WEBADMIN_PORTwhich is set to8000by default -
WEBADMIN_PROTOCOLwhich is set tohttpby default (you can usehttpsinstead for example)
In some cases you could want to specify target hostname per protocol, the following properties can help you:
* SMTP_TARGET_HOSTNAME which is set to TARGET_HOSTNAME by default
* JMAP_TARGET_HOSTNAME which is set to TARGET_HOSTNAME by default
* IMAP_SERVER_HOSTNAME which is set to TARGET_HOSTNAME by default
* WEBADMIN_SERVER_HOSTNAME which is set to TARGET_HOSTNAME by default
You can run all the simulations via sbt :
$ sbt > gatling:test
Run a specific simulation via sbt :
$ sbt > gatling:testOnly SIMULATION_FQDN
FQDN :
org.apache.james.gatling.simulation.jmap.draft.JmapAuthenticationSimulation
Authenticate 10 JMAP users, one time. Demonstrate user auto-provisioning through James WebAdmin server.
FQDN :
org.apache.james.gatling.simulation.jmap.draft.JmapSendMessagesSimulation
Authenticate 100 JMAP users, one time. Then they all retrieve their mailboxes, and then sends messages 360 messages each to other recipients.
FQDN :
org.apache.james.gatling.simulation.jmap.draft.JmapGetMailboxesSimulation
Authenticate 200 JMAP users, one time. Then they all retrieve 360 times their mailboxes each.
FQDN :
org.apache.james.gatling.simulation.jmap.draft.JmapGetMessageListSimulation
Authenticate 100 JMAP users, one time. Then they all retrieve their system mailboxes. Then they send each other 10 mails each at random. Then wait 30 seconds for mails to be delivered. Finally they retrieve 250 times each their mails list using GetMessagesList.
FQDN :
org.apache.james.gatling.simulation.jmap.draft.JmapGetMessagesSimulation
Authenticate 100 JMAP users, one time. Then they all retrieve their system mailboxes. Then they send each other 10 mails each at random. Then wait 30 seconds for mails to be delivered. They retrieve their mails list using GetMessagesList. Then they retrieve their mails 250 times, at random.
FQDN :
org.apache.james.gatling.simulation.jmap.draft.JmapMessageUpdateSimulation
Authenticate 100 JMAP users, one time. Then they all retrieve their system mailboxes. Then they send each other 10 mails each at random. Then wait 30 seconds for mails to be delivered. They retrieve their mails list using GetMessagesList. Then they update their mail 250 times with the following properties :.
-
70% mark mails as READ
-
20% mark mails as ANSWERED
-
10% mark mails as FLAGGED