Appendix B. Testing Tools
Some of the VOCAL test cases call for generating 20,000 or 100,000 users. The scripts included in this appendix provide assistance to this process.
genPutUsers.pl
This script will generate a large number of users and put them in the correct directories within the provisioning data. It starts at the specified start user # and increments from there. This file’s location is /vocal-1.3.0/tools/ldgen/genPutUsers.pl.
To use this file, type:
./genPutUsers.pl <start user #> <number of users>The script relies upon a C++ executable called PutMultipleFiles. In order to use this, you will need to do the following:
Type:
../vocal-1.3.0/provisioning/conversion/makeCopy the resulting executable from the bin directory into the directory where you want to run
genPutUsers.Create an XML file called
tplatethat will be used as the template for the generated users. It is best to generate a valid XML file via the GUI and then copy the file over.
You may want to modify genPutUsers.pl if your provisioning data is not in /usr/local/vocal/provisioning_data.
Once you have the users generated, you can begin registering them.
Tip
This creates only the user files, not their associated calling/called feature files.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access