Method and device for checking page script object leakage in application
The invention discloses a method and a device for checking page script object leakage in an application. The method comprises the following steps: running a to-be-tested application, wherein the to-be-tested application comprises a debugging version developed based on a preset framework, and the deb...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
03.07.2020
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a method and a device for checking page script object leakage in an application. The method comprises the following steps: running a to-be-tested application, wherein the to-be-tested application comprises a debugging version developed based on a preset framework, and the debugging version comprises a debugging method code; before a target page of a to-be-tested applicationis loaded, a script object in a script running environment is snapshot for the first time through a debugging method code; loading the target page, and executing the script code in the target page inthe script running environment; after the target page is finished, performing second snapshot on the script object in the script running environment; comparing the data of two snapshots; and determining whether a script object generated in a script code running process in the target page leaks or not according to a comparison result, by means of the method, script object leakage can be automatically checked, the defect th |
---|---|
Bibliography: | Application Number: CN201811603792 |