Car loses power while driving

Have the battery and charging system tested. Also have the cable connections checked and, if necessary, cleaned.