Material testing machine is a key experiment instrument for metal material's performance test,especially for new material's research and improvement.But the traditional machines' function is simple and is less customized.In the paper,a new NC programming system is designed,which allows user to define the test process easily,and a very good testing result is obtained in the test process of stress rate,strain rate,displacement rate and constant stress,constant strain,constant displacement,etc.