The corneal scraping culture test is conducted to diagnose corneal infections. Healthcare professionals opt for this test in cases where a corneal infiltrate is sizable, centrally located, and exhibits substantial stromal involvement with melting or multiple infiltrates. This test is also used in situations involving a history of corneal surgeries.