The invention discloses a test method and a test device, which are used for solving the problems that in the prior art, a
test script needs to be frequently maintained, and the
test efficiency is lower. The test method comprises the steps of calling a control proxy class corresponding to a mark by the test device according to the mark of a control contained in the
test script, obtaining the attribute information of the control corresponding to the mark in a tested application through the called control proxy class, and testing the tested application according to the obtained attribute information of the control. Through the test method disclosed by the invention, the
test script has no need to be compiled according to the attribute information of the control in the tested application, the attribute information of the control can be obtained just by writing in the mark of a tested control through the corresponding control proxy class, the changed attribute information also can be directly obtained through the control proxy class even if the follow-up attribute information of the control is changed, the test script has no need to be changed or rewritten, thus the test script has no need to be maintained, and the
test efficiency can be effectively increased.