If your laptop won't power-on, won't charge, or immediately or randomly powers-off again, it may not be obvious whether the fault is with the laptop, the battery or the powr adapter. Simple tests described here should tell you which needs repair or replacement.