Note this isn't the same as ability. A learner can be low ability but high aptitude, although they probably won't stay at a low level for very long. Conversely, a high level student might have reached that level through hard work and persistence rather than high aptitude. Human beings on average have a natural aptitude for language!
An aptitude test attempts to measure aptitude.