WO2016000546A1 - 缓存文件删除影响的校验方法、装置及移动终端 - Google Patents

缓存文件删除影响的校验方法、装置及移动终端 Download PDF

Info

Publication number
WO2016000546A1
WO2016000546A1 PCT/CN2015/082116 CN2015082116W WO2016000546A1 WO 2016000546 A1 WO2016000546 A1 WO 2016000546A1 CN 2015082116 W CN2015082116 W CN 2015082116W WO 2016000546 A1 WO2016000546 A1 WO 2016000546A1
Authority
WO
WIPO (PCT)
Prior art keywords
cache
verified
cache file
path
checked
Prior art date
Application number
PCT/CN2015/082116
Other languages
English (en)
French (fr)
Inventor
林坚明
张康宗
张楠
陈勇
徐鸣
Original Assignee
北京金山安全软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Priority to US15/322,968 priority Critical patent/US10191838B2/en
Publication of WO2016000546A1 publication Critical patent/WO2016000546A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/073Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0891Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches using clearing, invalidating or resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/60Details of cache memory

Definitions

  • the present invention relates to the field of mobile terminal devices, and in particular, to a method, an apparatus, and a mobile terminal for verifying cache file deletion effects.
  • each inbound cache path needs to undergo strict verification, that is, whether the application has an impact after deleting the path directory.
  • Step (1) detects which functions of the cache path generated by the application are related;
  • Step (2) deletes the test directory, reopens the application, clicks on the related function, and observes whether the file of the directory is regenerated. Whether to delete or delete the directory has an impact on the application (such as crash, display error, etc.). This is due to the possibility of guessing the error in step (1).
  • step (3) steps (1) for all the directories of the application. Repeated operation of step (2), when the verification deletes the directory has no effect on the application function, it can be stored.
  • the problem is that the above verification method belongs to the manual verification method, and the general verification work is performed manually, and has various shortcomings such as low effectiveness, high labor cost, and large amount of repeated labor.
  • the object of the present invention is to solve at least one of the technical problems in the related art to some extent.
  • a first object of the present invention is to provide a verification method for the effect of cache file deletion. The method only needs to simply add equipment to automatically detect whether the deleted cache file has an influence on the program, improve the parallel processing efficiency, and reduce the labor cost.
  • a second object of the present invention is to provide a verification apparatus for the effect of cache file deletion.
  • a third object of the present invention is to provide a mobile terminal.
  • a fourth object of the present invention is to provide a storage medium.
  • the method for verifying the impact of cache file deletion in the embodiment of the first aspect of the present invention includes: Acquiring a program to be verified, and acquiring a set of click paths and a set of cache paths corresponding to the program to be verified, wherein the set of click paths includes a plurality of click paths, and the set of cache paths includes a plurality of cache paths, each Clicking a path set corresponding to a cache path; obtaining a cache path to be verified in the cache path set, and deleting the to-be-checked cache file in the to-be-checked cache path; corresponding to the to-be-checked cache path Clicking a path to perform a simulated click on the to-be-verified program; and obtaining a deletion effect of the to-be-verified cache file according to the running result of the to-be-verified program.
  • the method for verifying the impact of the cache file deletion in the embodiment of the present invention may obtain a click path set and a cache path set corresponding to the program to be verified, and then obtain a cache path to be verified in the cache path set, and delete the to be verified.
  • the cache file to be verified in the cache path is simulated and clicked according to the click path corresponding to the cache path to be verified, and the deletion effect of the cache file to be checked is obtained according to the running result of the program to be verified, and the entire check is performed. In the process, it is performed on the mobile terminal or the simulator. It is only necessary to simply add the device to automatically detect whether the deleted cache file has an influence on the program, improve the parallel processing efficiency, and reduce the labor cost.
  • a verification device for affecting the deletion of a cache file in the embodiment of the second aspect of the present invention is configured to obtain a program to be verified, and obtain a click path set and a cache path corresponding to the program to be verified.
  • the collection wherein the set of click paths includes a plurality of click paths, the set of cache paths includes a plurality of cache paths, each set of click paths corresponds to a cache path, and a deletion module is configured to obtain the set in the cache path set a cache path to be verified, and deleting the to-be-checked cache file in the to-be-verified cache path; the simulation click module is configured to simulate the to-be-verified program according to the click path corresponding to the to-be-verified cache path And a second obtaining module, configured to acquire a deletion effect of the to-be-checked cache file according to a running result of the to-be-verified program.
  • the verification device of the cache file deletion effect of the embodiment of the present invention may obtain the click path set and the cache path set corresponding to the to-be-verified program by using the first obtaining module, and the deleting module obtains a to-be-checked cache path in the cache path set. And deleting the to-be-checked cache file in the cache path to be verified, the simulated click module performs a simulated click on the check program according to the click path corresponding to the cache path to be verified, and the second obtaining module obtains the waiting result according to the running result of the program to be verified. Check the deletion effect of the cache file. During the entire verification process, it is performed on the mobile terminal or the simulator. It is only necessary to simply add the device to automatically detect whether the deleted cache file has an impact on the program, and improve the parallelism. Processing efficiency reduces labor costs.
  • a mobile terminal includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, The processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the mobile terminal; the memory is configured to store executable program code; the processor Running a program corresponding to the executable program code by reading executable program code stored in the memory, for performing the following steps: acquiring a program to be verified, and acquiring a click corresponding to the program to be verified a set of paths and a set of cache paths, wherein the clicks
  • the path set includes a plurality of click paths, the cache path set includes a plurality of cache paths, each click path set corresponds to one cache path, acquires one to be verified cache path in the cache path set, and deletes the to-be-checked path Verifying the to-be-checked cache file in
  • the mobile terminal in the embodiment of the present invention may obtain a click path set and a cache path set corresponding to the program to be verified, and then obtain a cache path to be verified in the cache path set, and delete the to-be-checked in the cache path to be verified.
  • the mobile terminal or the simulator it is only necessary to simply add the device to automatically detect whether the deleted cache file has an influence on the program, improve the parallel processing efficiency, and reduce the labor cost.
  • a storage medium configured to store an application, and the application is used to perform a verification method for cache file deletion impact of the first aspect of the present invention.
  • FIG. 1 is a flowchart of a method for verifying the effect of cache file deletion according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an acquisition process of a deletion effect of a cache file to be verified according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for verifying the effect of cache file deletion according to another embodiment of the present invention.
  • FIG. 4 is a flowchart of an acquisition process of a deletion effect of a cache file to be verified according to another embodiment of the present invention.
  • FIG. 5 is a flowchart of an acquisition process of a deletion effect of a cache file to be verified according to still another embodiment of the present invention.
  • FIG. 6 is a flowchart of a verification process of cache file deletion impact according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a verification apparatus for cache file deletion impact according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a verification apparatus for affecting cache file deletion according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a verification apparatus for cache file deletion impact according to still another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a verification apparatus for affecting cache file deletion according to still another embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a verification apparatus for affecting cache file deletion according to still another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a verification apparatus for cache file deletion impact according to still another embodiment of the present invention.
  • the verification method for the cache file deletion impact may include:
  • the click path set may include multiple click paths
  • the cache path set may include multiple cache paths
  • each click path set corresponds to one cache path
  • the program to be verified of the verification may be obtained from the mobile terminal or the simulator first.
  • the click path set corresponding to the program to be verified can be obtained from the click path database, that is, the entire click operation record of the program to be verified at the time of automatic click and manual click, and the memory card which can be located in the mobile terminal or the simulator
  • the multiple cache paths corresponding to the program to be verified can be obtained from the rule database.
  • S103 Perform a simulated click on the verification program according to the click path corresponding to the cache path to be verified.
  • a click sequence when the buffer path to be verified is generated may be found from the set of click paths, and the simulator is started to perform click playback according to the click sequence.
  • the process of obtaining the deletion effect of the cache file to be verified includes the following steps:
  • the simulated click procedure when the simulated click procedure is performed according to the click path corresponding to the cache path to be verified, it may be detected whether the deleted cache file to be checked is still re-downloaded from the network.
  • timeliness may refer to an attribute to be verified that the cache file is of value to the decision only for a certain period of time. Specifically, it may first detect whether the cache file to be checked is called within a preset time. If the cache file to be checked is called within a preset time, it can be determined that the cache file to be verified is not time-sensitive. If the cache file to be verified is not called within the preset time, it may be determined that the cache file to be verified is time-sensitive.
  • the time-sensitive cache file to be checked may include a news file, a shopping file, an information file, and the like.
  • the cache file to be verified can be verified once again, and the file access of the program to be verified is monitored by a hook, and the click is played back. It is detected whether the to-be-verified program also accesses the to-be-checked cache file, and if it is no longer accessed, it can be determined that the to-be-verified cache file is time-sensitive.
  • deleting a file carefully can be understood as a resource that is repeatedly downloaded and repeatedly accessed, such as a social avatar.
  • the deletion process of the cache file to be verified can be obtained through the above process, and the acquisition process of the deletion effect of the cache file to be verified is refined, and the accuracy of the verification result is improved.
  • the method for verifying the impact of the cache file deletion in the embodiment of the present invention may obtain a click path set and a cache path set corresponding to the program to be verified, and then obtain a cache path to be verified in the cache path set, and delete the to be verified.
  • the cache file to be verified in the cache path is simulated and clicked according to the click path corresponding to the cache path to be verified, and the deletion effect of the cache file to be checked is obtained according to the running result of the program to be verified, and the entire check is performed. In the process, it is performed on the mobile terminal or the simulator. It is only necessary to simply add the device to automatically detect whether the deleted cache file has an influence on the program, improve the parallel processing efficiency, and reduce the labor cost.
  • the method for verifying the impact of the cache file deletion may further include:
  • the interface information set may include multiple interface information, and each interface information corresponds to one click path.
  • a plurality of interface information corresponding to the program to be verified may also be obtained from the click path database, and then the above S102 may be continued.
  • the interface information may include an interface screenshot, where, as shown in FIG. 4, the deletion effect of the to-be-verified cache file is obtained according to the running result of the to-be-verified program (S104 above) Specific package Including the following steps:
  • the S402 may be executed to determine to delete the to-be-checked cache file. No effect after that.
  • the current interface image generated by the program to be verified when comparing the current interface image generated by the program to be verified with the screenshot of the interface corresponding to the cache path to be verified, it is possible to find whether there is a single color block in the current interface image. For example, when the thumbnail of the image that is not generated again is deleted, the original thumbnail interface of the program to be verified may become black or white, and it may be judged that the deletion of the cache file to be verified has an influence.
  • the deletion effect of the cache file to be verified can be obtained by detecting whether the resource in the cache path to be verified is generated again, thereby expanding the acquisition mode and improving the accuracy.
  • the interface information may include an interface change sequence, wherein, as shown in FIG. 5, the deletion effect of the cache file to be checked is obtained according to the running result of the program to be verified (S104 above), specifically The following steps can be included:
  • sequence of the interface change corresponding to the cache path to be verified is inconsistent, that is, the sequence changes
  • it may be determined that deleting the cache file to be verified has an impact such as the program to be verified may pop up with a missing resource.
  • dialog box for keywords such as file corruption, or jump to the interface that is inconsistent with the original.
  • the interface corresponding to the buffer path to be verified can be changed by the new interface change sequence generated by the program to be verified.
  • the sequences are compared to expand the acquisition method and improve the accuracy.
  • the method for verifying the impact of the cache file deletion in the embodiment of the present invention may obtain the interface information set corresponding to the program to be verified after obtaining the program to be verified, and then, according to the content included in the interface information, the checksum is to be verified.
  • the method of obtaining the deletion effect of the cache file is also different, and the acquisition mode is expanded, and the accuracy of the verification result is greatly improved.
  • the server may include a database, and each database separately accesses data having different meanings.
  • the verification process will be described in detail below.
  • the program to be verified (S1) can be first taken out from the database. After that, the corresponding data can be respectively obtained, that is, all the cache paths corresponding to the program to be verified are taken out from the rule database, and the click path set, the interface screenshot, and the interface sequence are taken out from the click database to take out all the generated by the program to be verified.
  • File (S2) The mobile terminal or simulator downloads and installs the program to be verified (S3).
  • the program to be verified is started (S4).
  • the crash detection module can detect whether the program to be verified is crashed, and the re-download detection module detects whether the cache file to be verified is re-downloaded, and the non-renewable resource detection module detects whether the resource in the cache path to be verified is generated again, and the interface sequence comparison module compares Whether the new interface change sequence generated by the check program is consistent with the interface change sequence corresponding to the cache path to be verified (S8). After that, the time-sensitive detection process is entered, that is, whether the file in the cache path to be verified is time-sensitive (S9).
  • the summer prompts the verification of the cache path judgment result, such as whether the file in the to-be-verified cache path is deleted, whether the file is a cache file, or whether the file is a discretionary deletion file or the like (S10). Thereafter, it is determined whether there are other unchecked cache paths in the to-be-verified program (S11), and if so, the process proceeds to S5; if not, the process ends.
  • the present invention also proposes a verification device for the effect of cache file deletion.
  • FIG. 7 is a schematic structural diagram of a verification apparatus for cache file deletion impact according to an embodiment of the present invention.
  • the verification device affected by the cache file deletion may include: a first acquisition module 10, a deletion module 20, an analog click module 30, and a second acquisition module 40.
  • the first obtaining module 10 is configured to obtain a program to be checked, and obtain a click path set and a cache path set corresponding to the program to be verified.
  • the click path set includes a plurality of click paths
  • the cache path set includes a plurality of cache paths
  • each click path set corresponds to one cache path.
  • the deleting module 20 is configured to obtain a buffer path to be verified in the cache path set, and delete the to-be-checked cache file in the to-be-verified cache path.
  • the simulation click module 30 can be configured to perform a simulated click on the verification program according to the click path corresponding to the cache path to be verified.
  • the second obtaining module 40 is configured to obtain the to-be-checked according to the running result of the program to be verified The effect of deleting files is saved.
  • the second obtaining module 40 may include a first detecting unit 41 and a first determining unit 42.
  • the first detecting unit 41 can be configured to detect whether the program to be verified is crashed.
  • the first determining unit 42 is configured to determine, when the first detecting unit 41 detects that the program to be verified is crashing, that deleting the to-be-verified cache file may cause the program to be verified to crash.
  • the second obtaining module 40 may further include a second detecting unit 43, a second determining unit 44, a third detecting unit 45, and a third determining unit 46.
  • the second detecting unit 43 is configured to detect whether the cache file to be verified is re-downloaded.
  • the second determining unit 44 is configured to determine, after the second detecting unit 43 detects that the cache file to be verified is re-downloaded, that there is no impact after deleting the cache file to be verified.
  • the third detecting unit 45 can be configured to detect the timeliness of the cache file to be checked after the second detecting unit 43 detects that the cache file to be verified is re-downloaded.
  • the third determining unit 46 is configured to determine that the cache file to be verified is a cache file when the third detecting unit 45 detects that the cache file to be verified has timeliness. In addition, in the embodiment of the present invention, the third determining unit 46 is further configured to determine, when the third detecting unit 45 detects that the cache file to be verified is not time-sensitive, to delete the cache file to be checked as a discretionary deletion file.
  • the third detecting unit 45 may first detect whether the cache file to be checked is called in a preset time. If the cache file to be checked is called within a preset time, it is determined that the cache file to be verified is not time-sensitive. If the cache file to be verified is not called within the preset time, it is determined that the cache file to be verified is time-sensitive. Thereby, the acquisition process of the deletion effect of the cache file to be verified is refined, and the accuracy of the verification result is improved.
  • the verification device affected by the cache file deletion may further include a third acquisition module 50.
  • the third obtaining module 50 may obtain an interface information set corresponding to the program to be verified.
  • the interface information set may include multiple interface information, and each interface information corresponds to one click path.
  • the interface information may include an interface screenshot.
  • the second obtaining module 40 may further include a fourth detecting unit 47 and a first comparing unit 48, as shown in FIG.
  • the fourth detecting unit 47 is configured to detect whether resources in the cache path to be verified are generated again. If the resource in the buffer path to be verified is generated again, the second determining unit 44 is triggered; if the resource in the buffer path to be verified is not generated again, the first comparing unit 48 is triggered.
  • the first comparison unit 48 can be configured to detect, at the fourth detecting unit 47, that the resource in the to-be-verified cache path is not generated again, and when the directory file type of the cache path to be verified is a picture, the current program to be verified is generated.
  • the interface picture is compared with the screenshot of the interface corresponding to the cache path to be verified.
  • the second determining unit 44 is further configured to determine, after the first comparison unit 48 is inconsistent with the interface screenshot corresponding to the to-be-verified cache path generated by the current interface picture generated by the verification program, that the deletion of the to-be-verified cache file has an impact.
  • the detection of the deletion of the cache file to be verified can be obtained by detecting whether the resource in the cache path to be verified is generated again, thereby expanding the acquisition mode and improving the accuracy.
  • the interface information may include an interface change sequence
  • the second obtaining module 40 may further include an obtaining unit 49 and a second comparing unit 410.
  • the obtaining unit 49 is configured to acquire a new sequence of interface changes generated by the program to be verified.
  • the second comparison unit 410 can be configured to compare the new interface change sequence with the interface change sequence corresponding to the buffer path to be verified.
  • the second determining unit 44 is further configured to determine, when the second comparison unit 410 is inconsistent with the interface change sequence corresponding to the new interface change sequence and the to-be-checked cache path, to delete the to-be-checked There is an impact after caching the file. Therefore, the new interface change sequence generated by the program to be verified can be compared with the interface change sequence corresponding to the buffer path to be verified, thereby expanding the acquisition mode and improving the accuracy.
  • the verification device of the cache file deletion effect of the embodiment of the present invention may obtain the click path set and the cache path set corresponding to the to-be-verified program by using the first obtaining module, and the deleting module obtains a to-be-checked cache path in the cache path set. And deleting the to-be-checked cache file in the cache path to be verified, the simulated click module performs a simulated click on the check program according to the click path corresponding to the cache path to be verified, and the second obtaining module obtains the waiting result according to the running result of the program to be verified. Check the deletion effect of the cache file. During the entire verification process, it is performed on the mobile terminal or the simulator. It is only necessary to simply add the device to automatically detect whether the deleted cache file has an impact on the program, and improve the parallelism. Processing efficiency reduces labor costs.
  • the present invention also provides a mobile terminal.
  • the mobile terminal may be a hardware device with various operating systems, such as a mobile phone, a tablet computer, and a personal digital assistant. It may include: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power circuit is used for the mobile terminal Each of the circuits or devices is powered; the memory is for storing executable program code; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory for performing the following steps:
  • the click path set includes a plurality of click paths
  • the cache path set includes a plurality of cache paths
  • each click path set corresponds to one cache path
  • S102' Obtain a to-be-checked cache path in the cache path set, and delete the to-be-checked cache file in the to-be-verified cache path.
  • the mobile terminal in the embodiment of the present invention may obtain a click path set and a cache path set corresponding to the program to be verified, and then obtain a cache path to be verified in the cache path set, and delete the to-be-checked in the cache path to be verified. Slow down The file is saved, and the program to be verified is clicked according to the click path corresponding to the cache path to be verified, and the deletion effect of the cache file to be verified is obtained according to the running result of the program to be verified, and the entire verification process is moving. On the terminal or the simulator, it is only necessary to simply add the device to automatically detect whether the deleted cache file has an influence on the program, improve the parallel processing efficiency, and reduce the labor cost.
  • the present invention also provides a storage medium for storing an application for performing a verification method of the cache file deletion effect described in any of the above embodiments.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Debugging And Monitoring (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种缓存文件删除影响的检验方法、装置、移动终端及存储介质,其中该方法包括:获取待检验程序,并获取待检验程序对应的点击路径集合和缓存路径集合,其中,点击路径集合包括多个点击9路径,缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;获取缓存路径集合中的一个待检验缓存路径,并删除待校验缓存路径中的待校验缓存文件;根据待校验缓存路径对应的点击路径对待检验程序进行模拟点击;以及根据待校验程序的运行结果获取待校验缓存文件的删除影响。本发明实施例的方法只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。

Description

缓存文件删除影响的校验方法、装置及移动终端
相关申请的交叉引用
本申请要求北京金山安全软件有限公司于2014年6月30日提交的、发明名称为“缓存文件删除影响的校验方法、装置及移动终端”的、中国专利申请号“201410308925.2”的优先权。
技术领域
本发明涉及移动终端设备技术领域,尤其涉及一种缓存文件删除影响的校验方法、装置以及移动终端。
背景技术
目前,在垃圾清理的应用程序或应用软件中,每一条入库的缓存路径都需要经过严格的校验,即校验删除该路径目录之后对应用程序是否有影响。
目前,这个校验过程一般均是人工进行校验的。具体地,校验方法如下:步骤(1)检测应用程序产生的缓存路径与哪些功能相关;步骤(2)将测试目录删除,重新打开应用程序,点击相关功能,观察该目录的文件是否会再生成、删除该目录对应用程序是否有影响(如崩溃、显示出错等)等。这是由于有可能步骤(1)的猜测错误,如测试目录和该功能无联系,此时需将应用程序所有功能重新用一遍;步骤(3)对应用程序的所有目录进行步骤(1)、步骤(2)的反复操作,当校验删除该目录对应用程序功能无影响时即可入库。
但是存在的问题是,上述校验方法属于人工校验方法,普遍的校验工作均为人工进行,具有效力低下、人力成本高、大量的重复劳动等多种缺点。
发明内容
本发明的目的旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本发明的第一个目的在于提出一种缓存文件删除影响的校验方法。该方法只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。
本发明的第二个目的在于提出一种缓存文件删除影响的校验装置。
本发明的第三个目的在于提出一种移动终端。
本发明的第四个目的在于提出一种存储介质。
为了实现上述目的,本发明第一方面实施例的缓存文件删除影响的校验方法,包括: 获取待校验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;获取所述缓存路径集合中的一个待校验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响。
本发明实施例的缓存文件删除影响的校验方法,可获取待校验程序对应的点击路径集合和缓存路径集合,之后可获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓存文件,根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击,并根据待校验程序的运行结果获取待校验缓存文件的删除影响,整个校验过程中,均是在移动终端或模拟器上进行的,只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。
为了实现上述目的,本发明第二方面实施例的缓存文件删除影响的校验装置,第一获取模块,用于获取待检验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;删除模块,用于获取所述缓存路径集合中的一个待检验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;模拟点击模块,用于根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及第二获取模块,用于根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响。
本发明实施例的缓存文件删除影响的校验装置,可通过第一获取模块获取待校验程序对应的点击路径集合和缓存路径集合,删除模块获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓存文件,模拟点击模块根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击,第二获取模块根据待校验程序的运行结果获取待校验缓存文件的删除影响,整个校验过程中,均是在移动终端或模拟器上进行的,只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。
为了实现上述目的,本发明第三方面实施例的移动终端,包括:壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:获取待校验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击 路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;获取所述缓存路径集合中的一个待校验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响。
本发明实施例的移动终端,可获取待校验程序对应的点击路径集合和缓存路径集合,之后可获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓存文件,根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击,并根据待校验程序的运行结果获取待校验缓存文件的删除影响,整个校验过程中,均是在移动终端或模拟器上进行的,只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。
为了实现上述目的,本发明第四方面实施例的存储介质,用于存储应用程序,所述应用程序用于执行本发明第一方面实施例的缓存文件删除影响的校验方法。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,
图1是根据本发明一个实施例的缓存文件删除影响的校验方法的流程图;
图2是根据本发明一个实施例的待校验缓存文件的删除影响的获取过程的流程图;
图3根据本发明另一个实施例的缓存文件删除影响的校验方法的流程图;
图4是根据本发明另一个实施例的待校验缓存文件的删除影响的获取过程的流程图;
图5是根据本发明又一个实施例的待校验缓存文件的删除影响的获取过程的流程图;
图6是根据本发明实施例的缓存文件删除影响的校验过程的流程图;
图7是根据本发明一个实施例的缓存文件删除影响的校验装置的结构示意图;
图8是根据本发明另一个实施例的缓存文件删除影响的校验装置的结构示意图;
图9是根据本发明又一个实施例的缓存文件删除影响的校验装置的结构示意图;
图10是根据本发明再一个实施例的缓存文件删除影响的校验装置的结构示意图;
图11是根据本发明再又一个实施例的缓存文件删除影响的校验装置的结构示意图;以及
图12是根据本发明再另一个实施例的缓存文件删除影响的校验装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
下面参考附图描述根据本发明实施例的缓存文件删除影响的校验方法、装置及移动终端。
图1是根据本发明一个实施例的缓存文件删除影响的校验方法的流程图。如图1所示,该缓存文件删除影响的校验方法可以包括:
S101,获取待校验程序,并获取待校验程序对应的点击路径集合和缓存路径集合。
其中,在本发明的实施例中,点击路径集合可包括多个点击路径,缓存路径集合可包括多个缓存路径,每个点击路径集合与一个缓存路径对应。
举例而言,以待校验程序被安装在移动终端或模拟器上为例,可先从移动终端或模拟器中获取本次校验的待校验程序。之后,可从点击路径数据库中获取待校验程序对应的点击路径集合,即当时自动化点击、人工点击时对该待校验程序的整个点击操作记录,可位于移动终端或模拟器中的存储卡中,并可从规则数据库中获取待校验程序对应的多个缓存路径。
S102,获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓存文件。
S103,根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击。
举例而言,可从点击路径集合中找出该待校验缓存路径产生时的点击序列,并根据该点击序列启动模拟器进行点击回放。
S104,根据待校验程序的运行结果获取待校验缓存文件的删除影响。
具体而言,在本发明的一个实施例中,可先检测待校验程序是否崩溃。如果检测待校验程序崩溃,则可判断删除待校验缓存文件之后会导致待校验程序崩溃。
在本发明的另一个实施例中,如图2所示,待校验缓存文件的删除影响的获取过程包括以下步骤:
S201,检测待校验缓存文件是否被重新下载。
具体地,在根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击时,可检测被删除的待校验缓存文件是否还会从网络中重新下载。
需要说明的是,在本发明的实施例中,如果检测待校验缓存文件未被重新下载,则可判断删除待校验缓存文件之后有影响。
S202,如果检测待校验缓存文件被重新下载,则判断删除待校验缓存文件之后无影响。
S203,在检测待校验缓存文件被重新下载之后,对待校验缓存文件的时效性进行检测。
应当理解,时效性可指待校验缓存文件仅在一定时间段内对决策具有价值的属性。具体而言,可先检测在预设时间内待校验缓存文件是否被调用。如果在预设时间内待校验缓存文件被调用,则可判断待校验缓存文件不具有时效性。如果在预设时间内待校验缓存文件未被调用,则可判断待校验缓存文件具有时效性。其中,在本发明的实施例中,具有时效性的待校验缓存文件可包括新闻类文件、购物类文件、资讯类文件等。
也就是说,等一定时间(默认阀值为2天)后,可对该待校验缓存文件再进行一次校验,通过钩(hook)实现监控待校验程序的文件访问,回放点击,以检测待校验程序是否还会访问该待校验缓存文件,如果不再访问则可判断该待校验缓存文件具有时效性。
S204,如果待校验缓存文件具有时效性,则判断待校验缓存文件为缓存文件。
S205,如果待校验缓存文件不具有时效性,则判断删除待校验缓存文件为慎重删除文件。
其中,在本发明的实施例中,慎重删除文件可理解为如社交类头像等重复下载、重复访问的资源。
由此,可通过上述过程即可获取待校验缓存文件的删除影响,细化了待校验缓存文件的删除影响的获取过程,提高了校验结果的准确度。
本发明实施例的缓存文件删除影响的校验方法,可获取待校验程序对应的点击路径集合和缓存路径集合,之后可获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓存文件,根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击,并根据待校验程序的运行结果获取待校验缓存文件的删除影响,整个校验过程中,均是在移动终端或模拟器上进行的,只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。
可选的,根据本发明的一个实施例,如图3所示,该缓存文件删除影响的校验方法还可以包括:
S305,获取待校验程序对应的界面信息集合。
其中,在本发明的实施例中,界面信息集合可包括多个界面信息,每个界面信息与一个点击路径对应。
具体地,在获取到待校验程序之后,还可从点击路径数据库中获取待校验程序对应的多个界面信息,之后可继续执行上述S102。
可选的,在本发明的一个实施例中,上述界面信息可包括界面截图,其中,如图4所示,根据待校验程序的运行结果获取待校验缓存文件的删除影响(上述S104),具体可包 括以下步骤:
S401,检测待校验缓存路径中的资源是否再次生成。
S402,如果待校验缓存路径中的资源再次生成,则判断删除待校验缓存文件之后无影响。
S403,如果待校验缓存路径中的资源不会再次生成,且待校验缓存路径的目录文件类型为图片,则将待校验程序生成的当前界面图片与待校验缓存路径对应的界面截图进行比对。
需要说明的是,在本发明的实施例中,如果待校验程序生成的当前界面图片与待校验缓存路径对应的界面截图一致,则可执行上述S402,即可判断删除待校验缓存文件之后无影响。
S404,如果待校验程序生成的当前界面图片与待校验缓存路径对应的界面截图不一致,则判断删除待校验缓存文件之后有影响。
举例而言,在将待校验程序生成的当前界面图片与待校验缓存路径对应的界面截图进行图片比对时,可在当前界面图片中查找是否有单一色块。例如,当不会再次生成的图片缩略图被删除后,待校验程序原来缩略图界面会变为一片黑或白,则可判断删除待校验缓存文件之后有影响。
由此,可通过检测待校验缓存路径中的资源是否再次生成来获取待校验缓存文件的删除影响,扩大了获取方式,提高准确度。
在本发明的另一个实施例中,上述界面信息可包括界面变化序列,其中,如图5所示,根据待校验程序的运行结果获取待校验缓存文件的删除影响(上述S104),具体可包括以下步骤:
S501,获取待校验程序生成的新界面变化序列。
应当理解,当点击待校验程序的不同界面时,将会产生一个界面变化序列。
S502,将新界面变化序列与待校验缓存路径对应的界面变化序列进行比对。
S503,如果新界面变化序列与待校验缓存路径对应的界面变化序列不一致,则判断删除待校验缓存文件之后有影响。
具体地,当新界面变化序列与待校验缓存路径对应的界面变化序列不一致,即序列发生变化时,可判断删除待校验缓存文件之后有影响,如待校验程序会弹出带有缺少资源、文件损坏等关键字的对话框,或者跳转到与原来不一致的界面等。
S504,如果新界面变化序列与待校验缓存路径对应的界面变化序列一致,则可判断删除待校验缓存文件之后无影响。
由此,可通过将待校验程序生成的新界面变化序列与待校验缓存路径对应的界面变化 序列进行比对,扩大了获取方式,提高准确度。
本发明实施例的缓存文件删除影响的校验方法,在获取到待校验程序之后,还可获取待校验程序对应的界面信息集合,之后,可根据界面信息包括的内容不同,待校验缓存文件的删除影响的获取方式也不同,扩大了获取方式,大大提高了校验结果的准确度。
为了使得本领域的技术人员更加地了解本发明,下面可举例说明本发明的缓存文件删除影响的校验过程。
举例而言,假设校验***所需要设备包括服务器、移动终端、模拟器等,服务器可包括数据库,每个数据库中分别存取具有不同意义的数据,下面将详细介绍校验过程。如图6所示,首先可先从数据库中取出待校验程序(S1)。之后,可分别获取相应的数据,即从规则数据库中取出待校验程序对应的所有缓存路径,并从点击数据库中取出点击路径集合、界面截图、界面序列,以取出待校验程序产生的所有文件(S2)。移动终端或模拟器下载并安装待校验程序(S3)。启动待校验程序(S4)。之后,可取出一个需要删除校验的缓存路径,并删除该缓存路径中的缓存文件(S5)。然后,从上述S2中的点击路径集合中找出该缓存路径产生时的点击序列,启动点击模块进行点击回放(S6)。在对待校验程序进行模拟点击过程中,启动所有检测模块检测(S7)。崩溃检测模块可检测待校验程序是否崩溃,重新下载检测模块检测待校验缓存文件是否被重新下载,不再生资源检测模块检测待校验缓存路径中的资源是否再次生成,界面序列对比模块比对待校验程序生成的新界面变化序列与待校验缓存路径对应的界面变化序列是否一致(S8)。之后,进入时效性检测流程,即检测待校验缓存路径中的文件是否具有时效性(S9)。最后,暑促待校验缓存路径判断结果,如删除该待校验缓存路径中的文件之后是否有影响、或该文件是否是缓存文件、或该文件是否是慎重删除文件等(S10)。之后,判断该待校验程序中是否还有其他未校验的缓存路径(S11),若有,则继续执行S5;若没有,则结束。
另外,本发明还提出了一种缓存文件删除影响的校验装置。
图7是根据本发明一个实施例的缓存文件删除影响的校验装置的结构示意图。如图7所示,该缓存文件删除影响的校验装置可以包括:第一获取模块10、删除模块20、模拟点击模块30和第二获取模块40。
具体地,第一获取模块10可用于获取待检验程序,并获取待校验程序对应的点击路径集合和缓存路径集合。其中,在本发明的实施例中,点击路径集合包括多个点击路径,缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应。
删除模块20可用于获取缓存路径集合中的一个待检验缓存路径,并删除待校验缓存路径中的待校验缓存文件。模拟点击模块30可用于根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击。第二获取模块40可用于根据待校验程序的运行结果获取待校验缓 存文件的删除影响。
优选的,在本发明的一个实施例中,如图8所示,该第二获取模块40可包括第一检测单元41和第一判断单元42。具体地,第一检测单元41可用于检测待校验程序是否崩溃。第一判断单元42可用于在第一检测单元41检测待校验程序崩溃时,判断删除待校验缓存文件之后会导致待校验程序崩溃。
在本发明的另一个实施例中,如图9所示,该第二获取模块40还可包括第二检测单元43、第二判断单元44、第三检测单元45和第三判断单元46。具体地,第二检测单元43可用于检测待校验缓存文件是否被重新下载。第二判断单元44可用于在第二检测单元43检测待校验缓存文件被重新下载时,判断删除待校验缓存文件之后无影响。第三检测单元45可用于在第二检测单元43检测待校验缓存文件被重新下载之后,对待校验缓存文件的时效性进行检测。第三判断单元46可用于在第三检测单元45检测待校验缓存文件具有时效性时,判断待校验缓存文件为缓存文件。此外,在本发明的实施例中,第三判断单元46还可用于在第三检测单元45检测待校验缓存文件不具有时效性时,判断删除待校验缓存文件为慎重删除文件。
具体而言,第三检测单元45可先检测在预设时间内待校验缓存文件是否被调用,如果在预设时间内待校验缓存文件被调用,则判断待校验缓存文件不具有时效性;如果在预设时间内待校验缓存文件未被调用,则判断待校验缓存文件具有时效性。由此,细化了待校验缓存文件的删除影响的获取过程,提高了校验结果的准确度。
可选的,根据本发明的一个实施例,如图10所示,该缓存文件删除影响的校验装置还可包括第三获取模块50。具体地,第三获取模块50可获取待校验程序对应的界面信息集合。其中,在本发明的实施例中,界面信息集合可包括多个界面信息,每个界面信息与一个点击路径对应。
可选的,在本发明的一个实施例中,上述界面信息可包括界面截图,其中,如图11所示,第二获取模块40还可包括第四检测单元47和第一比对单元48。具体地,第四检测单元47可用于检测待校验缓存路径中的资源是否再次生成。如果待校验缓存路径中的资源再次生成,则触发第二判断单元44;如果待校验缓存路径中的资源不会再次生成,则触发第一比对单元48。
第一比对单元48可用于在第四检测单元47检测待校验缓存路径中的资源不会再次生成,且待校验缓存路径的目录文件类型为图片时,将待校验程序生成的当前界面图片与待校验缓存路径对应的界面截图进行比对。
第二判断单元44还可用于在第一比对单元48比对待校验程序生成的当前界面图片与待校验缓存路径对应的界面截图不一致时,判断删除待校验缓存文件之后有影响。由此, 可通过检测待校验缓存路径中的资源是否再次生成来获取待校验缓存文件的删除影响,扩大了获取方式,提高准确度。
在本发明的另一个实施例中,上述界面信息可包括界面变化序列,其中,如图12所示,第二获取模块40还可包括获取单元49和第二比对单元410。具体地,获取单元49可用于获取待校验程序生成的新界面变化序列。第二比对单元410可用于将新界面变化序列与待校验缓存路径对应的界面变化序列进行比对。此外,在本发明的实施例中,第二判断单元44还可用于在第二比对单元410比对新界面变化序列与待校验缓存路径对应的界面变化序列不一致时,判断删除待校验缓存文件之后有影响。由此,可通过将待校验程序生成的新界面变化序列与待校验缓存路径对应的界面变化序列进行比对,扩大了获取方式,提高准确度。
本发明实施例的缓存文件删除影响的校验装置,可通过第一获取模块获取待校验程序对应的点击路径集合和缓存路径集合,删除模块获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓存文件,模拟点击模块根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击,第二获取模块根据待校验程序的运行结果获取待校验缓存文件的删除影响,整个校验过程中,均是在移动终端或模拟器上进行的,只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。
此外,本发明还提出了一种移动终端,需要说明的是,该移动终端可以是手机、平板电脑、个人数字助理等具有各种操作***的硬件设备。其可包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为移动终端的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:
S101’,获取待校验程序,并获取待校验程序对应的点击路径集合和缓存路径集合。
其中,在本发明的实施例中,点击路径集合包括多个点击路径,缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应。
S102’,获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓存文件。
S103’,根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击。
S104’,根据待校验程序的运行结果获取待校验缓存文件的删除影响。
本发明实施例的移动终端,可获取待校验程序对应的点击路径集合和缓存路径集合,之后可获取缓存路径集合中的一个待校验缓存路径,并删除待校验缓存路径中的待校验缓 存文件,根据待校验缓存路径对应的点击路径对待校验程序进行模拟点击,并根据待校验程序的运行结果获取待校验缓存文件的删除影响,整个校验过程中,均是在移动终端或模拟器上进行的,只需要简单的增加设备即可实现自动化检测删除的缓存文件是否对程序有影响,提高了并行处理效率,降低了人工成本。
此外,本发明还提出了一种存储介质,用于存储应用程序,该应用程序用于执行上述任一个实施例所述的缓存文件删除影响的校验方法。
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行***、装置或设备(如基于计算机的***、包括处理器的***或其他可以从指令执行***、装置或设备取指令并执行指令的***)使用,或结合这些指令执行***、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行***、装置或设备或结合这些指令执行***、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行***执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路 的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (18)

  1. 一种缓存文件删除影响的校验方法,其特征在于,包括以下步骤:
    获取待校验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;
    获取所述缓存路径集合中的一个待校验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;
    根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及
    根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响。
  2. 如权利要求1所述的缓存文件删除影响的校验方法,其特征在于,根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:
    检测所述待校验程序是否崩溃;以及
    如果检测所述待校验程序崩溃,则判断删除所述待校验缓存文件之后会导致所述待校验程序崩溃。
  3. 如权利要求1所述的缓存文件删除影响的校验方法,其特征在于,根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:
    检测所述待校验缓存文件是否被重新下载;
    如果检测所述待校验缓存文件被重新下载,则判断删除所述待校验缓存文件之后无影响。
  4. 如权利要求3所述的缓存文件删除影响的校验方法,其特征在于,在检测所述待校验缓存文件被重新下载之后,还包括:
    对所述待校验缓存文件的时效性进行检测;
    如果所述待校验缓存文件具有时效性,则判断所述待校验缓存文件为缓存文件;以及
    如果所述待校验缓存文件不具有时效性,则判断删除所述待校验缓存文件为慎重删除文件。
  5. 如权利要求4所述的缓存文件删除影响的校验方法,其特征在于,所述对所述待校验缓存文件的时效性进行检测具体包括:
    检测在预设时间内所述待校验缓存文件是否被调用;
    如果在预设时间内所述待校验缓存文件被调用,则判断所述待校验缓存文件不具有时效性;以及
    如果在预设时间内所述待校验缓存文件未被调用,则判断所述待校验缓存文件具有时 效性。
  6. 如权利要求1-5中任一项所述的缓存文件删除影响的校验方法,其特征在于,还包括:
    获取所述待校验程序对应的界面信息集合,所述界面信息集合包括多个界面信息,每个所述界面信息与一个所述点击路径对应。
  7. 如权利要求6所述的缓存文件删除影响的校验方法,其特征在于,所述界面信息包括界面截图,其中,所述根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:
    检测所述待校验缓存路径中的资源是否再次生成;
    如果所述待校验缓存路径中的资源再次生成,则判断删除所述待校验缓存文件之后无影响;
    如果所述待校验缓存路径中的资源不会再次生成,且所述待校验缓存路径的目录文件类型为图片,则将所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图进行比对;
    如果所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图不一致,则判断删除所述待校验缓存文件之后有影响。
  8. 如权利要求6所述的缓存文件删除影响的校验方法,其特征在于,所述界面信息包括界面变化序列,其中,所述根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:
    获取所述待校验程序生成的新界面变化序列;
    将所述新界面变化序列与所述待校验缓存路径对应的界面变化序列进行比对;
    如果所述新界面变化序列与所述待校验缓存路径对应的界面变化序列不一致,则判断删除所述待校验缓存文件之后有影响。
  9. 一种缓存文件删除影响的校验装置,其特征在于,包括:
    第一获取模块,用于获取待检验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;
    删除模块,用于获取所述缓存路径集合中的一个待检验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;
    模拟点击模块,用于根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及
    第二获取模块,用于根据所述待校验程序的运行结果获取所述待校验缓存文件的删除 影响。
  10. 如权利要求9所述的缓存文件删除影响的校验装置,其特征在于,所述第二获取模块包括:
    第一检测单元,用于检测所述待校验程序是否崩溃;以及
    第一判断单元,用于在所述第一检测单元检测所述待校验程序崩溃时,判断删除所述待校验缓存文件之后会导致所述待校验程序崩溃。
  11. 如权利要求9所述的缓存文件删除影响的校验装置,其特征在于,所述第二获取模块包括:
    第二检测单元,用于检测所述待校验缓存文件是否被重新下载;
    第二判断单元,用于在所述第二检测单元检测所述待校验缓存文件被重新下载时,判断删除所述待校验缓存文件之后无影响。
  12. 如权利要求11所述的缓存文件删除影响的校验装置,其特征在于,所述第二获取模块还包括:
    第三检测单元,用于在所述第二检测单元检测所述待校验缓存文件被重新下载之后,对所述待校验缓存文件的时效性进行检测;
    第三判断单元,用于在所述第三检测单元检测所述待校验缓存文件具有时效性时,判断所述待校验缓存文件为缓存文件;以及
    所述第三判断单元还用于在所述第三检测单元检测所述待校验缓存文件不具有时效性时,判断删除所述待校验缓存文件为慎重删除文件。
  13. 如权利要求12所述的缓存文件删除影响的校验装置,其特征在于,所述第三检测单元具体用于:
    检测在预设时间内所述待校验缓存文件是否被调用;
    如果在预设时间内所述待校验缓存文件被调用,则判断所述待校验缓存文件不具有时效性;以及
    如果在预设时间内所述待校验缓存文件未被调用,则判断所述待校验缓存文件具有时效性。
  14. 如权利要求9-13中任一项所述的缓存文件删除影响的校验装置,其特征在于,还包括:
    第三获取模块,用于获取所述待校验程序对应的界面信息集合,所述界面信息集合包括多个界面信息,每个所述界面信息与一个所述点击路径对应。
  15. 如权利要求11或14所述的缓存文件删除影响的校验装置,其特征在于,所述界面信息包括界面截图,其中,所述第二获取模块包括:
    第四检测单元,用于检测所述待校验缓存路径中的资源是否再次生成;如果所述待校验缓存路径中的资源再次生成,则触发所述第二判断单元;如果所述待校验缓存路径中的资源不会再次生成,则触发第一比对单元;
    所述第一比对单元,用于在所述第四检测单元检测所述待校验缓存路径中的资源不会再次生成,且所述待校验缓存路径的目录文件类型为图片时,将所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图进行比对;
    所述第二判断单元还用于在所述第一比对单元比对所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图不一致时,判断删除所述待校验缓存文件之后有影响。
  16. 如权利要求14所述的缓存文件删除影响的校验装置,其特征在于,所述界面信息包括界面变化序列,其中,所述第二获取模块包括:
    获取单元,用于获取所述待校验程序生成的新界面变化序列;
    第二比对单元,用于将所述新界面变化序列与所述待校验缓存路径对应的界面变化序列进行比对;
    所述第二判断单元还用于在所述第二比对单元比对所述新界面变化序列与所述待校验缓存路径对应的界面变化序列不一致时,判断删除所述待检验缓存文件之后有影响。
  17. 一种移动终端,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:
    获取待校验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;
    获取所述缓存路径集合中的一个待校验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;
    根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及
    根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响。
  18. 一种存储介质,其特征在于,用于存储应用程序,所述应用程序用于执行权利要求1至8中任一项所述的缓存文件删除影响的校验方法。
PCT/CN2015/082116 2014-06-30 2015-06-23 缓存文件删除影响的校验方法、装置及移动终端 WO2016000546A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/322,968 US10191838B2 (en) 2014-06-30 2015-06-23 Method and device for checking influence of deleting cache file, and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410308925.2A CN105446864B (zh) 2014-06-30 2014-06-30 缓存文件删除影响的校验方法、装置及移动终端
CN201410308925.2 2014-06-30

Publications (1)

Publication Number Publication Date
WO2016000546A1 true WO2016000546A1 (zh) 2016-01-07

Family

ID=55018430

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082116 WO2016000546A1 (zh) 2014-06-30 2015-06-23 缓存文件删除影响的校验方法、装置及移动终端

Country Status (3)

Country Link
US (1) US10191838B2 (zh)
CN (1) CN105446864B (zh)
WO (1) WO2016000546A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017210317A1 (en) * 2016-05-31 2017-12-07 Manufacturing Resources International, Inc. Electronic display remote image verification system and method
US10269156B2 (en) 2015-06-05 2019-04-23 Manufacturing Resources International, Inc. System and method for blending order confirmation over menu board background
US10319408B2 (en) 2015-03-30 2019-06-11 Manufacturing Resources International, Inc. Monolithic display with separately controllable sections
US10319271B2 (en) 2016-03-22 2019-06-11 Manufacturing Resources International, Inc. Cyclic redundancy check for electronic displays
US10510304B2 (en) 2016-08-10 2019-12-17 Manufacturing Resources International, Inc. Dynamic dimming LED backlight for LCD array
US10922736B2 (en) 2015-05-15 2021-02-16 Manufacturing Resources International, Inc. Smart electronic display for restaurants
US11895362B2 (en) 2021-10-29 2024-02-06 Manufacturing Resources International, Inc. Proof of play for images displayed at electronic displays

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203417B (zh) * 2017-05-25 2021-01-05 北京猎豹移动科技有限公司 一种数据清理方法、相关装置及电子设备
CN109359052A (zh) * 2018-12-03 2019-02-19 北京车智赢科技有限公司 基于ui的移动端自动化测试方法及***
CN112433993B (zh) * 2020-11-16 2021-10-01 连邦网络科技服务南通有限公司 一种基于计算机的网络数据处理分析***

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571821A (zh) * 2009-06-08 2009-11-04 广州番禺巨大汽车音响设备有限公司 一种可恢复被删除的网络硬盘重要文件的***
CN102355515A (zh) * 2011-10-13 2012-02-15 广东欧珀移动通信有限公司 一种手机文件操作的自动化测试方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6490594B1 (en) * 1997-04-04 2002-12-03 Microsoft Corporation Database computer system with application recovery and dependency handling write cache
US7231606B2 (en) * 2000-10-31 2007-06-12 Software Research, Inc. Method and system for testing websites
US6745213B2 (en) * 2001-11-21 2004-06-01 Sun Microsystems, Inc. Method and apparatus to facilitate testing of garbage collection implementations
US20040260678A1 (en) * 2003-06-18 2004-12-23 Microsoft Corporation State based configuration failure detection using checkpoint comparison
GB0623916D0 (en) * 2006-11-30 2007-01-10 Ibm Methods, apparatus and computer programs for change management in a data processing environment
US8381192B1 (en) * 2007-08-03 2013-02-19 Google Inc. Software testing using taint analysis and execution path alteration
CN102880522B (zh) * 2012-09-21 2014-12-31 中国人民解放军国防科学技术大学 面向硬件故障的***关键文件故障纠正方法及装置
US8966636B2 (en) * 2012-10-16 2015-02-24 International Business Machines Corporation Transforming unit tests for security testing
CN103559299B (zh) * 2013-11-14 2017-02-15 贝壳网际(北京)安全技术有限公司 清理文件的方法、装置及移动终端

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571821A (zh) * 2009-06-08 2009-11-04 广州番禺巨大汽车音响设备有限公司 一种可恢复被删除的网络硬盘重要文件的***
CN102355515A (zh) * 2011-10-13 2012-02-15 广东欧珀移动通信有限公司 一种手机文件操作的自动化测试方法

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10319408B2 (en) 2015-03-30 2019-06-11 Manufacturing Resources International, Inc. Monolithic display with separately controllable sections
US10922736B2 (en) 2015-05-15 2021-02-16 Manufacturing Resources International, Inc. Smart electronic display for restaurants
US10269156B2 (en) 2015-06-05 2019-04-23 Manufacturing Resources International, Inc. System and method for blending order confirmation over menu board background
US10467610B2 (en) 2015-06-05 2019-11-05 Manufacturing Resources International, Inc. System and method for a redundant multi-panel electronic display
US10319271B2 (en) 2016-03-22 2019-06-11 Manufacturing Resources International, Inc. Cyclic redundancy check for electronic displays
WO2017210317A1 (en) * 2016-05-31 2017-12-07 Manufacturing Resources International, Inc. Electronic display remote image verification system and method
US10313037B2 (en) 2016-05-31 2019-06-04 Manufacturing Resources International, Inc. Electronic display remote image verification system and method
US10756836B2 (en) 2016-05-31 2020-08-25 Manufacturing Resources International, Inc. Electronic display remote image verification system and method
US10510304B2 (en) 2016-08-10 2019-12-17 Manufacturing Resources International, Inc. Dynamic dimming LED backlight for LCD array
US11895362B2 (en) 2021-10-29 2024-02-06 Manufacturing Resources International, Inc. Proof of play for images displayed at electronic displays

Also Published As

Publication number Publication date
CN105446864B (zh) 2018-03-30
US10191838B2 (en) 2019-01-29
CN105446864A (zh) 2016-03-30
US20170139813A1 (en) 2017-05-18

Similar Documents

Publication Publication Date Title
WO2016000546A1 (zh) 缓存文件删除影响的校验方法、装置及移动终端
US20210073174A1 (en) Automated Archiving Of User Generated Media Files
WO2016000541A1 (zh) 垃圾文件自动识别的方法和装置
WO2018120720A1 (zh) 客户端程序的测试错误定位方法、电子装置及存储介质
US20210311927A1 (en) Systems and methods for locating application specific data
US11005877B2 (en) Persistent cross-site scripting vulnerability detection
US20120260130A1 (en) Non-volatile random access memory test system and method
US20140101106A1 (en) Log server and log file storage method
WO2017032265A1 (zh) 一种应用推送方法、装置及服务设备
CN110909229A (zh) 一种基于模拟浏览器访问的网页数据获取和存储的***
US11275835B2 (en) Method of speeding up a full antivirus scan of files on a mobile device
CN105512276B (zh) 一种构建垃圾文件的方法、装置及电子设备
US10585618B2 (en) Providing access to virtual sequential access volume
CN108196975B (zh) 基于多校验和的数据验证方法、装置及存储介质
US20190213109A1 (en) Filter trace based on function level
US20210342510A1 (en) Simulating operation of an electronic device tracing using port mirroring
US9569453B1 (en) Systems and methods for simulating file system instances
CN111013156B (zh) 基于机器人的场景检测方法、装置、终端及介质
WO2021052220A1 (zh) 一种测试云存储接口的方法和装置
US20170154096A1 (en) Data service system and electronic apparatus
US20220237339A1 (en) Workload generator and simulator for storage caching systems
CN107704355A (zh) 一种在Solaris11***下进行reboot测试的方法
CN117909233A (zh) 用例执行方法、装置、计算机设备及存储介质
CN116955134A (zh) 页面测试方法及相关设备
CN117194343A (zh) 一种Zip文件的修改方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15814167

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15322968

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/05/17)

122 Ep: pct application non-entry in european phase

Ref document number: 15814167

Country of ref document: EP

Kind code of ref document: A1