Good observation. I use Excel and note batter voltage and current, calculating amphours on a per hour basis, then totally them as it progressed.
When to stop? consult the battery manufacturer.
How precise do you imagine the battery rating is? Is 10% an acceptable error? 20%?
If you test four...