When some Walmart Inc. store workers want to apply for a higher-paying management role, the company fits them with a $250 virtual reality headset to see if they are the right candidate for the job.

The country’s largest private employer is using a VR skills assessment as part of the selection process to find new middle managers, watching how workers respond in virtual reality to an angry shopper, a messy aisle or an underperforming worker.

VR...