Tests/other/Battery

From OLPC
Jump to navigation Jump to search

Test case: Short name::Battery life logging
How to report results

Stream ,|x|Build stream::x}}
Category Test category::other Sub-category Test subcategory::Battery
Component System component::Battery life and power draw
Feature System feature::http://wiki.laptop.org/go/XO_power_draw
Objective Test objective::Check how long the battery lasts for a given build running given sets of Activities; also checks that the build has the ability to monitor battery life through olpc-pwr-log.
Tools Test tools::XO
Setup Test setup::Make sure the XO has the build and Activities you want to test installed. Plug in the XO until the battery is at the charge level you desire (in most cases, this will be until it's fully charged).
Procedure [[Test procedure::# Start the Activities you want to test.
  1. Start the olpc-pwr-log script; be sure to start it in the VT or in Terminal depending on whether you want the XO to suspend or not.
  2. Unplug the XO and wait until the battery has been fully discharged (the XO will power down). This usually takes 4+ hours.
  3. Return power to the XO by plugging it in or putting in a fresh battery.
  4. Boot the XO up and copy the olpc-pwr-log logfile (generated in the same directory you ran the olpc-pwr-log script from) to a USB stick; attach the log to your results report.]]
Expected Results
and Pass Criteria
[[Pass criteria::The battery should run out and the XO should power down several hours after you unplug it, and you should be able to recover, read, and understand the olpc-pwr-log logfile. There is no specific length of time the battery should last unless you are told otherwise.]]
Comments More notes::
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Software release::Candidate Build stream::8.2 Build number::760 PassFail::Pass ,|x| #x}} [[Comments::Started olpc-pwr-log on 20 laptops running 8.2-760 in VT (no suspend). Logs and analysis are at File:Battery-drain-logs.tar.gz.]] Created::


Software release::Candidate Build stream::8.2 Build number::767 PassFail::Pass ,|x| #x}} Comments::richard smith received logs in email Created::