Add methods to post and get testcase
Make a directory if path is not existed.