How do you test alternator of an onan generator?

Depends on what Onan you have. Most RV units don't have alternators like a car. They charge through the control system. Off of the main AC generator section.