Detail about test data

Hi Team,
Can you tell me, how test data is prepared?