what you describe could be either but a fast check you can do is start the car and remove the battery terminal if the car stalls then it is alternator it keeps running then get the battery tested it is faulty this test will give you an idea but is not positive get both battery and alternator...