How do I build automation test framework for regression testing?

Please someone give me a tutorial on how do I build automation test framework for regression testing.