How to test power tool battery packs? (not cells)

I had to estimate the capacity of an 18V drill pack, here is how I did it.