According to the method and device disclosed in the invention, targeted test triggering can be intelligently carried out on the controls in the UI according to the control characteristics in theUI, so that the effectiveness and reliability of the test can be greatly improved, and the time and cost of theTest can be saved.
The invention discloses a method and device for testing user interfaces UI of applications. The method comprises the following steps: obtaining an application which is submitted to test and starting the application; for each current UI of the application, recognizing the control characteristics on the current UI; if the control characteristics are recognized on the current UI, triggering a control corresponding to the control characteristics and skipping to the next UI of the application; if the control characteristics are not recognized on the current UI, judging whether the current UI is a guiding page through querying a guiding page database; and if the current UI is the guiding page, further obtaining the operation information of the guiding page from the guiding page database, and carrying out corresponding operation on the current UI according to the obtained operation information of the guiding page so as to skip the guiding page. According to the method and device disclosed in the invention, targeted test triggering can be intelligently carried out on the controls in the UI according to the control characteristics in the UI, so that the effectiveness and reliability of the test can be greatly improved, and the time and cost of the test can be saved.