John Deere 318 not charging , How i tested

John Deere not charging . This JD 318 has an Onan P218G engine . I test the stator . Ground , Power at B terminal regulator . Rectifier regulator replace ,John Deere 318 with an Onan P218G engine . Diagnosed charging system and installed new voltage regulator rectifier to fix this charging system jd 318 garden tractor mower. wtbm123 repair small engine . Fixing a john deere charging system testing