Testing batteries

What is the lifespan of batteries? What results do performance tests provide, and what can batteries do in different applications?