CN108704312A - The test method and device of fine arts resource - Google Patents
The test method and device of fine arts resource Download PDFInfo
- Publication number
- CN108704312A CN108704312A CN201810386232.3A CN201810386232A CN108704312A CN 108704312 A CN108704312 A CN 108704312A CN 201810386232 A CN201810386232 A CN 201810386232A CN 108704312 A CN108704312 A CN 108704312A
- Authority
- CN
- China
- Prior art keywords
- fine arts
- arts resource
- resource
- detection
- default
- 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.)
- Pending
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- 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
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/6009—Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Present disclose provides a kind of test methods and device of fine arts resource, wherein this method includes:Fine arts resource is divided according to different file types, for different types of fine arts resource, detect whether fine arts resource meets specification automatically using different default detection scripts, using above-mentioned technical proposal, the quantities for solving test fine arts resource in the related technology is big, the slow problem of test speed, it realizes and detects whether fine arts resource meets specification automatically using script, whether design requirement is met, with the presence or absence of some program editing mistakes, during significantly reducing fine arts resources measurement, the workload of tester.
Description
Technical field
This disclosure relates to computer realm, in particular to a kind of test method and device of fine arts resource.
Background technology
In the related art, fine arts resource occupys an important position in game products, and clumsy resource can influence to swim
Play vision quality, and nonstandard resource can even directly result in game sudden strain of a muscle and move back, so for the work of fine arts resource testing
The always most important thing.But current fine arts resource testing in the related technology, is substantially all and is confirmed one by one dependent on manpower.
Facing to the fine arts resource of magnanimity, either testing efficiency, or feedback cost, be all always restrict resource testing effectively into
Capable significant obstacle.
Since fine arts resource stock number itself is very big, and the measurement direction of also objective specification and subjective effect, completely
Manpower test be worthless.
Big for the quantities of test fine arts resource in the related technology, the slow problem of test speed, there is presently no effective
Solution.
Invention content
The embodiment of the present disclosure provides a kind of test method and device of fine arts resource, at least to solve to survey in the related technology
The quantities for trying fine arts resource is big, the slow problem of test speed.
According to one embodiment of the disclosure, a kind of test method of fine arts resource is provided, including:According to different files
Type division fine arts resource;According to default detection script corresponding from different file types, the fine arts after detection divides provide
Whether source meets default inspection criterion, wherein, the default detection script is write according to the default inspection criterion.
According to another embodiment of the present disclosure, a kind of test device of fine arts resource is additionally provided, including:Divide mould
Block, for dividing fine arts resource according to different file types;Detection module, for according to corresponding from different file types
Whether default detection script, the fine arts resource after detection divides meet default inspection criterion, wherein, the default detection script is
It is write according to the default inspection criterion.
According to another embodiment of the disclosure, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to another embodiment of the disclosure, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
By the disclosure, fine arts resource is divided according to different file types, for different types of fine arts resource, using not
Same default detection script detects whether fine arts resource meets specification automatically, using above-mentioned technical proposal, solves the relevant technologies
The quantities of middle test fine arts resource is big, and the slow problem of test speed realizes and whether detects fine arts resource automatically using script
Meet specification, if meet design requirement, if there are some program editing mistakes, significantly reduce fine arts resources measurement process
In, the workload of tester.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the disclosure, constitutes part of this application, this public affairs
The illustrative embodiments and their description opened do not constitute the improper restriction to the disclosure for explaining the disclosure.In the accompanying drawings:
Fig. 1 is the schematic diagram for the mode one that fine arts resource is tested according to tester in the related technology;
Fig. 2 is the schematic diagram for the mode two that fine arts resource is tested according to tester in the related technology;
Fig. 3 is the flow chart according to the test method of the fine arts resource of the embodiment of the present disclosure;
Fig. 4 is the module diagram according to the test fine arts resource of disclosure preferred embodiment;
Fig. 5 is the basic schematic diagram according to the website of the detection fine arts resource of disclosure preferred embodiment;
Fig. 6 is the schematic diagram for summarizing the page according to the website of disclosure preferred embodiment.
Specific implementation mode
The disclosure is described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that term " first " in the specification and claims of the disclosure and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.
During the technical solution of present specification can be applied to tester's detection fine arts resource, machine can be divided into
Device detects automatically and two parts of artificial detection.Specific detection scheme can be run in the terminals such as the computer of test, no
It is limited to this.
For the test problem of fine arts resource, technical solution present in the relevant technologies has:
One, testers of scheme are directly directly tested with the content seen in game, and finding is surveyed, and i.e. institute is surveyed
, Fig. 1 is the schematic diagram for the mode one that fine arts resource is tested according to tester in the related technology.
However, there are following defects for the program:Tester can not in mastery play scene whole fine arts resources feelings
Condition, depends critically upon the part that " vision " can touch, and means of testing is quite passive;And in fact there are many resources all to deposit
It is in vision dead zone, the part (for example the back side of model whether there is textures mistake) that either visual angle can not be seen,
Or (for example that textures format is portable network figure (Portable Network for the difference that naked eyes can not judge
Graphics, referred to as png) or dds formats (Direct Draw Surface, directly draw surface)), even it is eye
Under skin problem (such as model index special efficacy be lost, but tester can not judge which place this have what spy
Effect), even if causing after test, it still can subsequently find many omission problems.
The scheme two, limitation fine arts are submitted to version repository, and each resource needs just to allow to be applied in game by test;Figure
2 be the schematic diagram for the mode two that fine arts resource is tested according to tester in the related technology.
However, there are following defects for the program:Tester needs prior involvement, is comprehensively surveyed for each resource
Examination, it is desirable that promptly examine demand with all parties, reach ideal effect and just submit application;But not due to application scenarios
It is clear, cause tester to be difficult to hold emphasis, in addition the communication cost with each side is even more to take time and effort.And demand it is big,
In the case of duration anxiety, the efficiency that fine arts resource is submitted and applied but will be seriously affected, it is easy to it attends to one thing and lose sight of another, so often
It cannot execute, or even perform practically no function well;
It can be seen that common issue existing for two above scheme is as follows:
Fine arts resource is other than subjective effect, and there is also many objective logics in the level that program uses, such as
The length and width specification and bit depth of textures limit, and it is complete etc. whether the adduction relationship between each resource improves, these can not be complete
Portion all relies on " naked eyes " to be tested;
Even if the content of test can all be carried out by visual effect, but just a hand swims product, money at last
Source measures and is thousands of, up to upper G sizes easily, in the case of limited personnel and stringent requirement, tester's
Pressure can be comparable big, it is difficult to ensure that effective progress of resource testing;
If being found that whole issue to the end, fine arts personnel are fed back to one by one and are modified, are then tested again, so
It is performed repeatedly until that problem is all addressed;And with the accumulation of stock number, in addition irregular modification adjusts, link up at
This and testing cost even more ramp.
A kind of test method for the fine arts resource running on above-mentioned terminal is provided in present specification, Fig. 3 is basis
The flow chart of the test method of the fine arts resource of the embodiment of the present disclosure, as shown in figure 3, the flow includes the following steps:
Step S302 divides fine arts resource according to different file types;
Step S304, according to default detection script corresponding from different file types, the fine arts after detection divides provide
Whether source meets default inspection criterion.
You need to add is that the default detection script is write according to the default inspection criterion.
Through the above steps, fine arts resource is divided according to different file types, for different types of fine arts resource, used
Different default detection scripts detect whether fine arts resource meets specification automatically, using above-mentioned technical proposal, solve related skill
The quantities that fine arts resource is tested in art is big, and the slow problem of test speed is realized and detected fine arts resource automatically using script and be
It is no to meet specification, if to meet design requirement, if there are some program editing mistakes, significantly reduce fine arts resources measurement mistake
Cheng Zhong, the workload of tester.
You need to add is that fine arts resource can be divided into the scheme of different file types, be also written in script, i.e., by
Script will be carried out according to file type (suffix) divide fine arts resource, for files in different types format specification be equipped with it is different
Analytic method, using Python as code speech for, for example the model of xml formats, special efficacy, document scene can use element-tree
ElementTree modules parse, such as json formats (JavaScript Object Notation, JS object tag)
Cocosanimations, ExportJson etc. are just parsed using json modules, and the jpg of binary image formats, png, bmp
File etc. just uses Python Image Databases (Python Imaging Library, referred to as PIL) module, from all kinds of after parsing
The content for needing to check is extracted in file.
Optionally, the execution sequence of step S302 and step S304 can be interchanged, you can to first carry out step S304,
Then S302 is executed again.
Optionally, fine arts resource is divided according to different file types, including:After the different files of each type file
Sew, the fine arts resource is divided into fine arts resource block corresponding with each type file.
Optionally, according to default detection script corresponding from different file types, the fine arts resource after detection division
Before whether meeting default inspection criterion, the corresponding inspection criterion of each fine arts resource block is obtained respectively, wherein the detection rule
Model includes at least one following information:The performance indicator of fine arts resource block, the resource associations between fine arts resource block, fine arts money
The integrality of source block, the naming rule of fine arts resource block, the extension node of model, image length and width, bit depth in fine arts resource block;
According to the inspection criterion of each fine arts resource block, corresponding detection script is configured.
For example, above-mentioned inspection criterion can also include:The Naming conventions of forbidden character cannot be included, mounted in model
The mounting object of point whether there is, and the association textures of material whether there is, and model/textures in special efficacy/sub- special efficacy whether there is, patch
Whether the length and width of figure meet 2 n times power, the mipmaps graph image inspections of dds files etc..
Optionally, according to default detection script corresponding from different file types, the fine arts resource after detection division
Whether default inspection criterion is met, including:According to the detection script corresponding from different file types, to each fine arts
Resource block is detected respectively, judges whether the fine arts resource meets default inspection criterion, for example, the performance of fine arts resource block
Whether index is up to standard, and whether the resource associations between fine arts resource block are correct, and whether fine arts resource block is complete, fine arts resource block
Name it is whether correct, whether the mounting point of model correct, and whether image length and width meet the requirements, and whether bit depth up to standard.
For example, cannot such as include the Naming conventions of forbidden character, the mounting object of mounting point whether there is in model,
The association textures of material whether there is, and model/textures in special efficacy/sub- special efficacy whether there is, and whether the length and width of textures meet 2
N times power, mipmaps inspections of dds files etc..
You need to add is that image is also one kind of fine arts resource, i.e. the Length x Width of image class fine arts resource;Bit depth
It is used to indicate the representation of the color of fine arts resource, bit depth is bigger, and color shows abundanter.
Optionally, according to default detection script corresponding from different file types, the fine arts resource after detection division
After whether meeting default inspection criterion, the feelings of the default inspection criterion are not met in the part or all of fine arts resource block of determination
Under condition, output is used to indicate the document that the part or all of fine arts resource block does not meet the default inspection criterion.
Optionally, the method further includes:Test instruction is received by the game client of the application fine arts resource,
In, the test instruction is corresponding with fine arts resource to be tested;It is shown and test instruction pair by the game client
The fine arts resource answered.You need to add is that test instruction may indicate that tester wants to claim the position of the fine arts resource of detection,
Display fine arts resource block corresponding with test instruction, judges whether the fine arts resource block meets by tester on interface
Design requirement.The alternative embodiment can correspond to subsequent artificial detection (or being detected for real machine), by " subject matter "
Processing, accurately found according to file type and path and think fine arts resource to be tested, then on the client load correspond to
Fine arts resource impact, by being manually detected confirmation.Step and the alternative embodiment in Fig. 3 are not limited in present specification
Step executes sequencing, and the artificial detection can be executed before step S302, can also execute the people after step S304
Work detects, or in other times, i.e., in the application artificial detection and machine detection (or being detected for off line) can simultaneously into
Row, the two can also be a flow for cycle.
During artificial detection, unknown (off line inspection is not added also namely) problem can be examined
It surveys, manual confirmation can also be carried out to visual effect direction (for example color, model penetrate);The former is once it is determined that detection script
Or the logic checked automatically can be added to after inspection criterion.Alternatively, the object of artificial detection, is owned in designated time period
Impacted modification content.
You need to add is that above-mentioned game client can be the client of game test phase, it is not after playing public testing
The client that logs in of each player.
Optionally, when determining that the test instruction instructs for the first test, the method further includes:Classify according to second
Mode carries out classification processing to the fine arts resource, wherein the type of second classification includes at least following one:Model,
Game special, user interface, scene, (second mode classification includes picture:Whether fine arts resource block is model, fine arts money
Whether source block is game special, and whether fine arts resource block is user interface, and whether fine arts resource block is scene, and fine arts resource block is
No is picture.You need to add is that user interface UI (User Interface);By the game client show with it is described
First test instructs the fine arts resource block determined after corresponding classification.
Optionally, when determining that the test instruction instructs for the second test, the method further includes:Determine described second
Test instructs the fine arts resource of corresponding file type;It is shown by the game client corresponding with the second test instruction
File type fine arts resource.
Optionally it is determined that described second tests after the fine arts resource of the corresponding different file types of instruction, the method
Further include:Determine that second test instructs the second default detection script of corresponding file type fine arts resource;According to described in
Second default detection script detects corresponding file type fine arts resource, if meets default inspection criterion.
What present specification was introduced, be the automatic parsing based on classification+rule judgement+tool feedback, while being aided with point
The multi-layer fine arts resource of class screening+manual confirmation checks platform.Need the technology modules used that can summarize according to function
For:Parsing module checks module, feedback module, classifying module, instruction module, real machine module, summarizing module.Application scenarios can
To be project team fine arts resource is uploaded by Versions such as Version SVN (Subversion), and tester
Member then needs to test the miscellaneous fine arts resource such as a large amount of model, special efficacy, scene, the interfaces UI, to ensure program
Load is correct, visual effect satisfaction.
In order to reduce the complexity of detection fine arts resource, efficient resource testing should introduce tool as possible and be assisted,
It allows tool to take over more multitask, is modified to fine arts personnel according to objective specification to dish out, save tester's prior involvement
Test and feedback cost;The problem of needs manually participate in also can be effectively filtered out simultaneously, and integrated test environment is provided, is allowed
Tester proceeds by rapidly test.
It is intended to provide a kind of pattern of working along both lines of tool inspection+manual confirmation in present specification, high efficiency ensures U.S.
The objective specification and subjective effect of art resource.
In this application, for the objective specification of resource, version monitoring mechanism is established, for the resource file submitted every time
Sorted out and parsed, the result of parsing, which is equipped with default inspection criterion, to be verified, and Real-time Feedback is repaiied to fine arts personnel
Change;The stage is that (off line inspection, and be properly termed as hardware check can not be run on game client for file level inspection
It plays to detect, whether correct using script detection games language), file level inspection can correspond to above-mentioned reality
Apply the step flow in Fig. 3 in example;
For the subjective effect of resource, the change inventory of daily resource is established, multiple single resources that modification is related to,
It is oriented to the specific resource of actual loaded in game according to reference compatible rule merging, tester is delivered after multiple single resource N are closed 1
Confirm its art effect;The stage be the inspection of real machine level (real machine inspection, or be hand inspection, game client run
Game, intuitively observed by games personnel, referred to as real machine inspection), off line detection can correspond in above-described embodiment by answering
Test instruction is received with the game client of the fine arts resource, is shown and test instruction pair by the game client
The fine arts resource answered.
File level inspection (off line inspection) may comprise steps of:
Step 1. program, test, the fine arts are formulated jointly checks specification (mainly for performance indicator, resource associations, complete
Property constituting criterion), the content of all kinds of resource files is parsed by script, and inspection interface is provided;
Step 2. is directed to by the submission of script timing acquisition Version (Subversion, SVN), clocked flip
The newest inspection for submitting content, and this error information, or the resource amendment situation to report an error before feeds back to submitter and money
Source control group;
After step 3. resource submitter is modified errant resource, inspection logic can be also triggered manually, check current institute
There is resource situation.
File level examination phase depends on file type (i.e. suffix):It is all kinds of texts according to the different demarcation of suffix
The set of part, then corresponding parsing code is write for per class file, classification parsing then is carried out to the submission content of capture, it will
The content parsed carries out normative inspection, and finally result is notified and summarized respectively.
Real machine level inspection (real machine inspection) may comprise steps of:
Step 1. tester obtains play after tool screening on website the stock number of interior hand inspection, inspection
It can be certain day resource submitted to look into the period, can also be the resource submitted for certain month
Step 2. website backstage carries out ownership processing by subsumption algorithm to magnanimity fine arts resource, then classifies and enumerate, such as:
Model (including the animation on the model, mounting special efficacy), special efficacy (model etc. for including the special efficacy), UI, scene, picture, and from
It is dynamic to generate the instruction checked needed for the resource,
The step 3. tester inspection that a key input website (game test webpage) generates in the game of game client
Instruction is looked into, the hand inspection of fine arts resource is carried out, whether mark passes through on website and is fed back;Related personnel can be regular
Check website, accurate process problem resource can also control entirety fine arts resource impact;
Step 4. permission user can obtain the resource inventory changed daily on the web site, consult classified resource file, and
Newest inspection result.
Real machine level examination phase is then to enumerate clear needing the resource of manual confirmation to classify, and is ready to by tool
Required test environment, directly delivers manual testing, record each resource by whether state, then consign to fine arts department
Processing, so batch carry out.
Fig. 4 is according to the module diagram of the test fine arts resource of disclosure preferred embodiment, as shown in figure 4, test is beautiful
It include following module during art resource:
Resource submits module (resource in corresponding diagram 4 is submitted):After i.e. fine arts personnel make perfect art resource, pass through SVN
Equal version tools are submitted to the process of version repository.This is the starting point of whole flow process, then in two stages, using python as coding
Specific embodiment explanation is unfolded in language:
Resource submission->Parsing module->Check module->Feedback module together constitutes the inspection of the first level:File layers
Face checks (off line inspection), and the function and principle of each module are as follows:
Parsing module:The resource that the module can periodically retrieve fine arts catalogue submits situation, is then divided into respectively according to suffix
The resource of class coded format, such as text (fnt fonts etc.), picture (images such as png, jpg), json formatted files
(ExportJson etc.), xml formatted files (gim models, sfx special efficacys etc.), binary file (gis actions etc.), above-mentioned suffix
Fine arts resource can be divided into different fine arts resource blocks;Different parsing modules, table 1 are equipped with for different document No.s
It is according to the mapping table of the file type domain detection module by taking python as an example of disclosure preferred embodiment, such as 1 institute of table
Show:
Table 1
Text formatting | Open functions |
Picture format | PIL modules |
Json formats | Json modules |
Xml formats | Xml.etree modules |
Binary format | BytesIO, struct module |
Check module:It, can be by the incoming inspection module of the content of parsing after parsing module parses file.The module will
According to resource type, such as model, special efficacy, scene, picture etc. needs to formulate together respective with fine arts personnel, program staff
It checks regular (being equivalent to the default inspection criterion in above-described embodiment), common includes quoting, model connection point, and picture is long
Width, bit depth etc..Fig. 5 is according to the basic schematic diagram of the website of the detection fine arts resource of disclosure preferred embodiment, such as Fig. 5 institutes
To show, resource inspection configuration may include model, special efficacy, scene, and textures move multiple resource types such as effect, in the example of hgure 5,
It can check the file status in dynamic effect, including version, date etc..
Feedback module:Via the mistake and repair situation for checking that module is found, will here be distributed in feedback module and
Summarize.Wherein mistake will be sent to resource submitter and resource management group by immediate communication tool, remind rectification;Newly repair
Content equally can also be sent out, to improve positive feedback.Meanwhile all results all can be according to resource type-;Problem category->
Fileinfo is successively classified, and on System to website, is inquired for tester alternatively, extracting and is partly or entirely carried out real machine inspection
It looks into.
Resource submission->Classifying module->Instruction module->Real machine module->Summarizing module then constitutes the inspection of the second level
It looks into:Real machine level inspection (real machine inspection), the function and principle of each module are as follows:
Classifying module:The resource that daily (or in a period of time) is submitted, according to file type Hua Fenwei [Main body text
Jian ]And [Di Cengwenjian ], can the criteria for classifying is the class file directly be loaded into (subject matter) in gaming, it is desired nonetheless to by it
(bottom document) can be just come into force after his quoting resource;Simultaneously dependent on the parsing module of above-mentioned first level, according to it to each
Reference chain between the analysis result configuration file of file, by Ge Ge [Di Cengwenjian ]Promotion, which is referred to, is not drawn by other resources
[Zhu Tiwenjian ];
Instruction module:From classifying module get Dao [Zhu Tiwenjian ]Afterwards, according to file type and path, in conjunction with games system
The instruction for making resource load can be equivalent in above-described embodiment and receive test instruction by game client, substantially
It is the function of a reception file path, file type that can be on intelligent recognition path, and game interrelated logic is called to add
Carry the resource in the path;So it is required that the path Shi [ that classifying module obtains;Zhu Tiwenjian ], you can directly to load in gaming
Resource type;
Real machine module:The instruction set of the required verification resource obtained from instruction module is input in game and carries out load inspection
It tests, is observed for tester.
Summarizing module:The module can safeguard a website, provide it is a it is confirming for tester, loaded in real machine module
The Resources list, tester needs to test the resource impact of real machine mould load in the block out, and marks test shape
State.Fig. 6 is the schematic diagram for summarizing the page according to the website of disclosure preferred embodiment, as shown in fig. 6, ranks are multiple in the page
Fine arts resource is often provided with the button for controlling each fine arts resource after row fine arts resource, replicate the fine arts resource or determine and be somebody's turn to do
Fine arts resource passes through detection.In figure 6, it is changed with the presence of three row fine arts resources, the change is shown by the form of box in Fig. 6
The corresponding fine arts resource of content, in order to which tester operates.Fig. 6 is only to provide the operation chart for summarizing fine arts resource, more
A fine arts resource specifically what be not Fig. 6 emphasis, also do not limit in figure 6.
Using above-mentioned technical proposal, advantageous effect is concentrated mainly on three aspects:
Parsing module+inspection module:The workload for significantly reducing hand inspection by program resolution file and is adapted to inspection
Rule is looked into, can find the fine arts resource for not meeting specification in time, can quickly and effectively exclude largely to ask without manpower intervention
Topic;And the problem of many naked eyes can not be found can also be positioned check by program code, avoid vision dead zone;In addition
Check the constantly cumulative rule of module, the also making for specification fine arts resource provides many reality and effectively reference mark
It is accurate.
Classifying module+instruction module+real machine module:For needing the part of manual confirmation, which will be corresponding
It simplifies after test content multichannel merger, and is integrated into the form of instruction set and is used for a key.The process greatly simplifies
Step before manual confirmation, does not need tester and goes to analyze the application scenarios of each resource, no longer need to prepare in advance yet
For the test condition examined, directly intelligently test content is presented in face of tester.
Feedback module+summarizing module:The presence of the two modules is the feedback-> in order to solve to be repeated;Modification->It surveys
The flow problem of examination, is respectively applied in the inspection of two levels.For objective specification, feedback module can check in real time
To problem and it is automatically fed to submitter, equally also there is notice after amendment, completely without the intervention of tester;And summarize mould
Block then can effectively record the test case of every resource, be surveyed in batches again after problem resource batch is consigned to fine arts personnel modification
Examination, promotes step by step, avoids the feedback repeatedly for being largely directed to fragmented file.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, the technical solution of the disclosure is substantially in other words to existing
The part that technology contributes can be expressed in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server or network equipment etc.) execute each embodiment of the disclosure described in method.
Additionally provide a kind of test device of fine arts resource in the present embodiment, the device for realizing above-described embodiment and
Preferred embodiment had carried out repeating no more for explanation.As used below, predetermined work(may be implemented in term " module "
The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
According to another embodiment of the present disclosure, a kind of test device of fine arts resource is additionally provided, including:
Division module, for dividing fine arts resource according to different file types;
Detection module, for according to default detection script corresponding from different file types, detecting U.S. after dividing
Whether art resource meets default inspection criterion, wherein, the default detection script is write according to the default inspection criterion.
Using above-mentioned technical proposal, the quantities for solving test fine arts resource in the related technology is big, and test speed is slow
Problem realizes and detects whether fine arts resource meets specification automatically using script, if meet design requirement, if there are some
Program editing mistake, during significantly reducing fine arts resources measurement, the workload of tester.
You need to add is that fine arts resource can be divided into the scheme of different file types, be also written in script, i.e., by
Script will be carried out according to file type (suffix) divide fine arts resource, for files in different types format specification be equipped with it is different
Resolver, using Python as code speech for, for example the model of xml formats, special efficacy, document scene can use
ElementTree modules parse, for example cocosanimations, ExportJson of json formats etc. just use json modules
Parsing, and the jpg of binary image formats, png, bmp file etc. just uses PIL modules, is carried from Miscellaneous Documents after parsing
Take out the content for needing to check.
Optionally, the division module is additionally operable to the different file suffixes according to each type file, and the fine arts are provided
Source is divided into fine arts resource block corresponding with each type file.
Optionally, according to default detection script corresponding from different file types, the fine arts resource after detection division
Before whether meeting default inspection criterion, the detection module is additionally operable to obtain the corresponding detection rule of each fine arts resource block respectively
Model, wherein the inspection criterion includes at least one following information:The performance indicator of fine arts resource block, between fine arts resource block
Resource associations, the integrality of fine arts resource block, the naming rule of fine arts resource block, the extension section of model in fine arts resource block
Point, image length and width, bit depth;According to the inspection criterion of each fine arts resource block, corresponding detection script is configured.
For example, above-mentioned inspection criterion can also include:The Naming conventions of forbidden character cannot be included, mounted in model
The mounting object of point whether there is, and the association textures of material whether there is, and model/textures in special efficacy/sub- special efficacy whether there is, patch
Whether the length and width of figure meet 2 n times power, the mipmaps inspections of dds files etc..
Optionally, the detection module is additionally operable to according to the detection script corresponding from different file types, right
Each fine arts resource block is detected respectively, judges whether the fine arts resource meets default inspection criterion, for example, fine arts resource
Whether the performance indicator of block is up to standard, and whether the resource associations between fine arts resource block are correct, and whether fine arts resource block is complete, beautiful
Whether the name of art resource block is correct, and whether the mounting point of model is correct, and whether image length and width meet the requirements, and whether bit depth reaches
Mark.
For example, cannot such as include the Naming conventions of forbidden character, the mounting object of mounting point whether there is in model,
The association textures of material whether there is, and model/textures in special efficacy/sub- special efficacy whether there is, and whether the length and width of textures meet 2
N times power, mipmaps inspections of dds files etc..
You need to add is that image is also one kind of fine arts resource, i.e. the Length x Width of image class fine arts resource;Bit depth
It is used to indicate the representation of the color of fine arts resource, bit depth is bigger, and color shows abundanter.
Optionally, the detection module according to default detection script corresponding from different file types, draw by detection
After whether the fine arts resource after point meets default inspection criterion, it is additionally operable to not meet in the part or all of fine arts resource block of determination
In the case of the default inspection criterion, output is used to indicate the part or all of fine arts resource block and does not meet the default inspection
The document of gauge model.
Optionally, described device further includes:
Receiving module, for receiving test instruction by the game client of the application fine arts resource, wherein the survey
Examination instruction is corresponding with fine arts resource to be tested;
Display module, for showing fine arts resource corresponding with the test instruction by the game client.
You need to add is that test instruction may indicate that tester wants to claim the position of the fine arts resource of detection, swimming
Display fine arts resource block corresponding with test instruction, judges whether the fine arts resource block meets design by tester on play interface
It is required that.The alternative embodiment can correspond to subsequent artificial detection (or being detected for real machine), pass through the place to " subject matter "
Reason, accurately finds according to file type and path and thinks fine arts resource to be tested, then load corresponding U.S. on the client
Art resource impact, by being manually detected confirmation.Not the step of step and the alternative embodiment in Fig. 3 are not limited in present specification
Sequencing is executed, the artificial detection can be executed before step S302, the artificial inspection can also be executed after step S304
It surveys, or in other times, i.e., artificial detection and machine detect (or being detected for off line) and can be carried out at the same time, two in the application
Person can also be a flow for cycle.
During artificial detection, unknown (off line inspection is not added also namely) problem can be examined
It surveys, manual confirmation can also be carried out to visual effect direction (for example color, model penetrate);The former is once it is determined that detection script
Or the logic checked automatically can be added to after inspection criterion.Alternatively, the object of artificial detection, is owned in designated time period
Impacted modification content.
You need to add is that above-mentioned game client can be the client of game test phase, it is not after playing public testing
The client that logs in of each player.
Optionally, when determining that the test instruction instructs for the first test, described device further includes the receiving module:
Classification processing is carried out to the fine arts resource according to the second mode classification, wherein the type of second classification include at least with
It is one of lower:Model, game special, user interface, scene, (second mode classification includes picture:Fine arts resource block whether be
Whether model, fine arts resource block are game special, and whether fine arts resource block is user interface, and whether fine arts resource block is scene,
Whether fine arts resource block is picture.You need to add is that user interface UI (User Interface);Pass through the game client
The fine arts resource block determined after end display classification corresponding with the first test instruction.
Optionally, when determining that the test instruction instructs for the second test, described device further includes the receiving module:
Determine that second test instructs the fine arts resource of corresponding file type;It is shown and described second by the game client
Test instructs the fine arts resource of corresponding file type.
Optionally it is determined that described second tests after the fine arts resource of the corresponding different file types of instruction, described device
Further include:Determine that second test instructs the second default detection script of corresponding file type fine arts resource;According to described in
Second default detection script detects corresponding file type fine arts resource, if meets default inspection criterion.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this:Above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with arbitrary
The form of combination is located in different processors.
According to another embodiment of the disclosure, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to another embodiment of the disclosure, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Obviously, those skilled in the art should be understood that each module of the above-mentioned disclosure or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be with different from shown in sequence execution herein
The step of going out or describing, either they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.It is combined in this way, the disclosure is not limited to any specific hardware and software.
The foregoing is merely preferred embodiment of the present disclosure, are not limited to the disclosure, for the skill of this field
For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, made by any repair
Change, equivalent replacement, improvement etc., should be included within the protection domain of the disclosure.
Claims (12)
1. a kind of test method of fine arts resource, which is characterized in that including:
Fine arts resource is divided according to different file types;
According to default detection script corresponding from different file types, it is default whether the fine arts resource after detection division meets
Inspection criterion.
2. according to the method described in claim 1, it is characterized in that, according to different file types divide fine arts resource, including:
According to the different file suffixes of each type file, the fine arts resource is divided into U.S. corresponding with each type file
Art resource block.
3. according to the method described in claim 2, it is characterized in that, according to default detection corresponding from different file types
Script, before whether the fine arts resource after detection division meets default inspection criterion, the method further includes:
Obtain the corresponding inspection criterion of each fine arts resource block respectively, wherein the inspection criterion include following information at least it
One:The performance indicator of fine arts resource block, the resource associations between fine arts resource block, the integrality of fine arts resource block, fine arts money
The naming rule of source block, the extension node of model, image length and width, bit depth in fine arts resource block;
According to the inspection criterion of each fine arts resource block, corresponding detection script is configured.
4. according to the method described in claim 3, it is characterized in that, according to default detection corresponding from different file types
Whether script, the fine arts resource after detection divides meet default inspection criterion, including:
According to the detection script corresponding from different file types, each fine arts resource block is detected respectively, is sentenced
Whether the fine arts resource of breaking meets default inspection criterion.
5. according to the method described in claim 1, it is characterized in that, according to default detection corresponding from different file types
Script, after whether the fine arts resource after detection division meets default inspection criterion, the method further includes:
In the case where the part or all of fine arts resource block of determination does not meet the default inspection criterion, output is used to indicate described
Part or all of fine arts resource block does not meet the document of the default inspection criterion.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
Test instruction is received by the game client of the application fine arts resource, wherein the test instruction is corresponding with to be measured
The fine arts resource of examination;
Fine arts resource corresponding with the test instruction is shown by the game client.
7. according to the method described in claim 6, it is characterized in that, determine test instruction for the first test instruction when,
The method further includes:
Classification processing is carried out to the fine arts resource according to the second mode classification, wherein the type of second classification is at least wrapped
Include following one:Model, game special, user interface, scene, picture;
The fine arts resource block determined after classification corresponding with the first test instruction is shown by the game client.
8. the method according to the description of claim 7 is characterized in that determine test instruction for the second test instruction when,
The method further includes:
Determine that second test instructs the fine arts resource of corresponding file type;
The fine arts resource of file type corresponding with the second test instruction is shown by the game client.
9. according to the method described in claim 8, it is characterized in that, determining the corresponding different files classes of the second test instruction
After the fine arts resource of type, the method further includes:
Determine that second test instructs the second default detection script of corresponding file type fine arts resource;
Corresponding file type fine arts resource is detected according to the described second default detection script, if meets default inspection criterion.
10. a kind of test device of fine arts resource, which is characterized in that including:
Division module, for dividing fine arts resource according to different file types;
Detection module, for according to default detection script corresponding from different file types, the fine arts after detection divides to provide
Whether source meets default inspection criterion, wherein, the default detection script is write according to the default inspection criterion.
11. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute the method described in any one of claim 1 to 9 when operation.
12. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute the side described in any one of claim 1 to 9
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810386232.3A CN108704312A (en) | 2018-04-26 | 2018-04-26 | The test method and device of fine arts resource |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810386232.3A CN108704312A (en) | 2018-04-26 | 2018-04-26 | The test method and device of fine arts resource |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108704312A true CN108704312A (en) | 2018-10-26 |
Family
ID=63867408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810386232.3A Pending CN108704312A (en) | 2018-04-26 | 2018-04-26 | The test method and device of fine arts resource |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108704312A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262976A (en) * | 2019-06-21 | 2019-09-20 | 深圳市腾讯网域计算机网络有限公司 | Analytic method, device, equipment and the storage medium of game resource file |
CN111249743A (en) * | 2020-01-14 | 2020-06-09 | 网易(杭州)网络有限公司 | Method and device for checking and submitting art resources |
CN111589154A (en) * | 2020-05-20 | 2020-08-28 | 苏州沁游网络科技有限公司 | Resource normalization detection and optimization method, device, equipment and storage medium |
CN111782607A (en) * | 2020-07-13 | 2020-10-16 | 网易(杭州)网络有限公司 | Method and device for processing combined graph, storage medium and electronic device |
CN112306508A (en) * | 2020-10-13 | 2021-02-02 | 武汉木仓科技股份有限公司 | Configuration information file updating method and device and processing equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763385A (en) * | 2008-12-25 | 2010-06-30 | 新奥特硅谷视频技术有限责任公司 | Method and device for verifying file information during uploading file |
CN102833543A (en) * | 2012-08-16 | 2012-12-19 | 中央电视台 | Video coding format detection device and method for video and audio media file |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
CN106407115A (en) * | 2016-09-20 | 2017-02-15 | 网易(杭州)网络有限公司 | An art resource file testing method and device |
CN106921713A (en) * | 2015-12-25 | 2017-07-04 | 中国移动通信集团上海有限公司 | A kind of resource caching method and device |
-
2018
- 2018-04-26 CN CN201810386232.3A patent/CN108704312A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763385A (en) * | 2008-12-25 | 2010-06-30 | 新奥特硅谷视频技术有限责任公司 | Method and device for verifying file information during uploading file |
CN102833543A (en) * | 2012-08-16 | 2012-12-19 | 中央电视台 | Video coding format detection device and method for video and audio media file |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
CN106921713A (en) * | 2015-12-25 | 2017-07-04 | 中国移动通信集团上海有限公司 | A kind of resource caching method and device |
CN106407115A (en) * | 2016-09-20 | 2017-02-15 | 网易(杭州)网络有限公司 | An art resource file testing method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262976A (en) * | 2019-06-21 | 2019-09-20 | 深圳市腾讯网域计算机网络有限公司 | Analytic method, device, equipment and the storage medium of game resource file |
CN110262976B (en) * | 2019-06-21 | 2024-05-28 | 深圳市腾讯网域计算机网络有限公司 | Game resource file analysis method, device, equipment and storage medium |
CN111249743A (en) * | 2020-01-14 | 2020-06-09 | 网易(杭州)网络有限公司 | Method and device for checking and submitting art resources |
CN111249743B (en) * | 2020-01-14 | 2023-04-07 | 网易(杭州)网络有限公司 | Method and device for checking and submitting art resources |
CN111589154A (en) * | 2020-05-20 | 2020-08-28 | 苏州沁游网络科技有限公司 | Resource normalization detection and optimization method, device, equipment and storage medium |
CN111589154B (en) * | 2020-05-20 | 2021-05-07 | 苏州沁游网络科技有限公司 | Resource normalization detection and optimization method, device, equipment and storage medium |
CN111782607A (en) * | 2020-07-13 | 2020-10-16 | 网易(杭州)网络有限公司 | Method and device for processing combined graph, storage medium and electronic device |
CN111782607B (en) * | 2020-07-13 | 2024-03-22 | 网易(杭州)网络有限公司 | Method and device for processing graphics, storage medium and electronic device |
CN112306508A (en) * | 2020-10-13 | 2021-02-02 | 武汉木仓科技股份有限公司 | Configuration information file updating method and device and processing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108704312A (en) | The test method and device of fine arts resource | |
CN110764753B (en) | Business logic code generation method, device, equipment and storage medium | |
CN100507870C (en) | Automated test case verification that is loosely coupled with respect to automated test case execution | |
AU2020200909A1 (en) | Evaluation control | |
CN108564035A (en) | The method and system for the information recorded on identification document | |
US11544176B1 (en) | Systems and methods for automatically assessing and conforming software development modules to accessibility guidelines in real-time | |
CN105930409A (en) | Data verification method and device based on dynamic generation rule | |
CN106796696A (en) | The determination of the concern that the direction based on the information of staring stimulates | |
KR102232880B1 (en) | Method for evaluating inspector of crowdsourcing based projects for collecting image or video for artificial intelligence training data generation | |
Tornhill | Assessing technical debt in automated tests with codescene | |
CN112883018A (en) | Banking talent information prediction method and device based on big data analysis | |
Koch | Effort modeling and programmer participation in open source software projects | |
US20210089992A1 (en) | Method for automated code reviewer recommendation | |
Wood et al. | A guide to the assessment of software development methods | |
Cui et al. | Research of an intelligent experimental teaching platform based on Internet | |
CN117132226A (en) | User behavior auditing and managing system | |
Behnam et al. | Using the Goal-oriented pattern family framework for modelling outcome-based regulations | |
Dautovic | Automatic assessment of software documentation quality | |
CN115828022A (en) | Data identification method, federal training model, device and equipment | |
CN111177501B (en) | Label processing method, device and system | |
CN113590825A (en) | Text quality inspection method and device and related equipment | |
CN111179010A (en) | Online notarization method, system, device and medium for unreasonable price products | |
CN109540467A (en) | Optical fiber automatic test system based on industry internet platform | |
CN117493210B (en) | Micro-service tool evaluation method and system | |
CN114331734B (en) | Risk assessment method, apparatus, device and storage medium for product purchase |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181026 |
|
RJ01 | Rejection of invention patent application after publication |