CN107861858A - File test method and device, storage medium and processor - Google Patents
File test method and device, storage medium and processor Download PDFInfo
- Publication number
- CN107861858A CN107861858A CN201711260173.7A CN201711260173A CN107861858A CN 107861858 A CN107861858 A CN 107861858A CN 201711260173 A CN201711260173 A CN 201711260173A CN 107861858 A CN107861858 A CN 107861858A
- Authority
- CN
- China
- Prior art keywords
- file
- fine arts
- resource
- measured
- warehouse
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3093—Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/80—Database-specific techniques
Abstract
The invention discloses a kind of file test method and device, storage medium and processor.This method includes:Determine the warehouse file of fine arts resource to be measured;Obtain description file corresponding to the warehouse file of fine arts resource to be measured;Description file is detected, obtains testing result;Determine whether the warehouse file of fine arts resource to be measured is qualified according to testing result.By the present invention, the effect for the detection efficiency for improving fine arts resource file is reached.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of file test method and device, storage medium and place
Manage device.
Background technology
In 3D developments of games, the quality of fine arts resource directly affects the quality of game products.The height of fine arts resource quality
The importance of efficiency management and control also improves therewith.If art designer is introduced directly into underproof fine arts resource, will cause to swim
Play can not open, dodge the serious problems such as move back on a large scale.
Inventor has found that more early to pinpoint the problems in manufacturing process, rehabilitation cost is lower.Fine arts resource is imported and swum
It is to compare work rearward in Making programme in play, if finding problematic, section solution at the beginning of tracing back to flow after importing game
Certainly modified after problem by flow.If tested oneself after the completion of fine arts resources making by fine arts producer to send out at once
Existing problem, then can the section at the beginning of flow just solve problem, reduce many unnecessary workloads.
In the concrete application of part, the fine arts resource that existing instrument directly can not make to game engine is monitored.Such as
It is monitored without instrument, then monitoring method is manual monitoring.Whether each file of manual monitoring meets making standard, and is leading
Normal operation is checked whether after entering game.Human cost and time cost needed for this mode is very high, and precision is also very low.By
Then fine arts resource is packaged using the pattern in warehouse, thus encounters the demands on examination to armory.Such one
Come, check that efficiency is very low.And can only import play after view result, pinpoint the problems later, rehabilitation cost is also higher.
For the problem of efficiency caused by detection fine arts resource file is low manually in correlation technique, not yet propose at present effective
Solution.
The content of the invention
It is a primary object of the present invention to provide a kind of file test method and device, storage medium and processor, with solution
The problem of certainly efficiency caused by detection fine arts resource file is low manually.
To achieve these goals, according to an aspect of the invention, there is provided a kind of file test method, this method bag
Include:Determine the warehouse file of fine arts resource to be measured;Obtain description text corresponding to the warehouse file of the fine arts resource to be measured
Part;The description file is detected, obtains testing result;The fine arts resource to be measured is determined according to the testing result
Warehouse file it is whether qualified.
Further, the warehouse file that the fine arts resource to be measured is determined according to the testing result it is whether qualified it
Afterwards, methods described also includes:In the case where the warehouse file of the fine arts resource to be measured is qualified, the prompting letter of output first
Breath, wherein, first prompt message is used to prompt the warehouse file of the fine arts resource to be measured qualified, will be described to be measured
The warehouse file of fine arts resource imports game;In the case of the warehouse file of the fine arts resource to be measured is underproof, output
Second prompt message, wherein, second prompt message is used to prompt the warehouse file of the fine arts resource to be measured unqualified
And unqualified reason.
Further, the description file is detected, obtaining testing result includes:Parse the description file;Root
According to the resolution file scanning directory structure;Whether original document corresponding to describing file according to the description file checking
Damage, obtains the first result;Whether the parameter of fine arts resource accords with corresponding to describing file according to the description file checking
Preparatory condition is closed, obtains the second result;Using first result and second result as the testing result.
Further, the description file is detected, obtaining testing result includes:According to the description file of root
Scan the description file of subdirectory;Whether closed according to the resource parameters of subdirectory described in the description file checking of the subdirectory
Lattice.
Further, the description file is detected, obtaining testing result includes:Allocation list is traveled through, obtains the fine arts
Resource uses parameter;Judge that the fine arts resource is with the resource in the description file using parameter according to the fine arts resource
It is no consistent;If the fine arts resource uses in the allocation list, but is not present in describing in file, then the 3rd prompting is exported
Information, wherein, the 3rd prompt message is used to prompt resource to lack;If the fine arts resource exists in file is described,
But do not used in allocation list, then export the 4th prompt message, wherein, the 4th prompt message be used for prompt resource not by
Use.
Further, after the 3rd prompt message is exported, methods described also includes:Deletion makes in allocation list
With, but be not present in describing fine arts resource in file, after the 4th prompt message is exported, methods described also includes:Delete
Except existing in file is described, but the description file for the fine arts resource not used in allocation list.
To achieve these goals, according to another aspect of the present invention, a kind of file detection means, the device are additionally provided
Including:First determining unit, for determining the warehouse file of fine arts resource to be measured;Acquiring unit, it is described to be measured for obtaining
Fine arts resource warehouse file corresponding to description file;Detection unit, for being detected to the description file, examined
Survey result;Second determining unit, for determined according to the testing result fine arts resource to be measured warehouse file whether
It is qualified.
Further, described device also includes:First output unit, for being treated according to testing result determination
After whether the warehouse file of the fine arts resource of survey is qualified, in the qualified situation of the warehouse file of the fine arts resource to be measured
Under, the first prompt message is exported, wherein, first prompt message is used for the warehouse file for prompting the fine arts resource to be measured
It is qualified, the warehouse file of the fine arts resource to be measured is imported into game;Second output unit, in the fine arts to be measured
In the case of the warehouse file of resource is underproof, the second prompt message is exported, wherein, second prompt message is used to prompt institute
State fine arts resource to be measured warehouse file is unqualified and unqualified reason.
To achieve these goals, according to another aspect of the present invention, a kind of storage medium is additionally provided, including storage
Program, wherein, equipment where the storage medium is controlled when described program is run performs file detection side of the present invention
Method.
To achieve these goals, according to another aspect of the present invention, a kind of processor is additionally provided, for running
Program, wherein, described program performs file test method of the present invention when running.
Warehouse file of the invention by determining fine arts resource to be measured;Obtain the warehouse file pair of fine arts resource to be measured
The description file answered;Description file is detected, obtains testing result;Fine arts resource to be measured is determined according to testing result
Whether warehouse file is qualified, solve the problems, such as that efficiency caused by detecting fine arts resource file manually is low, and then improves
The effect of the detection efficiency of fine arts resource file.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of file test method according to embodiments of the present invention;
Fig. 2 is a kind of schematic diagram of system according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram of warehouse structure according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of the fine arts resource structures of game engine according to embodiments of the present invention;
Fig. 5 is the schematic diagram of description file according to embodiments of the present invention;
Fig. 6 is the schematic diagram using step of instrument according to embodiments of the present invention;And
Fig. 7 is the schematic diagram of file detection means according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiments of the invention provide a kind of file test method.
Fig. 1 is the flow chart of file test method according to embodiments of the present invention, as shown in figure 1, this method is including following
Step:
Step S102:Determine the warehouse file of fine arts resource to be measured;
Step S104:Obtain description file corresponding to the warehouse file of fine arts resource to be measured;
Step S106:Description file is detected, obtains testing result;
Step S108:Determine whether the warehouse file of fine arts resource to be measured is qualified according to testing result.
The embodiment is using the warehouse file for determining fine arts resource to be measured;Obtain the warehouse file of fine arts resource to be measured
Corresponding description file;Description file is detected, obtains testing result;Fine arts resource to be measured is determined according to testing result
Warehouse file it is whether qualified, solve the problems, such as that efficiency caused by detecting fine arts resource file manually is low, and then carry
The effect of the detection efficiency of high fine arts resource file.
In embodiments of the present invention, fine arts resource to be measured can be the fine arts resource that game engine makes, and the fine arts provide
Source can be used in 3D developments of games, import fine arts resource before game engine, it is necessary to fine arts resource in Making programme
It is monitored, it is first determined the warehouse file of fine arts resource to be measured, the warehouse file of fine arts resource to be measured can be user
Input, or user has corresponding description file by clicking on selection, the warehouse file of each fine arts resource, due to
This, which describes record in file, much information, therefore can be determined by the testing result for being detected to obtain to description file
Whether the warehouse file of corresponding fine arts resource is qualified.
Alternatively, after whether the warehouse file that fine arts resource to be measured is determined according to testing result is qualified, to be measured
Fine arts resource warehouse file it is qualified in the case of, export the first prompt message, wherein, the first prompt message is treated for prompting
The warehouse file of the fine arts resource of survey is qualified, and the warehouse file of fine arts resource to be measured is imported into game;Provided in the fine arts to be measured
In the case of the warehouse file in source is underproof, the second prompt message is exported, wherein, the second prompt message is used to prompt U.S. to be measured
The warehouse file of art resource is unqualified and unqualified reason.
After it is determined that whether the warehouse file of fine arts resource to be measured is qualified, prompt message corresponding to output is to prompt to treat
Whether the fine arts resource of survey qualified, if qualified, export the first prompt message prompting it is qualified, then can import game, such as
Fruit is unqualified, then prompts unqualified, and unqualified reason is prompted, to facilitate user to know reason and timely processing in time.The
One prompt message and the second prompt message can be text information or other kinds of prompt message.
Alternatively, description file is detected, obtaining testing result includes:Parsing description file;According to resolution file
Scanning directory structure;Whether the original document according to corresponding to description file checking describes file damages, and obtains the first result;According to
Whether the parameter that description file checking describes fine arts resource corresponding to file meets preparatory condition, obtains the second result;By first
As a result with the second result as testing result.
It can be first parsing description file that detection is carried out to description file, and description file can be that warehouse describes file, field
Scene description file, bone describe file and figure description file, according to description file scan bibliographic structure, enter one according to description file
Whether original document corresponding to step inspection has damage, obtains characterizing the first result whether original document damages, according to description text
Whether the parameter that part inspection describes fine arts resource corresponding to file meets preparatory condition, is to obtain characterizing the parameter of fine arts resource
No the second result for meeting preparatory condition, preparatory condition can be polytype condition, such as preset qualified U.S.
The parameter area of art resource, it can be defined as meeting preparatory condition if parameter meets this scope, if parameter is not at this
Individual scope can then be defined as not meeting preparatory condition.
Alternatively, description file is detected, obtaining testing result can be:According to the description file scan of root
The description file of subdirectory;It is whether qualified according to the resource parameters of the description file checking subdirectory of subdirectory.
Each root has description file, also has corresponding description file, therefore, root for the subdirectory of root
The description file of subdirectory can be found according to the description file of root, to scan the description file of subdirectory, son can be checked
Whether the resource parameters of catalogue are qualified, and whether the resource parameters that can obtain all subdirectories under root by that analogy close
Lattice.
Alternatively, description file is detected, obtaining testing result includes:Allocation list is traveled through, obtaining fine arts resource makes
Use parameter;Judge whether fine arts resource is consistent with describing the resource in file using parameter according to fine arts resource;If the fine arts provide
Source uses in allocation list, but is not present in describing in file, then exports the 3rd prompt message, wherein, the 3rd prompt message is used
In prompting resource missing;If fine arts resource exists in file is described, but is not used in allocation list, then export the 4th and carry
Show information, wherein, the 4th prompt message is used to prompt resource to be not used by.
Alternatively, after the 3rd prompt message is exported, delete and used in allocation list, but be not present in describing in file
Fine arts resource, after the 4th prompt message is exported, delete and exist in file is described, but the U.S. not used in allocation list
The description file of art resource.
Dependence to resource and adduction relationship that can also be side by side check, can be obtained by way of traveling through allocation list
To the use parameter of fine arts resource, then judge whether the fine arts resource in allocation list and the resource in description file are consistent, such as
Fruit is consistent, then it represents that and service condition is normal, if inconsistent, is divided into two kinds of situations, if fine arts resource uses in allocation list,
But it is not present in describing in file, then illustrates that resource lacks;If fine arts resource exists in file is described, but is not configuring
Used in table, then illustrate that resource is not used by, situation about being not used by respectively to resource missing and resource is prompted, further
Ground, in the case where resource lacks, the fine arts resource in allocation list is deleted, to prevent from quoting journey caused by the resource being not present
Sequence dodges the problem of moving back;In the case where resource is not used by, description file is deleted, effectively to control resource repetition or unnecessary feelings
Condition, inclusion size can also be reduced.
The embodiment of the present invention additionally provides a kind of embodiment.
For the demand in development of games, it is necessary to fast and effectively method inspection, positioning, solve fine arts resource problem, need
Special fine arts resource checking tool is wanted to check the fine arts resource of the game made by game engine.
The embodiment of the present invention provides effective resource to game engine and checks scheme, can quickly method inspection, calmly
Position, solves fine arts resource problem.
The technical scheme of the embodiment of the present invention is characterised by, directly description file is analyzed, than only checking resource
Speed itself is fast, checks that orientation problem is accurate, and inspection can also be rapidly completed to large complicated warehouse class resource entirely.In addition, can
To carry out secondary development, a variety of iterators are developed.
Fig. 2 is a kind of schematic diagram of system according to embodiments of the present invention, as shown in Fig. 2 can be after system is entered
Warehouse file is selected in system, specific inspection project can be selected and then clicked on to start to check, system enters automatic detection.
The file test method of the embodiment of the present invention can be performed by checking tool, and checking tool can be one slotting
Part, attempt as shown in Fig. 2 checking tool disclosed in the embodiment of the present invention provides a kind of visualization, to engine structure and game
The unfamiliar fine arts producer of code structure can also be tested oneself.Meanwhile tester can select detection project, effectively
Various resources are checked for ground;And section at the beginning of resource inspection is placed on into flow just solves the problems, such as, many unnecessary workloads are reduced;
The resource for repeating or not using can also be deleted by repeating resource inspection, effectively control inclusion size.
In a kind of embodiment of the present invention, the scope of examination includes but is not limited to following:
1. resource structures problem, include but is not limited to:
A) damage of warehouse, document scene;
B) GUID (Globally Unique Identifier, globally unique identifier), the use of virtual route are repeated;
C) resource lacks;
D) missing is relied on;
E) scene relies on resource missing.
2. resources making problem, include but is not limited to:
A) the model number of plies is inconsistent;
B) special efficacy grid fixed point format mistake;
C) model face number is against regulation;
D) the particle number of plies is against regulation;
E) textures size is against regulation.
3. resource operation, management, include but is not limited to:
A) delete and repeat textures;
B) textures not being cited are deleted;
C) resource not in warehouse is deleted;
D) no used resource is deleted.
Specifically, the fine arts resource structures of game engine, include but is not limited to:Animation, collision body, material, grid, mould
Type, pathfinding map, particIe system, point cloud, covering, landform, lines, sound, scene, bone, animation, figure.
Wherein, animation, collision body, material, grid, model, pathfinding map, particIe system, point cloud, covering, landform, lines
It can be deposited etc. resource in the form of warehouse.
Fig. 3 is a kind of schematic diagram of warehouse structure according to embodiments of the present invention, as shown in figure 3, its warehouse is characterized as:
Each warehouse is named with xxxx.local, similar to a file.Fig. 4 is one kind according to embodiments of the present invention
The schematic diagram of the fine arts resource structures of game engine.The xxxx.local can include animation, collision body, material, grid, mould
One or more in type, pathfinding map, particIe system, point cloud, covering, landform, lines file etc..
Wherein, the animation, collision body, material, grid, model, pathfinding map, particIe system, point cloud, covering, landform,
Even the empty files such as lines file also have path presence.
The xxxx.local includes the description file of an xml form.Fig. 5 is description text according to embodiments of the present invention
The schematic diagram of part.
The description file includes all animations, collision body, material, grid, model, pathfinding map, particle in the warehouse
System, point cloud, covering, landform, the information of lines file.
The animation, collision body, material, grid, model, pathfinding map, particIe system, point cloud, covering, landform, lines
In file, non-null folder all includes the description file of an xml form.The description file can include the animation, collision
The information of All Files in body, material, grid, model, pathfinding map, particIe system, point cloud, covering, landform, lines file.
Include but is not limited to following information in the description file:The GUID of source material;Package&Name (virtual roads
Footpath:Package/Name);Type (type);Class (grade);Flags (is opened, is separately deposited attribute);Annotation (notes
Release).
In embodiments of the present invention, the workflow detected to description file is as follows:
1. parsing description file (including for example:Warehouse describes file, scene description document, and bone describes file, figure description
File etc.), obtain analysis result.
2. according to the analysis result scanning directory structure of the description file, for example, bibliographic structure has relationship between superior and subordinate,
Obtain the relationship between superior and subordinate of all bibliographic structures.
3. whether the original document according to corresponding to the analysis result inspection of the description file describes file has damage.
4. according to it is described description file analysis result check resource parameter it is whether qualified, such as resource parameters have it is default
Scope, it is qualified if within the scope of, be the unqualified (order of above-mentioned steps if not within the scope of default
It can change).
5. according to the description file of the description file scan subdirectory of root, can remember in the description file of root
Record has storage situation of description file of subdirectory etc., and the description text of subdirectory can be determined according to the description file of root
The position of part or quantity etc..
6. according to the description file of subdirectory, check whether the resource parameters of subdirectory are qualified, each subdirectory is retouched
State file to be scanned, can check whether the resource parameters of subdirectory are qualified.
The technical scheme of the embodiment of the present invention can also check to its Resource Dependence, reference side by side, and step is as follows:
All allocation lists are traveled through, check resource service condition.
Whether resource service condition and the resource in description file are consistent in comparative arrangement table.If resource is in allocation list
Middle use, but be not present in describing file, then report an error:Resource lacks.It so can effectively prevent from quoting the resource being not present
Caused by program dodge the problem of moving back etc.If resource exists in file is described, but do not used in allocation list,
Then report an error:Resource is not used by.Resource repetition or odd case so can be effectively controlled, inclusion size can be reduced.
The checking tool that the embodiment of the present invention is provided can be analyzed directly description file.Than only checking resource sheet
Body speed is fast, checks that orientation problem is accurate entirely.Inspection can also be rapidly completed to large complicated warehouse class resource.In addition, may be used also
To provide efficient resource inspection for novel game engine, solves the problems, such as monitoring resource.
The embodiment of the present invention proposes a kind of armory checking tool, and armory is checked by simple operations can
And it includes whether resource meets game engine requirement.Fine arts producer can first be tested oneself using the stage property, from
Survey imports game again after passing through, reduce armory and it includes resource unqualified cause and caused unnecessary work
Amount, improve the management and control of quality of play.
Fig. 6 is the schematic diagram using step of checking tool according to embodiments of the present invention, as shown in fig. 6, including as follows
Step:
1. enter system.
2. select warehouse file.
3. choose inspection project.
4. start to check.
5. passed examination:Return to successful result.
6. check failure:Show failure cause.
The technical scheme of the embodiment of the present invention can solve following technical problem:
All fine arts resources, and precise positioning problem can be checked automatically before game is imported, and can also provide can
Depending on changing interface, operation is easy, is available for testing oneself to the unfamiliar fine arts producer of program code.The content mainly tested
Including:The integrality of each resource is checked, checks whether each resource meets standard, checks the dependence between resource, inspection
The situation that resource is quoted in game is looked into, to judge to repeat resource and useless resource.Further, also can carry out secondary development, with reference to
Other instruments solve the problems, such as more complicated.
Instrument in the technical scheme of the embodiment of the present invention can effectively solve above-mentioned all problems, greatly reduce fine arts money
Time and human cost required for the monitoring of source.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiments of the invention provide a kind of file detection means, the device can be used for the text for performing the embodiment of the present invention
Part detection method.
Fig. 7 is the schematic diagram of file detection means according to embodiments of the present invention, as shown in fig. 7, the device includes:
First determining unit 10, for determining the warehouse file of fine arts resource to be measured;
Acquiring unit 20, file is described corresponding to the warehouse file of fine arts resource to be measured for obtaining;
Detection unit 30, for being detected to description file, obtain testing result;
Second determining unit 40, for determining whether the warehouse file of fine arts resource to be measured is qualified according to testing result.
The embodiment uses the first determining unit 10, for determining the warehouse file of fine arts resource to be measured;Acquiring unit
20, file is described corresponding to the warehouse file of fine arts resource to be measured for obtaining;Detection unit 30, for entering to description file
Row detection, obtains testing result;Second determining unit 40, for determining the warehouse text of fine arts resource to be measured according to testing result
Whether part is qualified, solve the problems, such as that efficiency caused by detecting fine arts resource file manually is low, and then raising fine arts money
The effect of the detection efficiency of source file.
The file detection means includes processor and memory, and above-mentioned first determining unit, detection unit, second determine
Unit etc. as program unit storage in memory, by computing device storage said procedure unit in memory Lai
Realize corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, improve the detection efficiency of fine arts resource file by adjusting kernel parameter.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM), memory includes at least one deposit
Store up chip.
The embodiments of the invention provide a kind of storage medium, program is stored thereon with, it is real when the program is executed by processor
The existing file test method.
The embodiments of the invention provide a kind of processor, the processor is used for operation program, wherein, described program operation
File test method described in Shi Zhihang.
The embodiments of the invention provide a kind of equipment, equipment includes processor, memory and storage on a memory and can
The program run on a processor, following steps are realized during computing device program:Determine the warehouse text of fine arts resource to be measured
Part;Obtain description file corresponding to the warehouse file of fine arts resource to be measured;Description file is detected, obtains detection knot
Fruit;Determine whether the warehouse file of fine arts resource to be measured is qualified according to testing result.Equipment herein can be server,
PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program product, when being performed on data processing equipment, is adapted for carrying out just
The program of beginningization there are as below methods step:Determine the warehouse file of fine arts resource to be measured;Obtain the storehouse of fine arts resource to be measured
Description file corresponding to library file;Description file is detected, obtains testing result;U.S. to be measured is determined according to testing result
Whether the warehouse file of art resource is qualified.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including key element
Other identical element in process, method, commodity or equipment also be present.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is these are only, is not limited to the application.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent substitution,
Improve etc., it should be included within the scope of claims hereof.
Claims (10)
- A kind of 1. file test method, it is characterised in that including:Determine the warehouse file of fine arts resource to be measured;Obtain description file corresponding to the warehouse file of the fine arts resource to be measured;The description file is detected, obtains testing result;Determine whether the warehouse file of the fine arts resource to be measured is qualified according to the testing result.
- 2. according to the method for claim 1, it is characterised in that the fine arts to be measured are being determined according to the testing result After whether the warehouse file of resource is qualified, methods described also includes:In the case where the warehouse file of the fine arts resource to be measured is qualified, the first prompt message is exported, wherein, described first Prompt message is used to prompt the warehouse file of the fine arts resource to be measured qualified, by the warehouse text of the fine arts resource to be measured Part imports game;In the case of the warehouse file of the fine arts resource to be measured is underproof, the second prompt message is exported, wherein, described the Two prompt messages are used to prompt the warehouse file of the fine arts resource to be measured unqualified and unqualified reason.
- 3. according to the method for claim 1, it is characterised in that the description file is detected, obtains testing result Including:Parse the description file;According to the resolution file scanning directory structure;Whether original document corresponding to describing file according to the description file checking damages, and obtains the first result;Whether the parameter of fine arts resource meets preparatory condition corresponding to describing file according to the description file checking, obtains Second result;Using first result and second result as the testing result.
- 4. according to the method for claim 1, it is characterised in that the description file is detected, detectedAs a result include:According to the description file of the description file scan subdirectory of root;It is whether qualified according to the resource parameters of subdirectory described in the description file checking of the subdirectory.
- 5. according to the method for claim 1, it is characterised in that the description file is detected, obtains testing result Including:Allocation list is traveled through, fine arts resource is obtained and uses parameter;Judge whether the fine arts resource and the resource in the description file are consistent using parameter according to the fine arts resource;If the fine arts resource uses in the allocation list, but is not present in describing in file, then the 3rd prompting letter is exported Breath, wherein, the 3rd prompt message is used to prompt resource to lack;If the fine arts resource exists in file is described, but is not used in allocation list, then the 4th prompt message is exported, Wherein, the 4th prompt message is used to prompt resource to be not used by.
- 6. according to the method for claim 5, it is characterised in thatAfter the 3rd prompt message is exported, methods described also includes:Deletion uses in allocation list, but is not present in retouching Fine arts resource in file is stated,After the 4th prompt message is exported, methods described also includes:Deletion exist in file is described, but not with Put the description file of the fine arts resource used in table.
- A kind of 7. file detection means, it is characterised in that including:First determining unit, for determining the warehouse file of fine arts resource to be measured;Acquiring unit, file is described corresponding to the warehouse file of the fine arts resource to be measured for obtaining;Detection unit, for being detected to the description file, obtain testing result;Second determining unit, for determining whether the warehouse file of the fine arts resource to be measured closes according to the testing result Lattice.
- 8. device according to claim 7, it is characterised in that described device also includes:First output unit, for determining whether the warehouse file of the fine arts resource to be measured closes according to the testing result After lattice, in the case where the warehouse file of the fine arts resource to be measured is qualified, the first prompt message is exported, wherein, it is described First prompt message is used to prompt the warehouse file of the fine arts resource to be measured qualified, by the storehouse of the fine arts resource to be measured Library file imports game;Second output unit, for the warehouse file in the fine arts resource to be measured it is underproof in the case of, output second carries Show information, wherein, second prompt message is for prompting the warehouse file of the fine arts resource to be measured unqualified and not Qualified reason.
- A kind of 9. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where file test method in equipment perform claim requirement 1 to 6 described in any one.
- A kind of 10. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run Profit requires the file test method described in any one in 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711260173.7A CN107861858B (en) | 2017-12-04 | 2017-12-04 | File detection method and device, storage medium and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711260173.7A CN107861858B (en) | 2017-12-04 | 2017-12-04 | File detection method and device, storage medium and processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107861858A true CN107861858A (en) | 2018-03-30 |
CN107861858B CN107861858B (en) | 2021-02-19 |
Family
ID=61704991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711260173.7A Active CN107861858B (en) | 2017-12-04 | 2017-12-04 | File detection method and device, storage medium and processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107861858B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634595A (en) * | 2018-11-15 | 2019-04-16 | 广东趣炫网络股份有限公司 | A kind of precast body development approach, device, equipment and medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060282480A1 (en) * | 2005-06-08 | 2006-12-14 | Johnson Michael K | Methods, systems, and computer program products for provisioning software using dynamic tags to identify and process files |
CN101876992A (en) * | 2009-11-17 | 2010-11-03 | 中国科学院自动化研究所 | Method for managing image data warehouse |
CN102314433A (en) * | 2010-06-30 | 2012-01-11 | 上海视加信息科技有限公司 | Video control method |
CN103595707A (en) * | 2013-10-17 | 2014-02-19 | 广东电网公司茂名供电局 | Automatic file network synchronization method based on SVN |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
US9411643B2 (en) * | 2013-02-27 | 2016-08-09 | Fujitsu Technology Solutions Intellectual Property Gmbh | Method of performing tasks on a production computer system and data processing system |
CN106371849A (en) * | 2016-09-18 | 2017-02-01 | 网易(杭州)网络有限公司 | Application data processing method and device |
CN106407115A (en) * | 2016-09-20 | 2017-02-15 | 网易(杭州)网络有限公司 | An art resource file testing method and device |
CN106569895A (en) * | 2016-10-24 | 2017-04-19 | 华南理工大学 | Construction method of multi-tenant big data platform based on container |
CN106815131A (en) * | 2016-12-27 | 2017-06-09 | 珠海金山网络游戏科技有限公司 | A kind of game resource inspection method and system based on Unity engines |
-
2017
- 2017-12-04 CN CN201711260173.7A patent/CN107861858B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060282480A1 (en) * | 2005-06-08 | 2006-12-14 | Johnson Michael K | Methods, systems, and computer program products for provisioning software using dynamic tags to identify and process files |
CN101876992A (en) * | 2009-11-17 | 2010-11-03 | 中国科学院自动化研究所 | Method for managing image data warehouse |
CN102314433A (en) * | 2010-06-30 | 2012-01-11 | 上海视加信息科技有限公司 | Video control method |
US9411643B2 (en) * | 2013-02-27 | 2016-08-09 | Fujitsu Technology Solutions Intellectual Property Gmbh | Method of performing tasks on a production computer system and data processing system |
CN103595707A (en) * | 2013-10-17 | 2014-02-19 | 广东电网公司茂名供电局 | Automatic file network synchronization method based on SVN |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
CN106371849A (en) * | 2016-09-18 | 2017-02-01 | 网易(杭州)网络有限公司 | Application data processing method and device |
CN106407115A (en) * | 2016-09-20 | 2017-02-15 | 网易(杭州)网络有限公司 | An art resource file testing method and device |
CN106569895A (en) * | 2016-10-24 | 2017-04-19 | 华南理工大学 | Construction method of multi-tenant big data platform based on container |
CN106815131A (en) * | 2016-12-27 | 2017-06-09 | 珠海金山网络游戏科技有限公司 | A kind of game resource inspection method and system based on Unity engines |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634595A (en) * | 2018-11-15 | 2019-04-16 | 广东趣炫网络股份有限公司 | A kind of precast body development approach, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107861858B (en) | 2021-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107957957A (en) | The acquisition methods and device of test case | |
CN104298588B (en) | The implementation method and device of a kind of continuous integrating | |
CN103761189B (en) | Test case management method and system | |
CN107608874A (en) | Method of testing and device | |
CN106201886B (en) | A kind of Proxy Method and device of the verifying of real time data task | |
CN104112284B (en) | The similarity detection method and equipment of a kind of picture | |
CN106484610A (en) | A kind of Beta method and apparatus | |
CN108345485A (en) | identification method and device for interface view | |
CN109871316A (en) | A kind of control recognition methods and device | |
CN109936582A (en) | Construct the method and device based on the PU malicious traffic stream detection model learnt | |
CN109783601A (en) | Computer intelligence group volume method and its system based on knowledge on testing point | |
CN109271368A (en) | A kind of Database Systems and maintaining method of fire Safety Assessment system | |
US10771994B2 (en) | Method and test system for mobile network testing as well as a network testing system | |
CN109739762A (en) | A kind of performance test methods and device of application program | |
CN107168879A (en) | The generation method and device of centralized configuration management System Test Report | |
CN108959065A (en) | The verification method and system of software interface test parameter | |
CN106933887A (en) | A kind of data visualization method and device | |
CN110209561A (en) | Evaluating method and evaluating apparatus for dialogue platform | |
CN108897686A (en) | It is complete to record separately automated testing method and device | |
CN107885628A (en) | A kind of method of testing, device and the equipment of magnetic disc i/o performance | |
CN109582548A (en) | A kind of page elements circle choosing method and device buried a little based on nothing | |
CN106802797A (en) | The generation method and device of a kind of application programming interface | |
CN107861858A (en) | File test method and device, storage medium and processor | |
CN104239212B (en) | Query method and device of test case and establishment method and device of test case | |
CN106294700A (en) | The storage of a kind of daily record and read method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |