CN108654089A - The test method and device of Mission Objective, electronic equipment, storage medium - Google Patents

The test method and device of Mission Objective, electronic equipment, storage medium Download PDF

Info

Publication number
CN108654089A
CN108654089A CN201810438988.8A CN201810438988A CN108654089A CN 108654089 A CN108654089 A CN 108654089A CN 201810438988 A CN201810438988 A CN 201810438988A CN 108654089 A CN108654089 A CN 108654089A
Authority
CN
China
Prior art keywords
task
tasks
monomer
mission objective
proxy server
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
Application number
CN201810438988.8A
Other languages
Chinese (zh)
Inventor
尹飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810438988.8A priority Critical patent/CN108654089A/en
Publication of CN108654089A publication Critical patent/CN108654089A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods 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

Abstract

Present invention is disclosed a kind of test method of Mission Objective and device, electronic equipment, computer readable storage mediums, including:According to the running configuration data of acquired Mission Objective to be tested, the quantification tasks that difficulty assessment is carried out to Mission Objective are created;Quantification tasks are split, multiple monomer tasks are obtained;Multiple monomer tasks are distributed to the multiple proxy servers being in idle condition, triggering proxy server runs monomer task;The operation result that monomer task generates is run according to proxy server, the corresponding operation result of multiple monomer tasks is merged, the difficulty test result of Mission Objective is obtained.Technical solution provided by the invention improves the efficiency for carrying out difficulty assessment to Mission Objective, the progress of quantification tasks will not be influenced single machine failure, improves system stability.

Description

The test method and device of Mission Objective, electronic equipment, storage medium
Technical field
The present invention relates to field of computer technology, more particularly to the test method and device, electronics of a kind of Mission Objective are set Standby, computer readable storage medium.
Background technology
With the development of computer and smart mobile phone and universal, game has become a kind of very popular entertainment way And show explosive growth situation.Development of games also becomes a fast-developing industry, during development of games, trip The design at the play outpost of the tax office is the emphasis of development of games.
The control of game level complexity is the difficult point of game level design.If difficulty is larger, may largely swim Play user is difficult to that the check-in succeeds, leads to the loss of user.If difficulty is relatively low, do not challenged for most of user Property, do not have game-play enjoyment.It is the just right outpost of the tax office difficulty of Game Setting as a result, is that game promotion is successfully crucial.With Toward the experience for usually relying on designer, outpost of the tax office difficulty is adjusted on line, i.e., constantly adjusts game difficulty or ease in user's game process Degree, and difficulty judgement is made by experience, it is susceptible to relatively large deviation, the normal operation for influencing game is adjusted also on line, is taken When it is laborious.
The prior art imitates people using intelligent body by standalone version quantification tool and is repeatedly made a breakthrough to the outpost of the tax office, counts later This data repeatedly made a breakthrough is analyzed, determines the difficulty at the outpost of the tax office.When quantification tool evaluates the specified outpost of the tax office, profit is generally required The break-through that up to ten thousand times are carried out with intelligent body, can just obtain more accurate data.Intelligent body closes operation once to single, mean consumption 30 Millisecond, 300 seconds will be consumed by being run 10,000 times to single pass, it can be seen that, the complexity at the prior art assessment outpost of the tax office needs to expend The more time assesses inefficiency.
Invention content
It is repeatedly made a breakthrough, is commented to the outpost of the tax office using intelligent body imitation people in order to solve standalone version quantification tool in the related technology Estimate the complexity at the outpost of the tax office, it is longer to expend the time, the problem of assessing inefficiency, and the present invention provides a kind of surveys of Mission Objective Method for testing.
On the one hand, the present invention provides a kind of test methods of Mission Objective, including:
According to the running configuration data of acquired Mission Objective to be tested, creates and Mission Objective progress difficulty is commented The quantification tasks estimated;
The quantification tasks are split, multiple monomer tasks are obtained;
Multiple monomer tasks are distributed to the multiple proxy servers being in idle condition, the agency service is triggered Device runs the monomer task;
The operation result that the monomer task generates is run according to the proxy server, to multiple monomer tasks pair The operation result answered is merged, and the difficulty test result of the Mission Objective is obtained.
On the other hand, the present invention also provides a kind of test device of Mission Objective, described device includes:
Task creation module is created for the running configuration data according to acquired Mission Objective to be tested to the trip Play task carries out the quantification tasks of difficulty assessment;
Task splits module and obtains multiple monomer tasks for being split to the quantification tasks;
Task allocating module, for distributing multiple monomer tasks to the multiple agency services being in idle condition Device triggers the proxy server and runs the monomer task;
As a result Fusion Module, it is right for running the operation result that the monomer task generates according to the proxy server The corresponding operation result of multiple monomer tasks is merged, and the difficulty test result of the Mission Objective is obtained.
In addition, the present invention also provides a kind of electronic equipment, the electronic equipment includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as executing the test method of above-mentioned Mission Objective.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with computer program, the computer program can be executed the test method for completing above-mentioned Mission Objective by processor.
The technical solution that the embodiment of the present invention provides can include the following benefits:
Technical solution provided by the invention carries out difficulty or ease according to the running configuration data creation of Mission Objective to Mission Objective Quantification tasks are refined into multiple monomer tasks, and monomer task is distributed to multiple agency services by the quantification tasks for spending assessment Device is carried out the operation processing of respectively distributed monomer task by multiple proxy servers respectively, and then by appointing all monomers The operation result of business is counted, you can the difficulty test result of the Mission Objective is obtained, even if it is up to ten thousand to imitate user's break-through It is secondary, only secondary operation tasks up to ten thousand need to be distributed to each proxy server, task processing is concurrently carried out by each proxy server, To improve to Mission Objective carry out difficulty assessment efficiency, will not be influenced single machine failure quantification tasks into Row, improves system stability.
It should be understood that above general description and following detailed description is merely exemplary, this can not be limited Invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the schematic diagram of implementation environment involved according to embodiments of the present invention.
Fig. 2 is a kind of block schematic illustration of server shown according to an exemplary embodiment.
Fig. 3 is a kind of test method flow chart of Mission Objective shown according to an exemplary embodiment.
Fig. 4 is the display interface schematic diagram that terminal adds quantification tasks.
Fig. 5 is the proxy server schematic diagram of access.
Fig. 6 is the test result schematic diagram at the single outpost of the tax office.
Fig. 7 is the general frame figure of the test method of the Mission Objective shown in exemplary embodiment of the present.
Fig. 8 is the details flow chart of step 310 in Fig. 3 corresponding embodiments.
Fig. 9 is the details flow chart of step 330 in Fig. 3 corresponding embodiments.
Figure 10 is the process model schematic diagram of proxy server.
Figure 11 is the test side for the Mission Objective that another exemplary embodiment provides on the basis of Fig. 3 corresponding embodiments The flow diagram of method.
Figure 12 is a kind of schematic diagram for the quantification tasks round-robin queue that exemplary embodiment provides.
Figure 13 is the test side for the Mission Objective that another exemplary embodiment provides on the basis of Fig. 3 corresponding embodiments The flow diagram of method.
Figure 14 is the interface schematic diagram that quantification tasks inquiry is carried out according to querying condition.
Figure 15 is the result schematic diagram for inquiring single quantification tasks.
Figure 16 is a kind of use interface schematic diagram implemented the standalone version exemplified and carry out outpost of the tax office quantization.
Figure 17 is a kind of block diagram of the test device of Mission Objective shown according to an exemplary embodiment.
Figure 18 is the details block diagram of task creation module in Figure 17 corresponding embodiments.
Specific implementation mode
Here will explanation be executed to exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following exemplary is implemented Embodiment described in example does not represent all embodiments consistent with the present invention.On the contrary, they are only and such as institute The example of the consistent device and method of some aspects being described in detail in attached claims, of the invention.
Fig. 1 is the schematic diagram of implementation environment involved according to embodiments of the present invention.As shown in Figure 1, the implementation environment packet Server 110 and terminal 120 are included, can be received by wireless communication, server 110 between server 110 and terminal 120 Then the running configuration data for the Mission Objective to be tested that terminal 120 uploads use method provided by the invention, obtain the game The difficulty test result of task.
Server 110 can be the collection that web page server 111, master server 112 and multiple proxy servers 113 are constituted Group.Web page server 111 is carried out wireless communication with terminal 120, and the operation for receiving the Mission Objective to be tested that terminal 120 uploads is matched Set data.The running configuration data are stored in own database by web page server 111.Master server 112 can timing from The running configuration data of Mission Objective to be tested are obtained in web page server 111, create the quantization of assessment Mission Objective difficulty Then quantification tasks are split into multiple monomer tasks and distributed to multiple proxy servers 113 by task, taken in multiple agencies Business device 113 carries out the distributed operation of the quantification tasks, and master server 112 merges the operation knot of each proxy server 113 Fruit obtains the difficulty test result of the Mission Objective.
It is a kind of server architecture schematic diagram provided in an embodiment of the present invention referring to Fig. 2, Fig. 2.The server 200 can be because matching It sets or performance is different and generate bigger difference, may include one or more central processing units (central Processing units, CPU) 222 (for example, one or more processors) and memory 232, one or more Store the storage medium 230 (such as one or more mass memory units) of application program 242 or data 244.Wherein, it deposits Reservoir 232 and storage medium 230 can be of short duration storage or persistent storage.The program for being stored in storage medium 230 may include One or more modules (diagram is not shown), each module may include to the series of instructions operation in server 200. Further, central processing unit 222 could be provided as communicating with storage medium 230, execute storage medium on server 200 Series of instructions operation in 230.Server 200 can also include one or more power supplys 226, one or more Wired or wireless network interface 250, one or more input/output interfaces 258, and/or, one or more operations System 241, such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTMEtc..Following Fig. 3, figure 8, Fig. 9, Figure 11, the service shown in Fig. 2 can be based on by the step performed by server described in embodiment illustrated in fig. 13 Device structure.
One of ordinary skill in the art will appreciate that realizing that all or part of step of following embodiments can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
Fig. 3 is a kind of flow chart of the test method of Mission Objective shown according to an exemplary embodiment.The game is appointed The scope of application and executive agent of the test method of business, for example, server 110 of this method for implementation environment shown in Fig. 1.Such as Shown in Fig. 3, this method can be executed by server 110, may comprise steps of.
In the step 310, it according to the running configuration data of acquired Mission Objective to be tested, creates to the Mission Objective Carry out the quantification tasks of difficulty assessment;
Wherein, Mission Objective refers to certain outpost of the tax office, event or the plot in game, and a complete game is including may include one A or multiple Mission Objectives.In general, by some outpost of the tax office, some event occurs or generate certain section of plot think the break-through at Work(.Most of user can the check-in succeeds when, indicate that the Mission Objective difficulty is low, when most of user is failed, indicate The Mission Objective difficulty is low.Mission Objective to be tested refers in certain game, and the unknown Mission Objective of difficulty height, it is difficult to need to carry out The assessment of Yi Du, in case being subsequently adjusted to the outpost of the tax office, Mission Objective to be tested can be one or more of game game Task.
Running configuration data include outpost of the tax office regular data (condition that such as reaches a standard, reach a standard step number), intelligent body imitate player rush The operation data (such as move to left, move to right) of pass, number of run (i.e. intelligent body imitates the number that player makes a breakthrough).Wherein, operation time Several value settings is bigger, and the result of quantization is more accurate.As needed, can also include the distinctive parameter of project, such as:Bullet is attacked Power, pet attack etc..Running configuration data can in advance store in the server, can also be uploaded to server by terminal, And then server obtains the running configuration data at the outpost of the tax office to be tested.Fig. 4 is the display interface that terminal adds quantification tasks, Yong Huke With shown in Fig. 4 using select file button is clicked in interface, outpost of the tax office regular data, the intelligent body of Mission Objective to be tested are submitted The operation data that player makes a breakthrough is imitated, in operating parameter input window, input number of run, attack etc..
Wherein, quantification tasks refer to assessing the task of Mission Objective difficulty, in other words use the complexity of break-through The task that numerical value is indicated.Server receive terminal submission Mission Objective to be tested running configuration data after, The running configuration data are stored in specified directory, and create a new task record in DB databases.Server DB databases are read in timing, judge whether there is new task record, if it find that there is new task record, are obtained under specified directory The running configuration data of storage, and create the quantification tasks run according to the running configuration data.
In step 320, the quantification tasks are split, obtains multiple monomer tasks;
It should be noted that it refers to that quantification tasks are refined into multiple small tasks to quantification tasks split, to just It is handled in each small task is subsequently distributed to different proxy servers, improves the efficiency of task processing.Wherein, monomer Task refers to the tiny task splitted out from quantification tasks.The operation time that the granularity of refinement can be indicated according to quantification tasks Number.Assuming that in the running configuration data that user submits, number of run is 10000 numbers, in other words, needs to imitate user's break-through 10000 times, then break-through task quantification tasks can will be refined into 10000 monomer tasks as a monomer task every time.
In a step 330, multiple monomer tasks are distributed to the multiple proxy servers being in idle condition, triggering The proxy server runs the monomer task;
Wherein, proxy server generally has more, and the proxy server of access can be that dynamic increases, proxy server number Amount more multilist shows that computing resource is more, and the processing speed of quantification tasks is also faster.Wherein, every proxy server can be according to certainly The machine hardware of body configures, and calculation procedure quantity is arranged, makes full use of machine resources.Fig. 5 is that the proxy server of access shows It is intended to.As shown in figure 5, access 12 proxy servers altogether, the core amounts of every proxy server may be 5,6, 8 ... .., in the embodiment shown in fig. 5, the total CPU core calculation of 12 proxy servers is 75, thus with CPU core calculation pair It answers, 75 calculation procedure numbers can be set.
It is to be understood that the proxy server being in idle condition refer to the proxy server process it is unoccupied. Such as certain proxy server core number is 8, in order to make full use of the computing resource of machine, then its calculation procedure number should be 8 It is a, if 8 processes are unoccupied, it may be considered that the proxy server is in idle condition, task can be distributed.
Multiple monomer tasks are distributed to multiple proxy servers, can according to the computing resource of each proxy server, For the distribution of each proxy server and the matched monomer task of its computing resource.Assuming that operation is primary to be used as a monomer task, The cpu core numbers of certain proxy server are 3 cores, then its calculation procedure number can be 3, so as to be the proxy server point With 3 monomer tasks, i.e., each calculation procedure operation is primary.
In a specific embodiment, the number of run that Mission Objective is set in quantification tasks 1 is 10000 times, if one The calculation procedure number of the proxy server of a idle state is n, then proxy server operation n times will be distributed.Assuming that idle The proxy server negligible amounts of state can not complete the distribution of all monomer tasks, then can carry out waiting until in the presence of empty The proxy server of not busy state carries out the allocation processing of residual monomer task again.Proxy server receives the monomer task of distribution Afterwards, by the host process of proxy server by each monomer mission dispatching to corresponding calculation procedure, by each calculation procedure a pair One carries out the operation of monomer task.
In step 340, the operation result that the monomer task generates is run according to the proxy server, to multiple institutes It states the corresponding operation result of monomer task to be merged, obtains the difficulty test result of the Mission Objective.
Wherein, operation result refer to proxy server operation monomer task output as a result, operation result include clearance at Work(, clearance failure, clearance rank (star, two stars, Samsung), clearance score, clearance step number etc..By the operation of each monomer task As a result it refers to being counted to the operation result of the task of all monomers, such as calculate clearance success rate, failure to carry out fusion Rate or abnormal rate, can also count a star in clearance rank, two stars, the ratio shared by Samsung, and each star clearance is averaged Clearance score and average clearance step number etc., as needed after can also count all clearances and be successfully averaged clearance score and average Clearance step number.Clearance fails in statistical items, can count the ratio and reason of each specific failure.The difficulty of Mission Objective is surveyed The reason of test result can refer to clearance success rate, mortality, each star ratio, each fails and ratio etc..Consequently facilitating The difficult point and stuck point for understanding the outpost of the tax office, in case being subsequently adjusted to the outpost of the tax office.
Fig. 6 is that the test result schematic diagram at the single outpost of the tax office is led to as shown in fig. 6, for the 878th Mission Objective The display of pass condition, and illustrate the statistics of the statistical result of clearance exception, the successful statistical result of clearance and clearance failure As a result.
Fig. 7 is the general frame figure of the test method of the Mission Objective shown in exemplary embodiment of the present.Such as Fig. 7 institutes Show, terminal 120 receives the running configuration data of Mission Objective to be tested input by user by running tool webpage.Terminal 120 The running configuration data of Mission Objective are uploaded to the web page server 111 on backstage.Terminal 120 can once submit one or more The running configuration data at a outpost of the tax office.The assessment task of one or more Mission Objectives may be constructed a quantification tasks.Webpage takes After business device 111 receives the running configuration data of the Mission Objective to be tested of the upload of terminal 120, which is stored in specified mesh Record, and new task record is created in DB databases.Master server 112 can periodically read DB data, judge whether there is new Task record, and when finding new task record, obtain the quantization times that the data creation of specified directory runs data Business.
Master server 112 splits unfinished portion in quantification tasks, and the monomer task of refinement is distributed to sky Not busy proxy server (Agent1, Agent2, Agent3 ... Agent3) is run.Proxy server 113 receives fractionation It after monomer task afterwards, goes to calculate using the calculation procedure of itself, after calculating, result of calculation is fed back into master server 112, cycle carries out the fractionation and distribution of unfinished portion in quantification tasks, the operation until completing entire quantification tasks.Main clothes Business device 112 merges the operation result of each monomer task, and statistical result (i.e. the difficulty test result of Mission Objective) is written In DB databases, in case user's lateral terminal 120 inquires the survey of Mission Objective by logining web page, connection web page server 111 Test result.
The technical solution that the above exemplary embodiments of the present invention provide, according to the running configuration data creation pair of Mission Objective Mission Objective carries out the quantification tasks of difficulty assessment, quantification tasks is refined into multiple monomer tasks, and monomer task is divided Multiple proxy servers are assigned to, carry out the operation processing of respectively distributed monomer task respectively by multiple proxy servers, in turn By the way that the operation result of all monomer tasks is counted, you can the difficulty test result of the Mission Objective is obtained, even if It imitates user to make a breakthrough up to ten thousand times, only secondary operation tasks up to ten thousand need to be distributed to each proxy server, by each proxy server Task processing is concurrently carried out, it, will not single machine failure to improve the efficiency for carrying out difficulty assessment to Mission Objective The progress for influencing quantification tasks, improves system stability.
In a kind of exemplary embodiment, as shown in figure 8, above-mentioned steps 310 specifically include:
In step 311, the running configuration data for the Mission Objective to be tested that webpage terminal uploads are received;
Specifically, in web page server operational process, the operation for the Mission Objective to be tested that webpage terminal uploads is received Configuration data.Webpage terminal inputs the running configuration data of Mission Objective to be tested for user, in turn by running tool webpage The data are uploaded to web page server.Web page server receives the running configuration data uploaded.
In step 312, the reception of the running configuration data, triggering, which creates, comments Mission Objective progress difficulty The quantification tasks estimated.
Specifically, after web page server receives running configuration data, in the new task record of DB data creations, main service DB databases are read in device timing, and when finding new task record, the amount that player makes a breakthrough is imitated according to running configuration data creation Change task, to obtain the difficulty test result of Mission Objective.Wherein, running configuration data include outpost of the tax office regular data, intelligence Energy body imitates operation data, the number of run that player makes a breakthrough, and quantification tasks refer to operation outpost of the tax office regular data and imitation player The operation data of break-through reaches above-mentioned specified number of run.Wherein, the knot of each run result summarized as quantification tasks Fruit.
In a kind of exemplary embodiment, specifically included in above-mentioned steps 320:
According to the number of run that the quantification tasks indicate, the quantification tasks are torn open according to the number of run Point, obtain quantity multiple monomer tasks identical with the number of run.
It should be noted that number of run is exactly the number for imitating player's break-through, which is configured by user And it is uploaded to server, belong to a part for running configuration data.Quantification tasks refer to operation outpost of the tax office regular data and imitation The operation data that player makes a breakthrough reaches number of run set by user, the operation time that thus master server is indicated according to quantification tasks Number, can divide quantification tasks according to number of run, will operation it is primary as a monomer task, and then obtain quantity Multiple monomer tasks identical with number of run.Assuming that setting number of run is 10000 in the running configuration data that user uploads It is secondary, then quantification tasks can be split into 10000 monomer tasks.
In a kind of exemplary embodiment, as shown in figure 9, above-mentioned steps 330 specifically include:
In step 331, the proxy server being in idle condition is filtered out;
Proxy server is multi-process program, is the process model of proxy server as shown in Figure 10, calculation procedure in figure 1, calculation procedure N in calculation procedure 2 ... is expressed as specific calculation procedure unit, and the calculation procedure number on each proxy server can With different, specific quantity can be according to there is several cpu cores numbers on machine.Proxy server includes host process, host process For managing calculation procedure, and it is responsible for communicating with master server.After host process receives calculating task (i.e. several monomer tasks), Specific calculation procedure can be distributed to calculate, after all calculation procedures have been calculated, host process can be sent to result of calculation Master server, and wait for new calculating task.
In step 332, according to the calculation procedure number of the proxy server, be the proxy server quantity allotted with The identical monomer task of its calculation procedure number triggers the proxy server and runs the monomer task.
It makes a breakthrough once it should be noted that imitating player in quantification tasks, that is, a monomer can once be represented by, which running, appoints Business, a proxy server have multiple calculation procedures, and a calculation procedure operation is primary, thus according to what is be in idle condition The calculation procedure number of proxy server can be proxy server quantity allotted monomer task identical with calculation procedure number.It lifts For example, it is assumed that the calculation procedure number of certain proxy server is 8, once appoints operation as a monomer in quantification tasks Business, thus master server is that the proxy server distributes 8 monomer tasks, and the host process of proxy server is by 8 monomer tasks It is issued to one-to-one calculation procedure, each calculation procedure runs a monomer task.
Further, after above-mentioned steps 332, method provided by the invention is further comprising the steps of:
The proxy server being in idle condition is redistributed in waiting, is run unappropriated monomer in the quantification tasks and is appointed Business.
It should be noted that in general, the total for the proxy server being in idle condition, which adds number of passes, is less than quantification tasks Number of run, in one embodiment, it is 72 that the total for the proxy server being in idle condition, which adds number of passes, but measure Change mission requirements to run 10000 times (there are 10000 monomer tasks), each calculation procedure operation is primary, that is, distributes one After monomer task, the quantification tasks can not be still completed.It is possible thereby to wait for the proxy server being in idle condition again, then By unappropriated monomer task in quantification tasks, according to the calculation procedure number of proxy server, by unappropriated monomer task point It is assigned to the proxy server being in idle condition again.
In a kind of exemplary embodiment, as shown in figure 11, after above-mentioned steps 310, method provided by the invention is also Include the following steps:
In step 1101, the quantification tasks are inserted into established duty cycle queue;
It should be noted that master server bottom maintains the duty cycle queue of a quantification tasks.The duty cycle Queue includes multiple quantification tasks, and newly-increased quantification tasks can be inserted into the tail portion of the duty cycle queue, when an amount Change task computation after the completion from middle deletion in the duty cycle team.
In step 1102, according to the task execution sequence in the duty cycle queue, poll executes the task and follows Being recorded in ring queue for task.
Wherein, it refers to sequentially executing team according to task execution sequence that poll, which executes being recorded in duty cycle queue for task, Unappropriated monomer task in one quantification tasks is first distributed to the free time and is acted on behalf of by the unfinished portion of each quantification tasks in row The process of server, it should be noted that remaining unappropriated monomer task is also possible in quantification tasks at this time, under then executing One quantification tasks distributes unappropriated monomer in next quantification tasks to idle proxy server, thus constantly week and It renews.When quantification tasks are more, this mode can make all quantification tasks be provided with operation progress, without waiting for one The complete end of run of quantification tasks just runs next quantification tasks.
Figure 12 is a kind of schematic diagram for the quantification tasks round-robin queue that exemplary embodiment provides.1,2,3 ... n-1, n points A quantification tasks are not represented.Assuming that currently processed task is quantification tasks 1, it is main when finding an idle proxy server Server can split out a part of tiny task from quantification tasks 1, and specific fine particle size can be according to the proxy server Calculation procedure number.If for example, the calculation procedure number of an idle proxy server is n, then master server is by assignment agent Server runs n times, and wherein each calculation procedure operation is primary.A part of tiny task distribution is split out in quantification tasks 1 After one idle proxy server is calculated, it is current task that can switch next quantification tasks in round-robin queue, etc. It waits reappearing the proxy server being in idle condition, continues fractionation and the distribution operation of current task, so constantly The unfinished portion of quantification tasks in duty cycle queue is split and is distributed by cycle, by the proxy server of idle state It is run.
In a kind of exemplary embodiment, above-mentioned steps 340 specifically include:
According to the corresponding operation result of each monomer task, each operation result proportion is counted, the game is obtained The difficulty test result of task.
Specifically, a monomer task presentation, which imitates user, makes a breakthrough operation once, the corresponding operation result of monomer task can It can be failed or the check-in succeeds, pass through and calculate failed accounting or the accounting that the check-in succeeds, so that it may be played with determining The complexity Mission Objective of task.For example, the accounting that the check-in succeeds reaches 70% or more, it is believed that the outpost of the tax office is simpler.
Wherein, operation result is also possible that clearance rank (a such as star, two stars, Samsung), can also count as a result, every The accounting of kind clearance rank, more accurately holds the complexity at the outpost of the tax office.
In a kind of exemplary embodiment, as shown in figure 13, method provided by the invention can also include the following steps:
In step 1310, the inquiry request to specifying Mission Objective or specified quantification tasks to be inquired is received;
Wherein, inquiry request can be that terminal is taken according to user input query content to webpage by running tool webpage It is engaged in what device was sent.Inquiry request carries querying condition, and querying condition includes outpost of the tax office number, mission number etc..As shown in figure 14, may be used To be numbered according to the outpost of the tax office, the querying conditions such as mission number carry out the inquiry of outpost of the tax office difficulty Mission Objective, obtain mission number pair Operation progress answered etc..
In step 1320, the querying condition entrained by the inquiry request returns corresponding with the querying condition Query result.
It should be noted that master server merges the operation result of multiple proxy servers, the difficulty or ease of Mission Objective are obtained Test result is spent, is stored the result into DB databases, to which web page server is when receiving the inquiry request of terminal transmission, Query result corresponding with querying condition can be obtained from DB databases according to the querying condition entrained by inquiry request.Such as Shown in Figure 15, the difficulty test result for specifying the included Mission Objective of quantification tasks can be returned to terminal.Such as the outpost of the tax office 841 Rate that the check-in succeeds is 12.54%, it is believed that the difficulty at the outpost of the tax office 841 is larger, needs again to be adjusted the outpost of the tax office.
The quantization outpost of the tax office tool at initial stage is the executable program of window clients, is illustrated in fig. 16 shown below using interface, it It is a standalone version program, sequentially executes the file in pending outpost of the tax office listed files.The standalone version quantification tool at the ends Window Though can quantify to the outpost of the tax office, personnel is instructed to edit the outpost of the tax office, improves the efficiency at the editor outpost of the tax office, there is a problem of following:(1) it transports Line efficiency is low:Principle due to quantifying the outpost of the tax office is to imitate people using intelligent body repeatedly to make a breakthrough to the outpost of the tax office, later statistical Analyse this multiple break-through data.When quantification tool evaluates the specified outpost of the tax office, often carried out up to ten thousand times using intelligent body Break-through, can just obtain more detailed data.Intelligent body closes operation once to single, 30 milliseconds of times can be averagely consumed, to single pass 300 second time will be consumed by running 10,000 times.Therefore, single machine quantification tool pair one puts row quantitative analysis into, will averagely consume 300 seconds Time.(2) quantized result is not intuitive, can not provide inquiry:The quantized result of standalone version is all as a result to export shape there are in the machine Formula is mainly txt documents, and multiple standalone version quantized result not intercommunications.It (3) can not stable operation:Standalone version is one process, When quantification tasks occur abnormal, standalone version can operation suspension.(3) update is inconvenient:Quantification tool can be used by more people, work as quantization When tool has carried out update, multiple standalone versions all need to update.
It is multiple by people is imitated the present invention provides a kind of technology for assessing Mission Objective complexity based on Distributed Calculation The task of break-through splits to multiple proxy servers and separately completes, and compensates for the deficiency of windows standalone versions quantization, provides more Efficiently, quantized result is more intuitive, uses more convenient quantization outpost of the tax office scheme.
Following is apparatus of the present invention embodiment, can be used for executing the Mission Objective that the above-mentioned server 110 of the present invention executes Test method embodiment.For undisclosed details in apparatus of the present invention embodiment, the survey of Mission Objective of the present invention is please referred to Method for testing embodiment.
Figure 17 is a kind of block diagram of the test device of Mission Objective shown according to an exemplary embodiment, the Mission Objective Test device can be used in the server 110 of implementation environment shown in Fig. 1, execute Fig. 3, Fig. 8, Fig. 9, Figure 11, Figure 13 it is any Shown in Mission Objective test method all or part of step.As shown in figure 17, which includes but not limited to:Task Creation module 1710, task split module 1720, task allocating module 1730 and result Fusion Module 1740.
Task creation module 1710 is created for the running configuration data according to acquired Mission Objective to be tested to institute State the quantification tasks that Mission Objective carries out difficulty assessment;
Task splits module 1720 and obtains multiple monomer tasks for being split to the quantification tasks;
Task allocating module 1730 takes for distributing multiple monomer tasks to the multiple agencies being in idle condition Business device triggers the proxy server and runs the monomer task;
As a result Fusion Module 1740, for running the operation knot that the monomer task generates according to the proxy server Fruit merges the corresponding operation result of multiple monomer tasks, obtains the difficulty test result of the Mission Objective.
The function of modules and the realization process of effect specifically refer to the test side of above-mentioned Mission Objective in above-mentioned apparatus The realization process of step is corresponded in method, details are not described herein.
Task creation module 1710 such as can be some physical arrangement wired or wireless network interface 250 in Fig. 2.
It can also be function mould that task, which splits module 1720, task allocating module 1730 and result Fusion Module 1740, Block, the correspondence step in test method for executing above-mentioned Mission Objective.It is appreciated that these modules can by hardware, Software, or a combination of both realize.When realizing in hardware, these modules may be embodied as one or more hardware moulds Block, such as one or more application-specific integrated circuits.When being realized with software mode, these modules may be embodied as at one or more The one or more computer programs executed on a processor, such as it is stored in storage performed by the central processing unit 222 of Fig. 2 Program in device 232.
Optionally, as shown in figure 18, the task creation module 1710 includes:
Receiving unit 1711 is configured, the running configuration data of the Mission Objective to be tested for receiving the upload of webpage terminal;
Task creation unit 1712, for when receiving the running configuration data, triggering to be created to the game times Business carries out the quantification tasks of difficulty assessment.
Optionally, the task fractionation module 1720 includes:
Task split cells, the number of run for being indicated according to the quantification tasks, by the quantification tasks according to institute It states number of run to be split, obtains quantity multiple monomer tasks identical with the number of run.
Optionally, the task allocating module 1730 includes:
Screening server unit, for filtering out the proxy server being in idle condition;
Task allocation unit is distributed for the calculation procedure number according to the proxy server for the proxy server Quantity monomer task identical with its calculation procedure number triggers the proxy server and runs the monomer task.
Optionally, described device further includes:
Reallocation module runs the quantification tasks for waiting for the proxy server redistributed and be in idle condition In unappropriated monomer task.
Optionally, described device further includes:
Task is inserted into module, for the quantification tasks to be inserted into established duty cycle queue;
Sequentially execution module, for according to the task execution sequence in the duty cycle queue, poll to execute described appoint Being recorded in business round-robin queue for task.
Optionally, the above results Fusion Module 1740 includes:
Proportion computing unit, for according to the corresponding operation result of each monomer task, counting shared by each operation result Proportion obtains the difficulty test result of the Mission Objective.
Optionally, described device further includes:
Request receiving module, for receiving the inquiry request to specifying Mission Objective or specified quantification tasks to be inquired;
Result queries module returns and the querying condition for the querying condition entrained by the inquiry request Corresponding query result.
Optionally, the present invention also provides a kind of electronic equipment, which can be used for the clothes of implementation environment shown in Fig. 1 Be engaged in device 110 in, execute Fig. 3, Fig. 8, Fig. 9, Figure 11, Figure 13 it is any shown in Mission Objective test method it is all or part of Step.Described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as executing the test method of the Mission Objective described in the above exemplary embodiments.
The processor of electronic equipment executes the concrete mode of operation in the survey in relation to the Mission Objective in the embodiment Detailed description is performed in the embodiment of method for testing, and explanation will be not set forth in detail herein.
In the exemplary embodiment, a kind of storage medium is additionally provided, which is computer readable storage medium, Such as can be the provisional and non-transitorycomputer readable storage medium for including instruction.The storage medium is stored with computer Program, the computer program can be executed by the central processing unit 222 of server 200 to complete the test side of above-mentioned Mission Objective Method.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the accompanying drawings, this Field technology personnel can execute various modifications and change without departing from the scope.The scope of the present invention is only wanted by appended right It asks to limit.

Claims (15)

1. a kind of test method of Mission Objective, which is characterized in that including:
According to the running configuration data of acquired Mission Objective to be tested, creates and difficulty assessment is carried out to the Mission Objective Quantification tasks;
The quantification tasks are split, multiple monomer tasks are obtained;
Multiple monomer tasks are distributed to the multiple proxy servers being in idle condition, the proxy server fortune is triggered The row monomer task;
The operation result that the monomer task generates is run according to the proxy server, it is corresponding to multiple monomer tasks Operation result is merged, and the difficulty test result of the Mission Objective is obtained.
2. according to the method described in claim 1, it is characterized in that, the operation of Mission Objective to be tested acquired in the basis is matched Data are set, the quantification tasks for carrying out difficulty assessment to the Mission Objective are created, including:
Receive the running configuration data for the Mission Objective to be tested that webpage terminal uploads;
The reception of the running configuration data, triggering create the quantification tasks that difficulty assessment is carried out to the Mission Objective.
3. according to the method described in claim 1, it is characterized in that, described split the quantification tasks, acquisition is multiple Monomer task, including:
According to the number of run that the quantification tasks indicate, the quantification tasks are split according to the number of run, are obtained Obtain quantity multiple monomer tasks identical with the number of run.
4. according to the method described in claim 1, it is characterized in that, described distribute multiple monomer tasks in the free time Multiple proxy servers of state trigger the proxy server and run the monomer task, including:
Filter out the proxy server being in idle condition;
It is that the proxy server quantity allotted is identical as its calculation procedure number according to the calculation procedure number of the proxy server Monomer task, trigger the proxy server and run the monomer task.
5. according to the method described in claim 4, it is characterized in that, the calculation procedure number according to the proxy server, Monomer task identical with its calculation procedure number is distributed for the proxy server, the proxy server is triggered and runs the list After body task, the method further includes:
The proxy server being in idle condition is redistributed in waiting, runs unappropriated monomer task in the quantification tasks.
6. according to the method described in claim 1, it is characterized in that, the operation of Mission Objective to be tested acquired in the basis is matched Data are set, after creating the quantification tasks for carrying out difficulty assessment to the Mission Objective, the method includes:
The quantification tasks are inserted into established duty cycle queue;
According to the task execution sequence in the duty cycle queue, poll executes times recorded in the duty cycle queue Business.
7. according to the method described in claim 1, being given birth to it is characterized in that, running the monomer task according to the proxy server At operation result, the corresponding operation result of multiple monomer tasks is merged, the difficulty or ease of the Mission Objective are obtained Test result is spent, including:
According to the corresponding operation result of each monomer task, each operation result proportion is counted, the Mission Objective is obtained Difficulty test result.
8. according to the method described in claim 1, it is characterized in that, described run the monomer times according to the proxy server It is engaged in the operation result generated, the corresponding operation result of multiple monomer tasks is merged, the Mission Objective is obtained After difficulty test result, the method further includes:
Receive the inquiry request to specifying Mission Objective or specified quantification tasks to be inquired;
According to the querying condition entrained by the inquiry request, query result corresponding with the querying condition is returned.
9. a kind of test device of Mission Objective, which is characterized in that described device includes:
Task creation module creates and appoints to the game for the running configuration data according to acquired Mission Objective to be tested Business carries out the quantification tasks of difficulty assessment;
Task splits module and obtains multiple monomer tasks for being split to the quantification tasks;
Task allocating module is touched for distributing multiple monomer tasks to the multiple proxy servers being in idle condition It sends out proxy server described and runs the monomer task;
As a result Fusion Module, for running the operation result that the monomer task generates according to the proxy server, to multiple The corresponding operation result of the monomer task is merged, and the difficulty test result of the Mission Objective is obtained.
10. device according to claim 9, which is characterized in that the task creation module includes:
Receiving unit is configured, the running configuration data of the Mission Objective to be tested for receiving the upload of webpage terminal;
Task creation unit, for when receiving the running configuration data, it is difficult to Mission Objective progress that triggering is created The quantification tasks of Yi Du assessments.
11. device according to claim 9, which is characterized in that the task splits module and includes:
Task split cells, the number of run for being indicated according to the quantification tasks, by the quantification tasks according to the fortune Places number is split, and quantity multiple monomer tasks identical with the number of run are obtained.
12. device according to claim 9, which is characterized in that the task allocating module includes:
Screening server unit, for filtering out the proxy server being in idle condition;
Task allocation unit is the proxy server quantity allotted for the calculation procedure number according to the proxy server Monomer task identical with its calculation procedure number triggers the proxy server and runs the monomer task.
13. device according to claim 12, which is characterized in that described device further includes:
Reallocation module is run in the quantification tasks not for waiting for the proxy server redistributed and be in idle condition The monomer task of distribution.
14. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as the test method for the Mission Objective that perform claim requires described in 1-8 any one.
15. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program can be executed the test side for completing the Mission Objective described in claim 1-8 any one by processor Method.
CN201810438988.8A 2018-05-09 2018-05-09 The test method and device of Mission Objective, electronic equipment, storage medium Pending CN108654089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810438988.8A CN108654089A (en) 2018-05-09 2018-05-09 The test method and device of Mission Objective, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810438988.8A CN108654089A (en) 2018-05-09 2018-05-09 The test method and device of Mission Objective, electronic equipment, storage medium

Publications (1)

Publication Number Publication Date
CN108654089A true CN108654089A (en) 2018-10-16

Family

ID=63778316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810438988.8A Pending CN108654089A (en) 2018-05-09 2018-05-09 The test method and device of Mission Objective, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN108654089A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109603157A (en) * 2018-12-19 2019-04-12 北京像素软件科技股份有限公司 Task management method and device
CN109800160A (en) * 2018-12-27 2019-05-24 深圳云天励飞技术有限公司 Cluster server fault testing method and relevant apparatus in machine learning system
CN110339563A (en) * 2019-07-09 2019-10-18 腾讯科技(深圳)有限公司 The generation method and device of virtual objects, storage medium and electronic device
CN110737829A (en) * 2019-09-17 2020-01-31 Oppo广东移动通信有限公司 data processing method, device, equipment and storage medium
CN110928688A (en) * 2019-11-29 2020-03-27 电子科技大学 Distributed crawler task scheduling system and method
CN111481937A (en) * 2020-04-09 2020-08-04 网易(杭州)网络有限公司 Game task testing method and device, testing terminal and server
CN111530081A (en) * 2020-04-17 2020-08-14 成都数字天空科技有限公司 Game level design method and device, storage medium and electronic equipment
CN112398707A (en) * 2020-11-03 2021-02-23 平安普惠企业管理有限公司 Distributed automatic test management method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development
CN104579822A (en) * 2014-12-10 2015-04-29 华南理工大学 Automatic performance test system and method of mobile application based on Http protocol

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development
CN104579822A (en) * 2014-12-10 2015-04-29 华南理工大学 Automatic performance test system and method of mobile application based on Http protocol

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109603157A (en) * 2018-12-19 2019-04-12 北京像素软件科技股份有限公司 Task management method and device
CN109603157B (en) * 2018-12-19 2022-04-12 北京像素软件科技股份有限公司 Task management method and device
CN109800160A (en) * 2018-12-27 2019-05-24 深圳云天励飞技术有限公司 Cluster server fault testing method and relevant apparatus in machine learning system
CN110339563A (en) * 2019-07-09 2019-10-18 腾讯科技(深圳)有限公司 The generation method and device of virtual objects, storage medium and electronic device
CN110339563B (en) * 2019-07-09 2023-09-26 腾讯科技(深圳)有限公司 Virtual object generation method and device, storage medium and electronic device
CN110737829A (en) * 2019-09-17 2020-01-31 Oppo广东移动通信有限公司 data processing method, device, equipment and storage medium
CN110737829B (en) * 2019-09-17 2023-04-07 Oppo广东移动通信有限公司 Data processing method, device, equipment and storage medium
CN110928688A (en) * 2019-11-29 2020-03-27 电子科技大学 Distributed crawler task scheduling system and method
CN111481937A (en) * 2020-04-09 2020-08-04 网易(杭州)网络有限公司 Game task testing method and device, testing terminal and server
CN111481937B (en) * 2020-04-09 2023-04-07 网易(杭州)网络有限公司 Game task testing method and device, testing terminal and server
CN111530081A (en) * 2020-04-17 2020-08-14 成都数字天空科技有限公司 Game level design method and device, storage medium and electronic equipment
CN112398707A (en) * 2020-11-03 2021-02-23 平安普惠企业管理有限公司 Distributed automatic test management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108654089A (en) The test method and device of Mission Objective, electronic equipment, storage medium
Wang et al. Distributed machine learning with a serverless architecture
CN107239335B (en) Job scheduling system and method for distributed system
Nae et al. Dynamic resource provisioning in massively multiplayer online games
WO2019068002A1 (en) Rule-based autonomous database cloud service framework
Gu et al. Liquid: Intelligent resource estimation and network-efficient scheduling for deep learning jobs on distributed GPU clusters
CN104038540B (en) Method and system for automatically selecting application proxy server
CN112416585B (en) Deep learning-oriented GPU resource management and intelligent scheduling method
CN111381950A (en) Task scheduling method and system based on multiple copies for edge computing environment
CN110502323B (en) Real-time scheduling method for cloud computing tasks
CN107370796A (en) A kind of intelligent learning system based on Hyper TF
CN111209077A (en) Deep learning framework design method
CN110825522A (en) Spark parameter self-adaptive optimization method and system
CN114237869B (en) Ray double-layer scheduling method and device based on reinforcement learning and electronic equipment
Miao et al. Efficient flow-based scheduling for geo-distributed simulation tasks in collaborative edge and cloud environments
CN107273527A (en) A kind of Hadoop clusters and distributed system
CN115037665B (en) Equipment testing method and device
CN103164338A (en) Analogy method and analogy device of concurrent processing system
Bouterse et al. Performance analysis of the reserve capacity policy for dynamic VM allocation in a SaaS environment
CN109885384A (en) Task concurrency optimization method, apparatus, computer equipment and storage medium
CN115563160A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN114579275A (en) Distributed task pushing method and device, electronic equipment and storage medium
CN116339932A (en) Resource scheduling method, device and server
Surya et al. Dynamic resource allocation for distributed Tensorflow training in kubernetes cluster
CN111324444A (en) Cloud computing task scheduling 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181016

RJ01 Rejection of invention patent application after publication