what causes the alternator not to create/hold power? on 1990 Dodge Dakota

i checked the alternator and it is in good condition, i also got a brand new battery but the alternator does not hold power, truck starts and all but if i run it the power will drain

Asked by for the 1990 Dodge Dakota