The invention provides an Android-based automatic test method for
mobile phone notes. The automatic test method comprises the following steps that: 1, the notes needing to be tested and a
test case are determined; 2, according to the
test case, a custom method packet which aims at a
smart phone platform and simulates an artificial
black box test operation is called to sequentially
encode the
test case; 3, well edited codes are complied to an
executable file; 4, a tester installs the
executable file at a
mobile phone terminal and runs a program; 5, equipment calls an assertion method in the custom method packet according to the encoding sequence and is automatically operated according to the test case or the test content; 6, when the program runs, the assertion method in the custom method packet is called to judge whether the result is an expectant result, a log is produced, and the equipment can be
shoot by the program at a special interface; and 7, the tester judges the
software condition according to the acquired test result. Operation results of the notes are revised and compared, the efficiency is high, the simplicity is realized, and the implementation is easy.