...
A mobile worker's "loadtest factor" is found under the "Action" tab of the "Edit Mobile Worker" page, as shown below.
...
When the mobile worker syncs, each case in the payload will have that many copies. So if the loadtest factor is set to 20, and the mobile worker has 5 cases, then a total of 100 cases will be sent to their device. Loadtest users will get a full restore; all their cases will be sent to their device.
...
When you view a loadtest user, CommCare HQ will notify you of this:
...
If you set the user's loadtest factor back to 1 (or delete its value), then the user will no longer be marked as a demo user.
...
Loadtest cases preserve parent/child relationships: If "Child Case" is the child case of "Parent Case", then "Child Case (1)" will be the child case of "Parent Case (1)", etc. In In other words, loadtest case indexes point to other loadtest cases, not to real cases.
Best practice: Use a temporary mobile worker
...
There are some important caveats about this feature:
This feature does not allow you to test sync performance at scale; it is only for load testing the app.
The maximum total number of cases is capped at 500,000. By that point app load will be less important than other aspects of user experience. This is a safeguard against performance issues.
Technical details: The Sync Payload
As mentioned in "About loadtest cases", the case names of loadtest cases have " (<number>)" appended. Case IDs also have "-<number>" appended. All other values will be identical. For example:
<case
...
case_id="55950b66-9915-4303-83c6-951d372d6940"
user_id="7d9a624219a549babbc87e5f2bb65476"
date_modified="2022-03-15T18:07:23.454000Z">
<create>
<case_type>household</case_type>
<case_name>1
...
Ardmillan
...
Terrace</case_name>
<owner_id>7d9a624219a549babbc87e5f2bb65476</owner_id>
</create>
<update>
<date_opened>2022-03-15</date_opened>
</update>
</case>
<case
...
case_id="55950b66-9915-4303-83c6-951d372d6940-1"
user_id="7d9a624219a549babbc87e5f2bb65476"
date_modified="2022-03-15T18:07:23.454000Z">
<create>
<case_type>household</case_type>
<case_name>1
...
Ardmillan
...
Terrace
...
(1)</case_name>
<owner_id>7d9a624219a549babbc87e5f2bb65476</owner_id>
</create>
<update>
<date_opened>2022-03-15</date_opened>
</update>
</case>
<case
...
case_id="55950b66-9915-4303-83c6-951d372d6940-2"
user_id="7d9a624219a549babbc87e5f2bb65476"
date_modified="2022-03-15T18:07:23.454000Z">
<create>
<case_type>household</case_type>
<case_name>1
...
Ardmillan
...
Terrace
...
(2)</case_name>
<owner_id>7d9a624219a549babbc87e5f2bb65476</owner_id>
</create>
<update>
<date_opened>2022-03-15</date_opened>
</update>
</case>