WO2016000546A1 - 缓存文件删除影响的校验方法、装置及移动终端 - Google Patents
缓存文件删除影响的校验方法、装置及移动终端 Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0706—Error 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/073—Error 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0891—Addressing 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/60—Details 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
Description
Claims (18)
- 一种缓存文件删除影响的校验方法,其特征在于,包括以下步骤:获取待校验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;获取所述缓存路径集合中的一个待校验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响。
- 如权利要求1所述的缓存文件删除影响的校验方法,其特征在于,根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:检测所述待校验程序是否崩溃;以及如果检测所述待校验程序崩溃,则判断删除所述待校验缓存文件之后会导致所述待校验程序崩溃。
- 如权利要求1所述的缓存文件删除影响的校验方法,其特征在于,根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:检测所述待校验缓存文件是否被重新下载;如果检测所述待校验缓存文件被重新下载,则判断删除所述待校验缓存文件之后无影响。
- 如权利要求3所述的缓存文件删除影响的校验方法,其特征在于,在检测所述待校验缓存文件被重新下载之后,还包括:对所述待校验缓存文件的时效性进行检测;如果所述待校验缓存文件具有时效性,则判断所述待校验缓存文件为缓存文件;以及如果所述待校验缓存文件不具有时效性,则判断删除所述待校验缓存文件为慎重删除文件。
- 如权利要求4所述的缓存文件删除影响的校验方法,其特征在于,所述对所述待校验缓存文件的时效性进行检测具体包括:检测在预设时间内所述待校验缓存文件是否被调用;如果在预设时间内所述待校验缓存文件被调用,则判断所述待校验缓存文件不具有时效性;以及如果在预设时间内所述待校验缓存文件未被调用,则判断所述待校验缓存文件具有时 效性。
- 如权利要求1-5中任一项所述的缓存文件删除影响的校验方法,其特征在于,还包括:获取所述待校验程序对应的界面信息集合,所述界面信息集合包括多个界面信息,每个所述界面信息与一个所述点击路径对应。
- 如权利要求6所述的缓存文件删除影响的校验方法,其特征在于,所述界面信息包括界面截图,其中,所述根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:检测所述待校验缓存路径中的资源是否再次生成;如果所述待校验缓存路径中的资源再次生成,则判断删除所述待校验缓存文件之后无影响;如果所述待校验缓存路径中的资源不会再次生成,且所述待校验缓存路径的目录文件类型为图片,则将所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图进行比对;如果所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图不一致,则判断删除所述待校验缓存文件之后有影响。
- 如权利要求6所述的缓存文件删除影响的校验方法,其特征在于,所述界面信息包括界面变化序列,其中,所述根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响具体包括:获取所述待校验程序生成的新界面变化序列;将所述新界面变化序列与所述待校验缓存路径对应的界面变化序列进行比对;如果所述新界面变化序列与所述待校验缓存路径对应的界面变化序列不一致,则判断删除所述待校验缓存文件之后有影响。
- 一种缓存文件删除影响的校验装置,其特征在于,包括:第一获取模块,用于获取待检验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;删除模块,用于获取所述缓存路径集合中的一个待检验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;模拟点击模块,用于根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及第二获取模块,用于根据所述待校验程序的运行结果获取所述待校验缓存文件的删除 影响。
- 如权利要求9所述的缓存文件删除影响的校验装置,其特征在于,所述第二获取模块包括:第一检测单元,用于检测所述待校验程序是否崩溃;以及第一判断单元,用于在所述第一检测单元检测所述待校验程序崩溃时,判断删除所述待校验缓存文件之后会导致所述待校验程序崩溃。
- 如权利要求9所述的缓存文件删除影响的校验装置,其特征在于,所述第二获取模块包括:第二检测单元,用于检测所述待校验缓存文件是否被重新下载;第二判断单元,用于在所述第二检测单元检测所述待校验缓存文件被重新下载时,判断删除所述待校验缓存文件之后无影响。
- 如权利要求11所述的缓存文件删除影响的校验装置,其特征在于,所述第二获取模块还包括:第三检测单元,用于在所述第二检测单元检测所述待校验缓存文件被重新下载之后,对所述待校验缓存文件的时效性进行检测;第三判断单元,用于在所述第三检测单元检测所述待校验缓存文件具有时效性时,判断所述待校验缓存文件为缓存文件;以及所述第三判断单元还用于在所述第三检测单元检测所述待校验缓存文件不具有时效性时,判断删除所述待校验缓存文件为慎重删除文件。
- 如权利要求12所述的缓存文件删除影响的校验装置,其特征在于,所述第三检测单元具体用于:检测在预设时间内所述待校验缓存文件是否被调用;如果在预设时间内所述待校验缓存文件被调用,则判断所述待校验缓存文件不具有时效性;以及如果在预设时间内所述待校验缓存文件未被调用,则判断所述待校验缓存文件具有时效性。
- 如权利要求9-13中任一项所述的缓存文件删除影响的校验装置,其特征在于,还包括:第三获取模块,用于获取所述待校验程序对应的界面信息集合,所述界面信息集合包括多个界面信息,每个所述界面信息与一个所述点击路径对应。
- 如权利要求11或14所述的缓存文件删除影响的校验装置,其特征在于,所述界面信息包括界面截图,其中,所述第二获取模块包括:第四检测单元,用于检测所述待校验缓存路径中的资源是否再次生成;如果所述待校验缓存路径中的资源再次生成,则触发所述第二判断单元;如果所述待校验缓存路径中的资源不会再次生成,则触发第一比对单元;所述第一比对单元,用于在所述第四检测单元检测所述待校验缓存路径中的资源不会再次生成,且所述待校验缓存路径的目录文件类型为图片时,将所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图进行比对;所述第二判断单元还用于在所述第一比对单元比对所述待校验程序生成的当前界面图片与所述待校验缓存路径对应的界面截图不一致时,判断删除所述待校验缓存文件之后有影响。
- 如权利要求14所述的缓存文件删除影响的校验装置,其特征在于,所述界面信息包括界面变化序列,其中,所述第二获取模块包括:获取单元,用于获取所述待校验程序生成的新界面变化序列;第二比对单元,用于将所述新界面变化序列与所述待校验缓存路径对应的界面变化序列进行比对;所述第二判断单元还用于在所述第二比对单元比对所述新界面变化序列与所述待校验缓存路径对应的界面变化序列不一致时,判断删除所述待检验缓存文件之后有影响。
- 一种移动终端,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:获取待校验程序,并获取所述待校验程序对应的点击路径集合和缓存路径集合,其中,所述点击路径集合包括多个点击路径,所述缓存路径集合包括多个缓存路径,每个点击路径集合与一个缓存路径对应;获取所述缓存路径集合中的一个待校验缓存路径,并删除所述待校验缓存路径中的待校验缓存文件;根据所述待校验缓存路径对应的点击路径对所述待校验程序进行模拟点击;以及根据所述待校验程序的运行结果获取所述待校验缓存文件的删除影响。
- 一种存储介质,其特征在于,用于存储应用程序,所述应用程序用于执行权利要求1至8中任一项所述的缓存文件删除影响的校验方法。
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)
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)
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)
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)
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 | 贝壳网际(北京)安全技术有限公司 | 清理文件的方法、装置及移动终端 |
-
2014
- 2014-06-30 CN CN201410308925.2A patent/CN105446864B/zh active Active
-
2015
- 2015-06-23 US US15/322,968 patent/US10191838B2/en active Active
- 2015-06-23 WO PCT/CN2015/082116 patent/WO2016000546A1/zh active Application Filing
Patent Citations (2)
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)
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 |