Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Loadtest Users

The loadtest user feature flag can be used Loadtest User feature is Generally Available for load testing on mobile devices.After turning on the feature flag you can set a "loadtest factor" for a user , for Pro Plan subscriptions and higher.

A mobile worker's "loadtest factor" is found under the "Action" tab of the "Edit Mobile Worker" page, as shown below.

Image RemovedImage Added

When that user syncs, each case will have that many copies of it made and sent down to the phone. Copies should preserve parent/child relationships. Copies will be named with a number after the case name indicating what copy it is. However, copies are not actually created on CommCare HQ, so you will not see them in reports or in exports.

...

  • Form submissions against copies will not properly handle case processing. It is recommended you only test form submissions against the original cases and not the copies.
  • Copies are only sent down on initial sync. It is not recommended that you use the sync functionality while load testing, just use the app and submit data.
  • This does not allow you to test sync performance at scale - it is just for load testing the mobile application only.

...

  • .
  • Once the sync payload is generated, the user's loadtest factor is reset. This is a safeguard against performance issues.
  • The maximum total number of cases that will be synced is 50,000 (unless the user has more than 50,000 real cases). Beyond 50,000 cases, app load will be less important than other aspects of user experience. This is also a safeguard against performance issues.