# Mobile App Battery drain measurement

**URL:** <https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262>\
**Category:** Archive\
**Tags:** mobile-testing\
**Created:** [30 July 2020 11:20 UTC](https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262 "2020-07-30T11:20:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark.dickens](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@mark.dickens](https://club.ministryoftesting.com/u/mark.dickens)\
**Post date:** [30 July 2020 11:20 UTC](https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262/1 "2020-07-30T11:20:00Z")

</div>

Does anyone have any experience in testing mobile battery usage for specific apps, we have a requirement to report on the battery drain of one of our apps, this is not something I have looked at before, and a google search comes up with either the installed battery usage from android, or apps to optimise use, any help / advice is welcomed

There is an old thread on this forum, but I guess (hope) things have developed since then??

> [@Mobile App Battery Utilization Testing](https://club.ministryoftesting.com/t/mobile-app-battery-utilization-testing/1128):
>
> What would be the ideal benchmark of battery usage for a Mobile App. I have been testing an app, which is costing 2-3% of battery power.

---

<div class="post-metadata">

**Author:** ![conrad.braam](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/conrad.braam/32/660_2.png) [@conrad.braam](https://club.ministryoftesting.com/u/conrad.braam)\
**Post date:** [30 July 2020 21:52 UTC](https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262/2 "2020-07-30T21:52:25Z")

</div>

Welcome to the community Mark.  
It’s very subjective, and with all things actual pain levels from users will ultimately tell you what you need to aim for. I assume you are talking about backgrounded, not foreground?

On IOS, backgrounded apps don’t use power, but suffer from loosing state/stale and drop connections and have to re-initialize. android apps are easier on backgrounding, but do use power. Foregrounding gets more complicated as in the thread, because screen brightness and size completely rule your power consumption on any platform. You can get companies that will retrofit an android with a special accurate power monitor, the inbuilt monitor is not very accurate anyway.

I would grab a typical device and actually use it as a user for a day and take readings and not rely on the device stats as much as on user experience. It’s really dependant on what the app does, and on who your user is, and what devices they typically use. Even so, it’s pain managed in the end. That’s how we do it where I work. Google and Apple have verification “programs” that may also trip you up when they test your app and it turns out to be a beast.

---

<div class="post-metadata">

**Author:** ![kalei-white](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/kalei-white/32/7577_2.png) [@kalei-white](https://club.ministryoftesting.com/u/kalei-white)\
**Post date:** [31 July 2020 21:39 UTC](https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262/3 "2020-07-31T21:39:36Z")

</div>

Hey Mark! Apptim ([apptim.com](http://apptim.com)) can help you measure this, a free mobile app performance testing tool for both iOS and Android. It shows you results and also tells you if your app’s performance in different areas like battery usage goes above the recommended thresholds.

---

<div class="post-metadata">

**Author:** ![pwicherski](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/pwicherski/32/13361_2.png) [@pwicherski](https://club.ministryoftesting.com/u/pwicherski)\
**Post date:** [31 July 2020 22:13 UTC](https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262/4 "2020-07-31T22:13:33Z")

</div>

Hiho @mark.dickens ! 🙂

It’s awesome that you are planning to perform such tests.

If you’re asking about tools that you could use then you can easily start with Android Battery Historian:  
[https://developer.android.com/topic/performance/power/setup-battery-historian](https://developer.android.com/topic/performance/power/setup-battery-historian)

For iOS use Instruments Energy Diagnostics:  
[https://developer.apple.com/library/archive/documentation/Performance/Conceptual/EnergyGuide-iOS/MonitorEnergyWithInstruments.html](https://developer.apple.com/library/archive/documentation/Performance/Conceptual/EnergyGuide-iOS/MonitorEnergyWithInstruments.html)

You can also use mobile device labs; here are a few to look into. Few of them have battery performance measurement tools indeed:

> <https://github.com/pwicherski/MobileTestingBook/blob/master/device-labs.md>

Ping me if you would need any assistance with creating test cases for such tests, maybe I could help 🙂

---

<div class="post-metadata">

**Author:** ![mark.dickens](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@mark.dickens](https://club.ministryoftesting.com/u/mark.dickens)\
**Post date:** [10 August 2020 11:05 UTC](https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262/5 "2020-08-10T11:05:08Z")

</div>

> [@pwicherski](#):
>
> [Profile battery usage with Batterystats and Battery Historian &nbsp;|&nbsp; App quality &nbsp;|&nbsp; Android Developers](https://developer.android.com/topic/performance/power/setup-battery-historian)

Hi @pwicherski,  
I have started to take a look at the battery historian, I think it gives me what I need, and a few other stats also 😅. thanks for posing !!

---

<div class="post-metadata">

**Author:** ![pwicherski](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/pwicherski/32/13361_2.png) [@pwicherski](https://club.ministryoftesting.com/u/pwicherski)\
**Post date:** [10 August 2020 13:19 UTC](https://club.ministryoftesting.com/t/mobile-app-battery-drain-measurement/41262/6 "2020-08-10T13:19:32Z")

</div>

Awesome!

Happy to help 🙂
