Introduction - If you have any usage issues, please Google them yourself
Altera official VHDL_Testbench tutorial, want to learn how to write Testbench, then strongly recommended that a look. (English document, but are not difficult. The patience to read it!)