In this paper, a real-time non-destructive method is proposed for testing grating quality in the shite light processing system by using the reflective property of grating. This technique gives a high accuracy and it is easy to operate, so it has practical value in production. The theory analysis and experimental results are consistent very well.