The invention discloses an automatic testing method and system for TV applications. After installing an APK package on a TV, a normal or abnormal test environment is built according to different application services or business scenarios; Test scenario, run the Python automated test script on the test scenario, and simulate the TV key operation according to the Python automated test script to realize the automated operation of the TV end, and use the Python log service program to save the automated operation process of the TV end The test data of the TV-side application service, and then write a Python test verification script, parse the current log or data, analyze and compare with the expected result, and finally return the test result. The invention greatly improves the test efficiency, reduces labor costs, ensures the test accuracy rate, reduces the error rate, adopts abnormal test environment simulation, greatly improves the test coverage rate, and realizes the automatic test of TV clusters.