add testEnd infomation in controller.cpp, and add send email in autotest...

add test end information in controller.cpp, and add send email in autotest.py.