How XML Templates Can Help You Load Test
When testing becomes more advanced or repetitive XML templates can help with the process. XML templates allow you to configure all tests ahead of time according to a test plan or when running location weighted tests, i.e. X users split over 5 locations and different percentages on total users per location.
XML Templates can make this easier as you are not only able to configure your test ahead of time but you can store these XML's in a different folder than the test files making the project more manageable.
These XML's can be either manually written or generated from the configuration you set when you are about to run a test, pressing continue generates the file and you can close the window.
The XML file generated will look something like this:
**You can name this to represent either the amount of users or which step in the order to run the tests in preparation of someone else taking over and running them.
To take it to the next step we have the use case where you want to run multiple tests at the same time, from different locations where each location gets 20% of the total users, this can be done by just copying the first file and generating a file for each configuration or reusing the template, these files also don’t need to be in the same folder as .class or .zip files.
**Take caution with using this however as you will not be warned about input data having changed and wont get the opportunity to rezip with the updated input file or plugin
Here is an example:
And if you want to simplify it further you can select all XML files for one multi location test and combine them into one big XML containing configuration options for every location from the original XML's by clicking the “Zip Selected Files” button.
When clicking the execution button to start the test, it will now launch all tests configured in the combined XML:
For more information, refer to section 10.4 of the ZebraTester User's Guide.
Please sign in to leave a comment.