摘要 |
A method and device for debugging a page using a JS. The method for debugging a page using a JS comprises: creating a debug configuration file, wherein the debug configuration file is used for saving an interface content corresponding to an interface; and when a read-write operation on the interface is executed, a read-write operation corresponding to the interface is completed through the debug configuration file. A read-write operation on an interface is completed through a debug configuration file. In the case where various different condition combinations are tested, a read-write function for debug can be directly read from the debug configuration file with respect to the required interface content, so that complex work of repetitive operations in test work is reduced, and especially in the test process of pages, such as a set top box interface, required to be sequentially operated using a remote control direction key, workloads required for a test are greatly reduced in a quick read-write manner for the interface content in the read process, thereby improving the working efficiency of a page test. |