CN110362474A - A kind of distributed game test method, system, device and storage medium - Google Patents
A kind of distributed game test method, system, device and storage medium Download PDFInfo
- Publication number
- CN110362474A CN110362474A CN201910510363.2A CN201910510363A CN110362474A CN 110362474 A CN110362474 A CN 110362474A CN 201910510363 A CN201910510363 A CN 201910510363A CN 110362474 A CN110362474 A CN 110362474A
- Authority
- CN
- China
- Prior art keywords
- test
- clump
- instruction
- machine
- primary 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
Abstract
The present invention relates to game the field of test technology, specifically a kind of distributed game test method, system, device and storage medium, which comprises test client obtains the test instruction of user, and the test instruction includes test assignment;Test instruction is sent to primary server;The primary server is instructed according to the test determines test Cong Jiji;The test instruction is sent to all test clump machines in the test clump machine collection;After test clump machine in the test clump machine collection receives the test instruction, dispatches the corresponding test machine people execution test assignment and reach concurrent test purpose.The present invention passes through the multiple test clump machines of distributed deployment, and the test clump machine for executing test assignment is determined by primary server, it controls the test clump machine and dispatches corresponding test machine people execution test assignment, improve the magnitude and testing efficiency of test assignment, better test effect is realized, human cost is reduced.
Description
Technical field
The present invention relates to game the field of test technology, in particular to a kind of distributed game test method, system, device and
Storage medium.
Background technique
Online game has the player of magnanimity while accessing to game server, and game server may be due to load
It is excessive and situations such as response slow, server delay machine occur, seriously affect the game experiencing of player.In order in the online half sole of game
The load capacity of game server is held, quickly positions the performance bottleneck of game server, the load testing of game server is one
A very important link.The load testing of game server refers to: simulating large-scale consumer feelings online simultaneously by tool
Whether shape, the performance indexes for testing game server are normal.By the available game server of load testing certain
Under the conditions of concurrent user's amount, runing time, the data volume etc. that can bear, to determine that the maximum that game server can bear is negative
Carry pressure.
For the system of client-server composition, server load test method is normally based on hypertext biography
Defeated agreement generates virtual client as much as possible central access server simultaneously by test equipment, to examine server super
Performance under load condition.Since the system load ability of separate unit test equipment is limited, it can not accomplish large-scale concurrent test,
The prior art generallys use more test equipments, and client-side program as much as possible, each client are run in every test equipment
End program is respectively connected to server, the behavior of normal users is simulated to construct a large amount of Virtual User, during collecting this
Performance data of server judges server function module with the presence or absence of performance bottleneck by analyzing these data.
More test equipments in the prior art need several testers to operate simultaneously, required cost of human resources
It is higher;And the multiple virtual clients generated in same test equipment are actually successively to access service according to certain timing
Device, only before and after interval is extremely short, achievees the effect that approximate while accessing, clothes are accessed while being not truly
Business device.
Summary of the invention
In view of the above problems in the prior art, the purpose of the present invention is to provide a kind of distributed game test method, be
System, device and storage medium, can be realized large-scale concurrent test, and save human cost.
To solve the above-mentioned problems, the present invention provides a kind of distributed game test method, comprising:
Test client obtains the test instruction of user, and the test instruction includes test assignment;The test is instructed
It is sent to primary server;
The primary server is instructed according to the test determines test Cong Jiji;Test instruction is sent to the survey
Try all test clump machines in clump machine collection;
After test clump machine in the test clump machine collection receives the test instruction, corresponding test machine is dispatched
People executes the test assignment and reaches concurrent test purpose.
Another aspect of the present invention provides a kind of distributed game test method, comprising:
The test instruction that test client is sent is received, the test instruction includes test assignment;
It is instructed according to the test and determines test Cong Jiji;
The test instruction is sent to all test clump machines in the test clump machine collection, so that the test Cong Jiji
Interior test clump machine is instructed according to the test, is dispatched the corresponding test machine people execution test assignment and is reached concurrent
Test purpose.
Another aspect of the present invention provides a kind of distributed game test macro, including test client, primary server and
The multiple test clump machines being connect with the primary server;
The test client is used to obtain the test instruction of user, and the test instruction includes test assignment;It will be described
Test instruction is sent to primary server;
The primary server, which is used to be instructed according to the test, determines test Cong Jiji;Test instruction is sent to institute
State all test clump machines in test clump machine collection;
The test clump machine is used for after receiving the test instruction, is dispatched corresponding test machine people and is executed institute
It states test assignment and reaches concurrent test purpose.
Another aspect of the present invention provides a kind of distributed game test device, comprising:
Command reception module is tested, for receiving the test instruction of test client transmission, the test instruction includes surveying
Trial business;
Clump machine collection determining module is tested, determines test Cong Jiji for instructing according to the test;
Instruction sending module is tested, all test clumps for being sent to the test instruction in the test clump machine collection
Machine is dispatched corresponding test machine people and is held so that the test clump machine in the test clump machine collection is instructed according to the test
The row test assignment reaches concurrent test purpose.
Another aspect of the present invention provides a kind of server, and the server includes processor and memory, the memory
In be stored at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, described at least one
Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize such as above-mentioned distributed game test side
Method.
Another aspect of the present invention provides a kind of computer readable storage medium, is stored at least one in the storage medium
Instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set
Or instruction set is loaded by processor and is executed to realize such as above-mentioned distributed game test method.
Distributed game test method of the invention and system pass through main clothes by the multiple test clump machines of distributed deployment
The test clump machine for the determining execution test assignment of device of being engaged in controls the corresponding test machine people of the test clump machine scheduling and executes survey
Trial business, automatically analyzes transmission test report after the completion of test, realizes the automation of entire test process.The present invention passes through control
It makes multiple test clump machines and dispatches corresponding test machine people execution test assignment completion concurrent test, survey can not only be improved
The magnitude and testing efficiency of trial business, additionally it is possible to realize better test effect, reduce the human cost of tester.In addition,
During the test, the quantity of test clump machine can also be increased by dynamic to improve the concurrent capability of entire test macro.
Detailed description of the invention
It, below will be to required in embodiment or description of the prior art in order to illustrate more clearly of technical solution of the present invention
The attached drawing used is briefly described.It should be evident that drawings in the following description are only some embodiments of the invention, it is right
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings
Its attached drawing.
Fig. 1 is implementation environment schematic diagram provided by one embodiment of the present invention;
Fig. 2 is the flow chart of distributed game test method provided by one embodiment of the present invention;
Fig. 3 is the flow chart for the distributed game test method that another embodiment of the present invention provides;
Fig. 4 is the flow chart for the distributed game test method that another embodiment of the present invention provides;
Fig. 5 is the flow chart for the distributed game test method that another embodiment of the present invention provides;
Fig. 6 is the structural schematic diagram of distributed game test device provided by one embodiment of the present invention;
Fig. 7 is the structural schematic diagram for the distributed game test device that another embodiment of the present invention provides;
Fig. 8 is the structural schematic diagram of server provided by one embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without making creative work it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Covering non-exclusive includes to be not necessarily limited to for example, containing the process, method of a series of steps or units, device, product or equipment
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Figure of description 1 is please referred to, it illustrates implementation environment schematic diagram provided by one embodiment of the present invention, such as Fig. 1
Shown, which can include at least test client 110, primary server 120, game server 130 and multiple tests
Clump machine 140.
The test client 110 may include that smart phone, desktop computer, tablet computer, laptop, number help
The entity device of the types such as reason, intelligent wearable device, also may include the software run in entity device, such as some clothes
Business quotient is supplied to the Webpage of user, or these service providers are supplied to the application of user.
The primary server 120 can be a server, be also possible to the server set consisted of several servers
Group or a cloud computing service center.Primary server 120 can by wireless or cable network respectively with test client
End 110 and test clump machine 140 establish communication connection.
The game server 130 equally can be a server, be also possible to the clothes consisted of several servers
Business device cluster or a cloud computing service center.Game server 130 can by wireless or cable network respectively with
Primary server 120 and test clump machine 140 establish communication connection.
Operation has game client in the test clump machine 140.Testing clump machine 140 may include smart phone, desktop
Brain, tablet computer, laptop, digital assistants, intelligent wearable device etc..Game client may include that service provider mentions
The Webpage for supplying user, also may include the application that these service providers are supplied to user.
In the embodiment of the present invention, the test machine people for executing test assignment, institute are provided in the game client
It states test machine people and refers to and can be controlled with simple command, realize automatically into game, be automatically performed some movements in gaming
Simulation role, it is opposite with true player.But for game server 130, test machine people and true player are
It is visible, it is test machine people which game server, which can not distinguish, which is true player, and game server can foundation
True process and test machine people interaction data.
In practical applications, multiple game clients, the test clump machine can have been run in the test clump machine 140
140 can be set a game server list, can initialize the game server list before test machine people starting
IP and the port of game services name, game server is arranged.If having multiple game garments in the game server list
Business device name, test machine people are connected to each game server in lists, that is to say, that the same test clump machine
The test machine people of 140 multiple game clients can connect different game servers.
Figure of description 2 is please referred to, it illustrates distributed game test methods provided by one embodiment of the present invention
Process.The method can be applied in implementation environment shown in Fig. 1.The method may include following steps:
S201: test client obtains the test instruction of user, and the test instruction includes test assignment.
S202: test instruction is sent to primary server by test client.
Correspondingly, the primary server receives the test instruction that the test client is sent.
S203: primary server is instructed according to the test determines test Cong Jiji.
S204: the test instruction is sent to all test clump machines in the test clump machine collection by primary server.
Correspondingly, the test clump machine in the test clump machine collection receives the test instruction that the primary server is sent.
S205: after the test clump machine in test clump machine collection receives the test instruction, corresponding test machine is dispatched
Device people executes the test assignment and reaches concurrent test purpose.
In conclusion distributed game test method of the invention determines the test for executing test assignment by primary server
Clump machine controls the test clump machine and dispatches corresponding test machine people execution test assignment, automatically analyzes after the completion of test
Test report is sent, the automation of entire test process is realized.The present invention is right therewith by controlling multiple test clump machines scheduling
The test machine people answered executes test assignment and completes concurrent test, can not only improve the magnitude and testing efficiency of test assignment,
It can also realize better test effect, reduce the human cost of tester.
Figure of description 3 is please referred to, it illustrates the distributed game test methods that another embodiment of the present invention provides
Process.The method can be applied in implementation environment shown in Fig. 1.The method may include following steps:
S301: test client obtains the test instruction of user, and the test instruction includes test assignment.
In the embodiment of the present invention, the test instruction is user's triggering for requesting the operation letter of progress game test
Number, test client is provided with the operational controls for starting test, and user clicks the operational controls and triggers test instruction.Institute
Stating test assignment may include the information such as multiple test cases, test prioritization, follower and installation kit, and the test instruction is also
It may include the multiple test machine people information for executing the test assignment.
In a specific embodiment, tester can input the web page address that primary server provides by browser
Open test client.The test client shows the testing and control page, is provided on the testing and control page for opening
Begin the operational controls tested, and user clicks the operational controls and triggers test instruction.The test client can also identify use
The test assignment that family is inputted by the testing and control page, alternatively, can also on the testing and control page of the test client
To be provided at least one test assignment template, the test client can also identify user from the testing and control page
The target detection task template selected in at least one test assignment template provided, as server stress test, server are negative
Test etc. is carried, and using the target detection task template as test assignment.
S302: test instruction is sent to primary server by test client.
Correspondingly, the primary server receives the test instruction that the test client is sent.
In a specific embodiment, when the test client identifies that user is defeated by the testing and control page
The mesh that the test assignment or user entered is selected from at least one test assignment template provided on the testing and control page
Mark test assignment template, and using the target detection task template as test assignment after, it is defeated that test client can detecte user
The operational order for the operational controls for starting test provided on the testing and control page entered, and can respond
The operational order sends the test instruction to primary server.
S303: primary server is instructed according to the test determines test Cong Jiji.
In the embodiment of the present invention, the major function of the primary server includes: the test case script for managing user and uploading
And test assignment, generate test case, carry out pressure pre-estimating, send test instruction to test clump machine, receive test data and
Generate test report etc..Wherein, test case be the one group of test input worked out for some special objective, execution condition and
Expected results, to test some Program path or to verify whether meet some particular demands.Pressure pre-estimating is by certain
Algorithm is estimated to execute the quantity of the test machine people of test assignment needs in advance, in test according to estimation results allocation for test
Robot avoids the wasting of resources.
In a possible embodiment, as shown in figure 4, the primary server is instructed according to the test determines test clump
Machine collection may comprise steps of:
S401: the primary server determines the multiple test machine people for executing the test assignment according to the test instruction
Information.
In a possible embodiment, the primary server is instructed according to the test determines the execution test assignment
Multiple test machine people information may include: the primary server obtain it is described test instruction in test machine people's information,
Using the test machine people information as the test machine people's information for executing the test assignment;Alternatively, the primary server root
Multiple test machine people are distributed according to the test assignment, using the test machine people information as the survey for executing the test assignment
Try engine people's information.
In a specific embodiment, clump can also be provided and tested on the testing and control page of the test client
The corresponding test machine people information of machine, the test client can also identify the survey for needing to be implemented test assignment of user's selection
Try engine people's information.When the execution test in the test assignment that the server receives including tester's selection
It, can be using the test machine people information as the test machine for executing the test assignment when test machine people's information of task
People's information.When do not include in the test assignment that the server receives execute the test assignment test machine people letter
When breath, the quantity for executing the test machine people of test assignment needs can be estimated in advance by certain algorithm, and according to pre-
Estimate multiple test machine people that result distribution executes the test assignment.
S402: the primary server determines test corresponding with the test machine people according to the test machine people information
Clump machine, and generate test Cong Jiji.
In the embodiment of the present invention, the test machine people is set in the game client run on the test clump machine,
At least one test machine people can be run on each test clump machine.Illustratively, it can be corresponded in the primary server
It is stored with the mark and test machine people mark of the test clump machine connecting with the primary server, the primary server, which determines, to be executed
After multiple test machine people information of the test assignment, that is, it can determine corresponding with the execution test machine people of test assignment
Test clump machine.
In another possible embodiment, the primary server is instructed according to the test determines that test clump machine collection may be used also
To include: the primary server according to the determining multiple test clump machines for executing the test assignment of test instruction, and generate
Test Cong Jiji.Specifically, test clump machine information, the survey can also be provided on the testing and control page of the test client
Examination client can also identify the test clump machine information for needing to be implemented test assignment of user's selection.When the server receives
The test assignment in when including the test clump machine information of the execution test assignment of tester's selection, can will be described
Clump machine is tested as the test clump machine for executing the test assignment.
S304: the test instruction is sent to all test clump machines in the test clump machine collection by the primary server.
Correspondingly, the test clump machine in the test clump machine collection receives the test instruction that the primary server is sent.
In a possible embodiment, test instruction is sent in the test clump machine collection by the primary server
All test clump machines include:
The primary server detects the use state of all test clump machines in the test clump machine collection;
When all test clump machines in the test clump machine collection are in idle state, test instruction is sent to
All test clump machines in the test clump machine collection.
In practical applications, the test that the primary server receives test client transmission instructs and determines test
After clump machine collection, each use state for testing clump machine can be detected first, realize the management to test queue.For being in
The test clump machine of connection status not can be carried out test operation, the test that can save user refers to if being in busy condition
It enables, gets off to execute corresponding test operation again until the test clump machine free time.
S305: after the test clump machine in the test clump machine collection receives the test instruction, corresponding survey is dispatched
Try engine people executes the test assignment and reaches concurrent test purpose.
In the embodiment of the present invention, after the test clump machine in the test clump machine collection receives the test instruction, survey is executed
Examination order starting test machine people starts to test.The parallel implementation of test cases of test machine people on each test clump machine, with mould
The scene of imitative multi-user online object for appreciation game simultaneously.Specifically, it can star test machine people by executing robot starting script
Game server is connected, game test is carried out.Test machine people during the test, first establishes connection with game server, and
Game server is logged in, then analog subscriber operation is interacted with game server, completes the logic function of game.Test machine
Device people can send and receive the agreement of game server by way of game scripts, pass through certain organizational form (state
The modes such as machine, behavior tree, script process control) player's behavior is simulated, according to the behavior of user preset realize test case.
In a possible embodiment, since the test machine people quantity may have error, described in scheduling
When test machine people executes test assignment, it may not reach test target value expected from objective function, at this time main service
Device can continue to add test machine people until objective function reaches expected test target value.For game function, with
Participation number increase theoretically that there are performance boundaries that a maximum can be set in order to guarantee the high feasibility of system
Length of testing speech (such as each function full test when it is 2 hours a length of), when tested between the overtime full test duration and
When expected test target value has not been reached yet, the function (it is true to be likely to be according to report discriminatory analysis reason by tester
Real performance very well or program restricted operating frequency when realizing function, lead to that test target value can not be reached).
S306: the primary server was tested to game server inquiry request, the inquiry request for obtaining
The operation information of journey game server.
Correspondingly, the game server receives the inquiry request that the primary server is sent.
In the embodiment of the present invention, game server refers to the server of running game function logic, tests in test process
Robot connection logs on to game server and executes various actions by test case.The operation information of the game server
It may include: process central processing unit (Central Processing Unit, CPU) utilization rate, memory usage, network flow
Amount, utilization rate of disk input/output (Input/Output, IO) etc..Above operation information is illustrative explanation, this
Inventive embodiments are not particularly limited operation information.The primary server can be according to the preset period to the game services
Device sends inquiry request, inquiry request can also be sent when reaching expected test target or at the end of time-out, to obtain
State the operation information of game server.
S307: the game server sends the operation information in test process to the primary server.
Correspondingly, the primary server receives the operation information in the test process of the game server.
In the embodiment of the present invention, during the test, the game server monitors the operation information of itself, and will test
The operation information of process game server is sent to the primary server.The game server can receive the master
The operation information of test process game server is returned when the inquiry request of server.
In a possible embodiment, the game server can also be according to the preset period by the operation information
It is sent to the primary server, for example, the operation information of transmission in the game server every ten minutes, and reach expected
An operation information is sent when test target or at the end of time-out.The game server can also test mesh reaching expected
An operation information is sent when mark or at the end of time-out.
S308: the primary server analyzes the operation information and generates test report.
In the embodiment of the present invention, after the primary server receives the operation information of the game server,
By the operation information persistent storage into database, and generate pressure test report.
In a possible embodiment, the operation information also can indicate that the operating status or right of game server
In the feedback of condition execution instruction, the operation information may include the information under game server normal operation, may be used also
To include that game server information under abnormal conditions occurs.Wherein, game server there is the information under abnormal conditions can be with
Including exception to be treated, it can also include being not required to exception to be processed, not need to handle when the primary server is got
Exception when, can ignore the exception to continue game test, when the primary server get it is to be treated different
Chang Shi can be handled the exception according to preset abnormality processing scheme, and further determine whether to need to terminate to work as
Preceding game test.For example, ignoring the exception when the primary server gets the exception not occurred and continuing
Game test, exception that is abnormal, being not required to exception to be processed and do not occurred to be treated mentioned above can basis
Actual needs is designed.
S309: the test report is sent to the test client by the primary server.
Correspondingly, the test client receives and shows the test report that the primary server is sent.
In the embodiment of the present invention, after test, tester can be notified by immediate communication tool, and push survey
Examination report is to test client.The test client can be shown after receiving the test report at test result interface
Show, convenient for tester's analysis, orientation problem.
In conclusion distributed game test method of the invention and system pass through the multiple test clump machines of distributed deployment,
And the test clump machine for executing test assignment is determined by primary server, it controls the test clump machine and dispatches corresponding test machine
Device people executes test assignment, automatically analyzes transmission test report after the completion of test, realizes the automation of entire test process.This
Invention completes concurrent test by controlling the corresponding test machine people execution test assignment of multiple test clump machines scheduling, not only
It can be improved the magnitude and testing efficiency of test assignment, additionally it is possible to realize better test effect, reduce the manpower of tester
Cost.
In addition, during the test, the quantity of test clump machine can also be increased by dynamic to improve entire test macro
Concurrent capability.
In addition, the present invention also by tester it is non-selected execute test assignment test machine people when, according to test
Task estimation executes the quantity for the test machine people that test assignment needs, and executes the test assignment according to estimation results distribution
Multiple test machine people, help to improve game test efficiency, save the testing time.
One embodiment of the invention also provides a kind of distributed game test macro, including test client, primary server
And the multiple test clump machines being connect with the primary server;
The test client is used to obtain the test instruction of user, and the test instruction includes test assignment;It will be described
Test instruction is sent to primary server;
The primary server, which is used to be instructed according to the test, determines test Cong Jiji;Test instruction is sent to institute
State all test clump machines in test clump machine collection;
The test clump machine is used for after receiving the test instruction, is dispatched corresponding test machine people and is executed institute
It states test assignment and reaches concurrent test purpose.
In a possible embodiment, the system can also include game server;
The primary server is also used to game server inquiry request, and the inquiry request was tested for obtaining
The operation information of journey game server;
The game server is used to send the operation information in test process to the primary server;
The primary server is also used to analyze the operation information and generates test report;
The primary server is also used to the test report being sent to the test client.
Figure of description 5 is please referred to, it illustrates the distributed game test methods that another embodiment of the present invention provides
Process.The method can be applied in primary server.The method may include following steps:
S501: the test instruction that test client is sent is received, the test instruction includes test assignment.
S502: it is instructed according to the test and determines test Cong Jiji.
In a possible embodiment, described instructed according to the test determines that test Cong Jiji includes:
The multiple test machine people information for executing the test assignment are determined according to the test instruction;
Test clump machine corresponding with the test machine people is determined according to the test machine people information, and generates test clump
Machine collection.
S503: the test instruction is sent to all test clump machines in the test clump machine collection, so that the test
Test clump machine in clump machine collection is instructed according to the test, is dispatched the corresponding test machine people execution test assignment and is reached
To concurrent test purpose.
In a possible embodiment, all surveys test instruction being sent in the test clump machine collection
Trying clump machine includes:
Detect the use state of all test clump machines in the test clump machine collection;
When all test clump machines in the test clump machine collection are in idle state, test instruction is sent to
All test clump machines in the test clump machine collection.
In a possible embodiment, the method can also include:
To game server inquiry request, the inquiry request is used to obtain the fortune of test process game server
Row information;
Obtain the operation information in the test process that the game server returns;
It analyzes the operation information and generates test report;
The test report is sent to the test client.
Figure of description 6 is please referred to, it illustrates distributed game test devices 600 provided by one embodiment of the present invention
Structural schematic diagram, described device 600 may include:
Command reception module 610 is tested, for receiving the test instruction of test client transmission, the test instruction includes
Test assignment;
Clump machine collection determining module 620 is tested, determines test Cong Jiji for instructing according to the test;
Instruction sending module 630 is tested, all surveys for being sent to the test instruction in the test clump machine collection
Clump machine is tried, so that the test clump machine in the test clump machine collection is instructed according to the test, dispatches corresponding test machine
People executes the test assignment and reaches concurrent test purpose.
In a possible embodiment, described device 600 can also include:
Operation information enquiry module 640, for game server inquiry request, the inquiry request to be for obtaining
The operation information of test process game server.
Operation information obtains module 650, for obtaining the operation information in the test process that the game server returns.
Operation information analysis module 660, for analyzing the operation information and generating test report.
Test report sending module 670, for the test report to be sent to the test client.
In a possible embodiment, as shown in fig. 7, the test instruction sending module 630 may include:
Use state detection unit 631, for detecting the use state of all test clump machines in the test clump machine collection;
Instruction sending unit 632 is tested, for being in idle shape when all test clump machines in the test clump machine collection
When state, the test instruction is sent to all test clump machines in the test clump machine collection.
It should be noted that device provided by the above embodiment, when realizing its function, only with above-mentioned each functional module
It divides and carries out for example, can according to need in practical application and be completed by different functional modules above-mentioned function distribution,
The internal structure of equipment is divided into different functional modules, to complete all or part of the functions described above.In addition,
Apparatus and method embodiment provided by the above embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, this
In repeat no more.
One embodiment of the invention also provides a kind of server, and the distributed game test device is arranged in the service
In device, the server includes processor and memory, and at least one instruction, at least a Duan Cheng are stored in the memory
Sequence, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction set are by described
Processor is loaded and is executed to realize the distributed game test method as described in above method embodiment.
Memory can be used for storing software program and module, and processor is stored in the software program of memory by operation
And module, thereby executing various function application and data processing.Memory can mainly include storing program area and storage number
According to area, wherein storing program area can application program needed for storage program area, function etc.;Storage data area can store basis
The equipment uses created data etc..In addition, memory may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory can also include Memory Controller, to provide access of the processor to memory.
In a specific embodiment, referring to FIG. 8, it illustrates the structures of server provided in an embodiment of the present invention
Schematic diagram.The distributed game test method for the primary server side that the server is used to implement to provide in above-described embodiment.Specifically
For, the server architecture may include above-mentioned distributed game test device.The server 800 can because configuration or performance not
Bigger difference is generated together, may include one or more central processing units (Central Processing
Units, CPU) 810 (for example, one or more processors) and memory 830, one or more storages apply journey
The storage medium 820 (such as one or more mass memory units) of sequence 823 or data 822.Wherein, 830 He of memory
Storage medium 820 can be of short duration storage or persistent storage.The program for being stored in storage medium 820 may include one or one
With upper module, each module may include to the series of instructions operation in server.Further, central processing unit 810
It can be set to communicate with storage medium 820, the series of instructions operation in storage medium 820 executed on server 800.Clothes
Be engaged in device 800 can also include one or more power supplys 860, one or more wired or wireless network interfaces 850, one
A or more than one input/output interface 840, and/or, one or more operating systems 821, such as Windows
ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
One embodiment of the invention additionally provides a kind of computer readable storage medium, be stored in the storage medium to
Few an instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set
Or instruction set can be loaded and be executed by the processor of server to complete the distribution of primary server side in above method embodiment
Formula game test method.
Optionally, in embodiments of the present invention, above-mentioned storage medium can be located at multiple network services of computer network
At least one network server in device.Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: U
Disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory),
The various media that can store program code such as mobile hard disk, magnetic or disk.
It should be understood that embodiments of the present invention sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments.
And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One
In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and
Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company
Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or
It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For terminal and server embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place
Illustrate referring to the part of embodiment of the method.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of distributed game test method characterized by comprising
Test client obtains the test instruction of user, and the test instruction includes test assignment;The test is instructed and is sent
To primary server;
The primary server is instructed according to the test determines test Cong Jiji;Test instruction is sent to the test clump
All test clump machines in machine collection;
After test clump machine in the test clump machine collection receives the test instruction, dispatches corresponding test machine people and hold
The row test assignment reaches concurrent test purpose.
2. the method according to claim 1, wherein further include:
The primary server is to game server inquiry request, and the inquiry request is for obtaining game garment in test process
The operation information of business device;
The game server sends the operation information in test process to the primary server;
The primary server analyzes the operation information and generates test report;
The test report is sent to the test client by the primary server.
3. method according to claim 1 or 2, which is characterized in that the primary server is instructed according to the test and determined
Testing Cong Jiji includes:
The primary server determines the multiple test machine people information for executing the test assignment according to the test instruction;
The primary server determines test clump machine corresponding with the test machine people according to the test machine people information, and raw
At test Cong Jiji.
4. according to the method described in claim 3, it is characterized in that, the primary server is instructed according to the test determines execution
Multiple test machine people information of the test assignment include:
The primary server obtains test machine people's information in the test instruction, using the test machine people information as holding
Test machine people's information of the row test assignment;
Alternatively,
The primary server distributes multiple test machine people according to the test assignment, using the test machine people information as holding
Test machine people's information of the row test assignment.
5. method according to claim 1 or 2, which is characterized in that described that test instruction is sent to the test
Clump machine collection in all test clump machines include:
The primary server detects the use state of all test clump machines in the test clump machine collection;
When all test clump machines in the test clump machine collection are in idle state, test instruction is sent to described
Test all test clump machines in clump machine collection.
6. a kind of distributed game test method characterized by comprising
The test instruction that test client is sent is received, the test instruction includes test assignment;
It is instructed according to the test and determines test Cong Jiji;
The test instruction is sent to all test clump machines in the test clump machine collection, so that in the test clump machine collection
Test clump machine is instructed according to the test, is dispatched the corresponding test machine people execution test assignment and is reached concurrent test
Purpose.
7. according to the method described in claim 6, it is characterized by further comprising:
To game server inquiry request, the inquiry request is used to obtain the operation letter of test process game server
Breath;
Obtain the operation information in the test process that the game server returns;
It analyzes the operation information and generates test report;
The test report is sent to the test client.
8. a kind of distributed game test macro, which is characterized in that including test client, primary server and with the main clothes
Multiple test clump machines of business device connection;
The test client is used to obtain the test instruction of user, and the test instruction includes test assignment;By the test
Instruction is sent to primary server;
The primary server, which is used to be instructed according to the test, determines test Cong Jiji;Test instruction is sent to the survey
Try all test clump machines in clump machine collection;
The test clump machine is used for after receiving the test instruction, is dispatched corresponding test machine people and is executed the survey
Trial business reaches concurrent test purpose.
9. a kind of distributed game test device characterized by comprising
Command reception module is tested, for receiving the test instruction of test client transmission, the test instruction includes that test is appointed
Business;
Clump machine collection determining module is tested, determines test Cong Jiji for instructing according to the test;
Instruction sending module is tested, all test clump machines for being sent to the test instruction in the test clump machine collection,
So that the test clump machine in the test clump machine collection is instructed according to the test, dispatches corresponding test machine people and execute institute
It states test assignment and reaches concurrent test purpose.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium
A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction
Collect as processor loads and executes to realize the distributed game test method as described in claim 1-7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910510363.2A CN110362474A (en) | 2019-06-13 | 2019-06-13 | A kind of distributed game test method, system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910510363.2A CN110362474A (en) | 2019-06-13 | 2019-06-13 | A kind of distributed game test method, system, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362474A true CN110362474A (en) | 2019-10-22 |
Family
ID=68216194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910510363.2A Pending CN110362474A (en) | 2019-06-13 | 2019-06-13 | A kind of distributed game test method, system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362474A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143223A (en) * | 2019-12-30 | 2020-05-12 | 珠海金山网络游戏科技有限公司 | Server pressure testing method and device |
CN111198790A (en) * | 2019-12-23 | 2020-05-26 | 深圳市优必选科技股份有限公司 | Robot testing method, robot testing device and robot |
CN111338865A (en) * | 2020-02-19 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Test method, test device and computer readable storage medium |
CN111400184A (en) * | 2020-03-17 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Game testing method, device, system, equipment and cloud platform |
CN111651349A (en) * | 2020-05-26 | 2020-09-11 | 泰康保险集团股份有限公司 | Test method and device |
CN113704038A (en) * | 2021-09-03 | 2021-11-26 | 广州因陀罗软件有限公司 | Automatic game server pressure measurement method and system |
CN113835994A (en) * | 2020-06-24 | 2021-12-24 | 上海莉莉丝科技股份有限公司 | Golang language-based server stress testing system, method and computer-readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150379261A1 (en) * | 2008-08-20 | 2015-12-31 | Wherepro, Llc | Data packet generator for generating passcodes |
CN108959000A (en) * | 2018-06-20 | 2018-12-07 | 深圳市腾讯网络信息技术有限公司 | A kind of server stress test method, system and terminal |
CN109359003A (en) * | 2018-10-29 | 2019-02-19 | 网易(杭州)网络有限公司 | Game server method for testing pressure, device and equipment |
CN109698771A (en) * | 2018-12-07 | 2019-04-30 | 网易(杭州)网络有限公司 | Game server method for testing pressure and device |
-
2019
- 2019-06-13 CN CN201910510363.2A patent/CN110362474A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150379261A1 (en) * | 2008-08-20 | 2015-12-31 | Wherepro, Llc | Data packet generator for generating passcodes |
CN108959000A (en) * | 2018-06-20 | 2018-12-07 | 深圳市腾讯网络信息技术有限公司 | A kind of server stress test method, system and terminal |
CN109359003A (en) * | 2018-10-29 | 2019-02-19 | 网易(杭州)网络有限公司 | Game server method for testing pressure, device and equipment |
CN109698771A (en) * | 2018-12-07 | 2019-04-30 | 网易(杭州)网络有限公司 | Game server method for testing pressure and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111198790A (en) * | 2019-12-23 | 2020-05-26 | 深圳市优必选科技股份有限公司 | Robot testing method, robot testing device and robot |
CN111198790B (en) * | 2019-12-23 | 2023-09-08 | 深圳市优必选科技股份有限公司 | Robot testing method, robot testing device and robot |
CN111143223A (en) * | 2019-12-30 | 2020-05-12 | 珠海金山网络游戏科技有限公司 | Server pressure testing method and device |
CN111338865A (en) * | 2020-02-19 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Test method, test device and computer readable storage medium |
CN111400184A (en) * | 2020-03-17 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Game testing method, device, system, equipment and cloud platform |
CN111651349A (en) * | 2020-05-26 | 2020-09-11 | 泰康保险集团股份有限公司 | Test method and device |
CN111651349B (en) * | 2020-05-26 | 2023-07-14 | 泰康保险集团股份有限公司 | Test method and device |
CN113835994A (en) * | 2020-06-24 | 2021-12-24 | 上海莉莉丝科技股份有限公司 | Golang language-based server stress testing system, method and computer-readable storage medium |
CN113704038A (en) * | 2021-09-03 | 2021-11-26 | 广州因陀罗软件有限公司 | Automatic game server pressure measurement method and system |
CN113704038B (en) * | 2021-09-03 | 2024-01-23 | 广州因陀罗软件有限公司 | Automatic game server pressure measurement method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110362474A (en) | A kind of distributed game test method, system, device and storage medium | |
Yigitbasi et al. | C-meter: A framework for performance analysis of computing clouds | |
CN108256118B (en) | Data processing method, device, system, computing equipment and storage medium | |
EP2902901A1 (en) | Development, compiling and debugging method and device for application | |
Gao et al. | Mobile Testing-as-a-Service (MTaaS)--Infrastructures, Issues, Solutions and Needs | |
CN106528426B (en) | A kind of distributed computing system of test index | |
CN105988688A (en) | Screen capture method and apparatus | |
CN102868573B (en) | Method and device for Web service load cloud test | |
CN110362418A (en) | A kind of abnormal data restoration methods, device, server and storage medium | |
CN109614227A (en) | Task resource concocting method, device, electronic equipment and computer-readable medium | |
Ribas et al. | On modelling virtual machine consolidation to pseudo-Boolean constraints | |
CN113342515A (en) | Method, device and equipment for selecting server-free computing resources and storage medium | |
CN103457784A (en) | Performance testing method and device | |
CN116700920A (en) | Cloud primary hybrid deployment cluster resource scheduling method and device | |
Weinberg et al. | Symbiotic space-sharing on sdsc’s datastar system | |
Li et al. | Application research of Docker based on Mesos application container cluster | |
Reynolds et al. | Provisioning norm: An asymmetric quality measure for saas resource allocation | |
Corradi et al. | Elastic provisioning of virtual Hadoop clusters in OpenStack-based clouds | |
US9479579B2 (en) | Grouping processing method and system | |
Liu et al. | A concurrent approach for improving the efficiency of Android CTS testing | |
CN113760518A (en) | Information processing method, device and storage medium | |
CN111008116A (en) | Timing snapshot characteristic testing method and system | |
Peterson | Decentralized scheduling for many-task applications in the hybrid cloud | |
Voievodin et al. | Approach to Evaluate Scheduling Strategies in Container Orchestration Systems | |
CN109375987A (en) | A kind of method and system of virtual machine selection physical machine |
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: 20191022 |
|
RJ01 | Rejection of invention patent application after publication |