auto run test and save in logging file