I can't figure this out!!

At first the car cranked right up ran for a few minutes then woul die

Then they car would only start after being jumped then it would die after a minute or 2

I took the alternator (the new one) back to advanced and they said it was bad..so they gave me a new one..I have it installed but I haven't tested it yet because it started raining and I do all of my work outside..

So when I get to test it I'll let ya'll know what happens

Thanks for all of the help!!