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:

  1. Type:

                      ../vocal-1.3.0/provisioning/conversion/make
  2. Copy the resulting executable from the bin directory into the directory where you want to run genPutUsers.

  3. Create an XML file called tplate that 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.

Get Practical VoIP Using VOCAL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.