The purpose of load smoke tests is to apply some "load" (pressure) on the software.
It is suprising how generally easy it is to loads of any desire size (as shown below).
The second test below is extremely important. It uses "proper objects" (e.g. employees) rather than primitive-like values (e.g, strings, integers). Using proper objects can expose more bugs.
public void smokeTest_load() {
DynamicArray<String> dynArray = DynamicArray.newEmpty();
for (int i = 0; i < 1000; i++)
dynArray.add("Asha" + i);
for (int i = 0; i < 1000; i += 50)
printf("Element at [%d]: %s%n", i, dynArray.get(i));
}
public void smokeTest_object_load() {
DynamicArray<Employee> dynArray = DynamicArray.newEmpty();
for (int i = 0; i < 5000; i++)
dynArray.add(new Employee(i, "Name" + i));
for (int i = 0; i < 5000; i += 250)
printf("Element at index [%d]: %s%n", i, dynArray.get(i));
}