A kind of experimental platform for in-situ nanoindentation and scratch test has been developed, which has high resolution of displacement and can be used to carry out nanoindentation and scratch test. The precision driven element composing of flexure hinges and piezoelectric actuator was analyzed, which was used to realize indenter’s precision motion. The components, working principle and performances of testing platform were introduced. The calibration experiments of loading and displacement sensors were carried out, and it showed loading and displacement sensors had high linearity and stability. The indentation experiments were carried out on a kind of glass. The experimental results showed proposed testing platform had good reproducibility and scheme was feasible. The research work will provide theoretical foundation and key technologies for nanomechanics test, and has theoretical significance and application value to materials science, micro-electronics, precision optics and biomechanics, etc.