CN109522199A - Game region method for testing pressure, device, system and storage medium - Google Patents
Game region method for testing pressure, device, system and storage medium Download PDFInfo
- Publication number
- CN109522199A CN109522199A CN201811460013.1A CN201811460013A CN109522199A CN 109522199 A CN109522199 A CN 109522199A CN 201811460013 A CN201811460013 A CN 201811460013A CN 109522199 A CN109522199 A CN 109522199A
- Authority
- CN
- China
- Prior art keywords
- longitude
- latitude
- list
- test
- machine people
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3419—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3414—Workload generation, e.g. scripts, playback
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
Abstract
The present invention provides a kind of game region method for testing pressure, device, system and storage medium, this method, comprising: determines the territorial scope of test;According to pre-stored location information, corresponding longitude and latitude list is generated according to the territorial scope;According to the longitude and latitude list, longitude and latitude is distributed for test machine people;The data communication of the test machine people and server are established, the pressure test to the server is executed.To realize according to pre-stored static immobilization information, longitude and latitude directly is distributed for test machine people, executes the game region pressure test to server, property that the operation is simple and flexible is high, and broad covered area improves pressure test efficiency.
Description
Technical field
The present invention relates to game technical field more particularly to a kind of game region method for testing pressure, device, system and
Storage medium.
Background technique
With the development of electronic entertainment industry, online game is liked by more and more players, and such game generally chases after
Seek the online playing method of more people.For hot game, in peak period, it is same there may be hundreds of thousands of or even millions of clients
When access server, to cause huge pressure to server.When game is related to the playing method of Regional Distribution, in testing service
Also need to consider simultaneously the Regional Distribution of client when device pressure.
Currently, most online game is all the locator that is had according to client itself to obtain latitude and longitude information,
Therefore, tester needs the client by the way that different location informations are arranged to simulate when testing game relevant to region
Region playing method, or game login interface is rewritten to simulate different regions by tool.
But this test method, operating process is complicated, is limited to the quantity of client and test interface, and it is accurate to be difficult
The pressure condition of server when simulation goes out multiple players.Also, during the test, change the operating process of regional information
Cumbersome, poor universality is difficult a wide range of interior regional information of traversal, to influence the reliability of test result.
Summary of the invention
The present invention provides a kind of game region method for testing pressure, device, system and storage medium, to realize according to pre-
The static immobilization information of storage directly distributes longitude and latitude for test machine people, executes and surveys to the game region pressure of server
Examination, property that the operation is simple and flexible is high, improves pressure test efficiency.
In a first aspect, the embodiment of the present invention provides a kind of game region method for testing pressure, comprising:
Determine the territorial scope of test;
According to pre-stored location information, corresponding longitude and latitude list is generated according to the territorial scope;
According to the longitude and latitude list, longitude and latitude is distributed for test machine people;
The data communication of the test machine people and server are established, the pressure test to the server is executed.
Optionally, the territorial scope includes: world-class territorial scope, national territorial scope, provincial territorial scope, city
City-level territorial scope, street-level territorial scope.
Optionally, according to pre-stored location information, according to the territorial scope generate corresponding longitude and latitude list it
Before, further includes:
The location information in the whole world is collected by spiders mode, and the location information is stored as preset storage lattice
Formula;
The location information stored according to preset storage format is subjected to classification processing, obtain respectively according to country,
Province, city, street classification location information.
Optionally, the location information includes: affiliated country, province, city, street and longitude and latitude;It is described preset
Storage format is the format of key-value.
Optionally, according to pre-stored location information, corresponding longitude and latitude list, packet are generated according to the territorial scope
It includes:
According to the territorial scope, the quantity of All Countries, the quantity in the province chosen in every country, each province are determined
The quantity in the street chosen in the quantity in city chosen in part, each city, and the longitude and latitude in all streets chosen;
According to the longitude and latitude in all streets of selection, corresponding longitude and latitude list is generated.
Optionally, according to the longitude and latitude list, longitude and latitude is distributed for test machine people, comprising:
The quantity that test machine people is arranged is more than or equal to the total quantity of longitude and latitude in the longitude and latitude list, and determines
The number of test machine people is k;
Assuming that the total quantity of longitude and latitude is N in the longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as
List [s-1], s=1,2,3 ..., N;The longitude and latitude for being then the test machine people distribution that number is k is list [k%N];Its
In, % is the operator that rems.
Optionally, according to the longitude and latitude list, longitude and latitude is distributed for test machine people, comprising:
The number for determining test machine people is k;
Assuming that the total quantity of longitude and latitude is N in the longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as
List [s-1], s=1,2,3 ..., N;The longitude and latitude for the test machine people traversal that then number is k is list [(k+M*n) %N];
Wherein, % is the operator that rems, and * is multiplication operator, n=0,1,2 ..., T;T is the smallest natural number not less than N/M, M
To migrate step-length.
Second aspect, the embodiment of the present invention provide a kind of game region pressure test device, comprising:
Determining module, for determining the territorial scope of test;
Processing module, for generating corresponding longitude and latitude according to the territorial scope and arranging according to pre-stored location information
Table;
Distribution module, for distributing longitude and latitude for test machine people according to the longitude and latitude list;
Test module is executed for establishing the data communication of the test machine people and server to the server
Pressure test.
Optionally, the territorial scope includes: world-class territorial scope, national territorial scope, provincial territorial scope, city
City-level territorial scope, street-level territorial scope.
Optionally, further includes:
Module is obtained, for generating corresponding longitude and latitude according to the territorial scope according to pre-stored location information
Before list, the location information in the whole world is collected by spiders mode, and the location information is stored as preset storage
Format;
The location information stored according to preset storage format is subjected to classification processing, obtain respectively according to country,
Province, city, street classification location information.
Optionally, the location information includes: affiliated country, province, city, street and longitude and latitude;It is described preset
Storage format is the format of key-value.
Optionally, the processing module, is specifically used for:
According to the territorial scope, the quantity of All Countries, the quantity in the province chosen in every country, each province are determined
The quantity in the street chosen in the quantity in city chosen in part, each city, and the longitude and latitude in all streets chosen;
According to the longitude and latitude in all streets of selection, corresponding longitude and latitude list is generated.
Optionally, the distribution module, is specifically used for:
The quantity that test machine people is arranged is more than or equal to the total quantity of longitude and latitude in the longitude and latitude list, and determines
The number of test machine people is k;
Assuming that the total quantity of longitude and latitude is N in the longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as
List [s-1], s=1,2,3 ..., N;The longitude and latitude for being then the test machine people distribution that number is k is list [k%N];Its
In, % is the operator that rems.
Optionally, the distribution module, is specifically used for:
The number for determining test machine people is k;
Assuming that the total quantity of longitude and latitude is N in the longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as
List [s-1], s=1,2,3 ..., N;The longitude and latitude for the test machine people traversal that then number is k is list [(k+M*n) %N];
Wherein, % is the operator that rems, and * is multiplication operator, n=0,1,2 ..., T;T is the smallest natural number not less than N/M, M
To migrate step-length.
The third aspect, the embodiment of the present invention provide a kind of game region pressure testing system, comprising: memory and processing
Device is stored with the executable instruction of the processor in memory;Wherein, the processor is configured to hold via described in execution
Row instruction is to execute game region method for testing pressure described in any one of first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program,
First aspect described in any item game region method for testing pressure are realized when the program is executed by processor.
The present invention provides a kind of game region method for testing pressure, device, system and storage medium, passes through and determines test
Territorial scope;According to pre-stored location information, corresponding longitude and latitude list is generated according to the territorial scope;According to described
Longitude and latitude list distributes longitude and latitude for test machine people;Establish the data communication of the test machine people and server, execution pair
The pressure test of the server.To realize according to pre-stored static immobilization information, directly distributed for test machine people
Longitude and latitude executes the game region pressure test to server, and property that the operation is simple and flexible is high, and broad covered area improves pressure
Testing efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the schematic illustration of an application scenarios of the invention;
Fig. 2 is the flow chart for the game region method for testing pressure that the embodiment of the present invention one provides;
Fig. 3 is the flow chart of game region method for testing pressure provided by Embodiment 2 of the present invention;
Fig. 4 is the storage format schematic diagram of location information;
Fig. 5 is the structural schematic diagram for the game region pressure test device that the embodiment of the present invention three provides;
Fig. 6 is the structural schematic diagram for the game region pressure test device that the embodiment of the present invention four provides;
Fig. 7 is the structural schematic diagram for the game region pressure testing system that the embodiment of the present invention five provides.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below
Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 1 is the schematic illustration of an application scenarios of the invention, as shown in Figure 1, ball warp latitude in base area of the present invention is constant
And the characteristics of seldom replacing to Yingcheng City, makes test machine people from according to client when carrying out the pressure test of game region
The locator itself having obtains latitude and longitude information, is changed into from global longitude and latitude data information data library and obtains longitude and latitude
Information.The present invention collects the GPS (Global in the whole world by spiders mode (keyword of crawler is longitude and latitude)
Positioning System, global positioning system) location information carries out storage and forms global longitude and latitude data information data library,
Then the GPS positioning information of storage is processed into (country, province, city, street (optional), lat (latitude, latitude), long
(longitude, longitude)) storage format, and using the format of format key-value, respectively by country variant, different provinces
Part, it is clustered between different cities.Longitude and latitude data processing module, according to the region model for carrying out the pressure test of game region
It encloses, corresponding latitude and longitude information is obtained from database, generate longitude and latitude list.It then, is each test machine people process point
With longitude and latitude, the data communication of test machine people and server is established, carries out the pressure test to server.According to test need
It asks, the pressure test of different geographical range can be carried out, for example, executing world-class territorial scope, national territorial scope, provincial
The pressure test of territorial scope, City-level territorial scope, street-level territorial scope.It will do it the feelings of region switching according to player
Scape can also distribute the data of the longitude and latitude of traversal for test machine people, and test machine people is made to carry out longitude and latitude switching, and simulation is played
Migration of the family between different zones, different cities.
Using the above method, it may be implemented according to the static immobilization information being pre-stored in database, be directly test machine
People distributes longitude and latitude, executes the game region pressure test to server, and property that the operation is simple and flexible is high, broad covered area, improves
Pressure test efficiency.
How to be solved with technical solution of the specifically embodiment to technical solution of the present invention and the application below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 2 is the flow chart for the game region method for testing pressure that the embodiment of the present invention one provides, as shown in Fig. 2, this
Method in embodiment may include:
S101, the territorial scope for determining test.
In the present embodiment, according to pressure test demand, the territorial scope of test is determined.Wherein, territorial scope includes: the world
Grade territorial scope, national territorial scope, provincial territorial scope, City-level territorial scope, street-level territorial scope.For example, root
According to needs, nationwide pressure test can be executed, the pressure test in single region can also be carried out for some city, also
It can choose the test that several cities carry out these regions.Territorial scope selection flexibly, can satisfy the various of pressure test
Demand.
The pre-stored location information of S102, basis, generates corresponding longitude and latitude list according to territorial scope.
In the present embodiment, according to territorial scope, the number of the quantity of All Countries, the province chosen in every country is determined
Amount, the quantity in the city chosen in each province, the quantity in the street chosen in each city, and all streets for choosing
Longitude and latitude;According to the longitude and latitude in all streets of selection, corresponding longitude and latitude list is generated.For example, being when executing territorial scope
When the pressure test of Beijing, determine country for China, quantity 1 according to location information;Then, it is determined that the province in China is
Beijing, quantity 1;Then, it is determined that all areas and all streets in Beijing, form a longitude and latitude list.This column
Table is exactly all longitude and latitude data to be tested.
S103, according to longitude and latitude list, distribute longitude and latitude for test machine people.
In the present embodiment, the quantity of setting test machine people is more than or equal to the sum of longitude and latitude in longitude and latitude list
Amount, and determine that the number of test machine people is k;Assuming that the total quantity of longitude and latitude is N in longitude and latitude list, it will be in longitude and latitude list
S-th of longitude and latitude be denoted as list [s-1], s=1,2,3 ..., N;It is then the longitude and latitude for the test machine people distribution that number is k
For list [k%N];Wherein, % is the operator that rems.For example, when the quantity of test machine people is 100, and warp to be tested
There are 10 latitude and longitude informations, the then test machine for being 1,11,21,31,41,51,61,71,81,91 to number in latitude list
People, the longitude and latitude of list [1] in distribution list;The test machine for being 2,12,22,32,42,52,62,72,82,92 to number
People, the longitude and latitude of list [2] in distribution list, remaining and so on, details are not described herein again.As long as creating so enough
Test machine people can simulate the testing requirement of the GPS playing method of whole region range.The pressure in the whole country can be completed
Test, can also complete the pressure test of single urban area or multiple regions.
In a kind of possible design, determine that the number of test machine people is k;Assuming that in longitude and latitude list longitude and latitude it is total
Quantity is N, and s-th of longitude and latitude in longitude and latitude list is denoted as list [s-1], s=1,2,3 ..., N;The then survey that number is k
The longitude and latitude of try engine people traversal is list [(k+M*n) %N];Wherein, % is the operator that rems, and * is multiplication operator, n
=0,1,2 ..., T;T is the smallest natural number not less than N/M, and M is migration step-length.For example, the quantity as test machine people is
100, and have 10 latitude and longitude informations in longitude and latitude list to be tested, setting M is 3, T=4 is arranged, then the test that number is 1
Robot, the longitude and latitude of traversal are the longitude and latitude of list [1], list [4], list [7], list [0], list [3] in list;It compiles
Number test machine people for being 2, the longitude and latitude of traversal is list [2], list [5], list [8], list [1], list [4] in list
Longitude and latitude, remaining and so on, details are not described herein again.In this manner it is possible to simulate player different zones, different cities it
Between migration.In this way, no matter test scope be it is much, by the way that the value of M, T is rationally arranged, all robots can be allowed all to have traversed
All regions improve the covering surface of pressure test, improve pressure test efficiency.
S104, the data communication for establishing test machine people and server execute the pressure test to server.
In the present embodiment, after setting up the longitude and latitude data of test machine people, test machine people and server are established
Data communication, game is logged in by robot simulation player, executes game content etc., executes the pressure test to server.
The present embodiment, by the territorial scope for determining test;According to pre-stored location information, generated according to territorial scope
Corresponding longitude and latitude list;According to longitude and latitude list, longitude and latitude is distributed for test machine people;Establish test machine people and server
Data communication, execute pressure test to server.It is directly survey to realize according to pre-stored static immobilization information
Try engine people distributes longitude and latitude, executes the game region pressure test to server, property that the operation is simple and flexible is high, covering surface
Extensively, pressure test efficiency is improved.
Fig. 3 is the flow chart of game region method for testing pressure provided by Embodiment 2 of the present invention, as shown in figure 3, this
Method in embodiment may include:
S201, location information is obtained, and carries out classification processing.
In the present embodiment, the location information in the whole world is collected by spiders mode, and location information is stored as presetting
Storage format;The location information stored according to preset storage format is subjected to classification processing, obtain respectively according to country,
Province, city, street classification location information.Wherein, location information includes: affiliated country, province, city, street and longitude and latitude
Degree;Preset storage format is the format of key-value.Fig. 4 is the storage format schematic diagram of location information, as shown in figure 4,
Lat indicates that latitude, lng indicate longitude, and the data of storage contain the information such as country, province, urban information, longitude, dimension.If
It counts out routine interface and neatly gets following data: the quantity of existing All Countries;The quantity in specified country's difference province;Refer to
Inquire after the health of one's parents the quantity of part different cities;The quantity in given city difference street;The longitude and latitude in different streets.Location data is gathered
Class processing, can quickly provide the area for allowing dummy robot that can neatly get oneself, improve location data acquisition
Speed.
S202, the territorial scope for determining test.
The pre-stored location information of S203, basis, generates corresponding longitude and latitude list according to territorial scope.
S204, according to longitude and latitude list, distribute longitude and latitude for test machine people.
S205, the data communication for establishing test machine people and server execute the pressure test to server.
In the present embodiment, step S202~step S205 specific implementation process and technical principle are shown in Figure 2
Associated description in method in step S101~step S104, details are not described herein again.
The present embodiment, by the territorial scope for determining test;According to pre-stored location information, generated according to territorial scope
Corresponding longitude and latitude list;According to longitude and latitude list, longitude and latitude is distributed for test machine people;Establish test machine people and server
Data communication, execute pressure test to server.It is directly survey to realize according to pre-stored static immobilization information
Try engine people distributes longitude and latitude, executes the game region pressure test to server, property that the operation is simple and flexible is high, covering surface
Extensively, pressure test efficiency is improved.
In addition, the location information in the whole world is collected in this implementation by spiders mode, and classification processing is carried out to positioning, also
It can be designed that routine interface neatly obtains data, improve the processing speed of location information.
Fig. 5 is the structural schematic diagram for the game region pressure test device that the embodiment of the present invention three provides, such as Fig. 5 institute
Show, the game region pressure test device of the present embodiment may include:
Determining module 31, for determining the territorial scope of test;
Processing module 32, for generating corresponding longitude and latitude list according to territorial scope according to pre-stored location information;
Distribution module 33, for distributing longitude and latitude for test machine people according to longitude and latitude list;
Test module 34 is executed and is surveyed to the pressure of server for establishing the data communication of test machine people and server
Examination.
In a kind of possible design, territorial scope includes: world-class territorial scope, national territorial scope, provincial
Domain range, City-level territorial scope, street-level territorial scope.
In a kind of possible design, processing module 32 is specifically used for:
According to territorial scope, the quantity of All Countries, the quantity in the province chosen in every country are determined, in each province
The quantity in the street chosen in the quantity in the city of selection, each city, and choose all streets longitude and latitude;
According to the longitude and latitude in all streets of selection, corresponding longitude and latitude list is generated.
In a kind of possible design, distribution module 33 is specifically used for:
The quantity that test machine people is arranged is more than or equal to the total quantity of longitude and latitude in longitude and latitude list, and determines test
The number of robot is k;
Assuming that the total quantity of longitude and latitude is N in longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as list
[s-1], s=1,2,3 ..., N;The longitude and latitude for being then the test machine people distribution that number is k is list [k%N];Wherein, % is
Rem operator.
In a kind of possible design, distribution module 33 is specifically used for:
The number for determining test machine people is k;
Assuming that the total quantity of longitude and latitude is N in longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as list
[s-1], s=1,2,3 ..., N;The longitude and latitude for the test machine people traversal that then number is k is list [(k+M*n) %N];Its
In, % is the operator that rems, and * is multiplication operator, n=0,1,2 ..., T;T is the smallest natural number not less than N/M, and M is
Migrate step-length.
The game region pressure test device of the present embodiment, can execute the technical solution in method shown in Fig. 2, tool
Body realizes the associated description in process and technical principle method shown in Figure 2, and details are not described herein again.
The present embodiment, by the territorial scope for determining test;According to pre-stored location information, generated according to territorial scope
Corresponding longitude and latitude list;According to longitude and latitude list, longitude and latitude is distributed for test machine people;Establish test machine people and server
Data communication, execute pressure test to server.It is directly survey to realize according to pre-stored static immobilization information
Try engine people distributes longitude and latitude, executes the game region pressure test to server, property that the operation is simple and flexible is high, covering surface
Extensively, pressure test efficiency is improved.
Fig. 6 is the structural schematic diagram for the game region pressure test device that the embodiment of the present invention four provides, such as Fig. 6 institute
Show, on the basis of the game region pressure test device device shown in Fig. 5 of the present embodiment, can also include:
Module 35 is obtained, for corresponding longitude and latitude being generated according to territorial scope and being arranged according to pre-stored location information
Before table, the location information in the whole world is collected by spiders mode, and location information is stored as preset storage format;
The location information stored according to preset storage format is subjected to classification processing, is obtained respectively according to country, province, city
City, street classification location information.
In a kind of possible design, location information includes: affiliated country, province, city, street and longitude and latitude;In advance
If storage format be key-value format.
The game region pressure test device of the present embodiment, can execute the technical solution in method shown in Fig. 2, Fig. 3,
It implements the associated description of process and technical principle referring to fig. 2, in method shown in Fig. 3, and details are not described herein again.
The present embodiment, by the territorial scope for determining test;According to pre-stored location information, generated according to territorial scope
Corresponding longitude and latitude list;According to longitude and latitude list, longitude and latitude is distributed for test machine people;Establish test machine people and server
Data communication, execute pressure test to server.It is directly survey to realize according to pre-stored static immobilization information
Try engine people distributes longitude and latitude, executes the game region pressure test to server, property that the operation is simple and flexible is high, covering surface
Extensively, pressure test efficiency is improved.
In addition, the location information in the whole world is collected in this implementation by spiders mode, and classification processing is carried out to positioning, also
It can be designed that routine interface neatly obtains data, improve the processing speed of location information.
Fig. 7 is the structural schematic diagram for the game region pressure testing system that the embodiment of the present invention five provides, such as Fig. 7 institute
Show, the game region pressure testing system 40 of the present embodiment may include: processor 41 and memory 42.
Memory 42 (such as realizes the application journey of above-mentioned game region method for testing pressure for storing computer program
Sequence, functional module etc.), computer instruction etc.;
Above-mentioned computer program, computer instruction etc. can be with partitioned storages in one or more memories 42.And
Above-mentioned computer program, computer instruction, data etc. can be called with device 41 processed.
Processor 41, for executing the computer program of the storage of memory 42, to realize method that above-described embodiment is related to
In each step.
It specifically may refer to the associated description in previous methods embodiment.
Processor 41 and memory 42 can be absolute construction, be also possible to the integrated morphology integrated.Work as processing
When device 41 and memory 42 are absolute construction, memory 42, processor 41 can be of coupled connections by bus 43.
The server of the present embodiment can execute the technical solution in method shown in Fig. 2, Fig. 3, specific implementation process and
Associated description of the technical principle referring to fig. 2, in method shown in Fig. 3, details are not described herein again.
In addition, the embodiment of the present application also provides a kind of computer readable storage medium, deposited in computer readable storage medium
Computer executed instructions are contained, when at least one processor of user equipment executes the computer executed instructions, user equipment
Execute above-mentioned various possible methods.
Wherein, computer-readable medium includes computer storage media and communication media, and wherein communication media includes being convenient for
From a place to any medium of another place transmission computer program.Storage medium can be general or specialized computer
Any usable medium that can be accessed.A kind of illustrative storage medium is coupled to processor, to enable a processor to from this
Read information, and information can be written to the storage medium.Certainly, storage medium is also possible to the composition portion of processor
Point.Pocessor and storage media can be located in ASIC.In addition, the ASIC can be located in user equipment.Certainly, processor and
Storage medium can also be used as discrete assembly and be present in communication equipment.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
The application also provides a kind of program product, and program product includes computer program, and computer program is stored in readable
In storage medium, at least one processor of server can read computer program from readable storage medium storing program for executing, at least one
Reason device executes the game region method for testing pressure that computer program makes the server implementation embodiments of the present invention any.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of game region method for testing pressure characterized by comprising
Determine the territorial scope of test;
According to pre-stored location information, corresponding longitude and latitude list is generated according to the territorial scope;
According to the longitude and latitude list, longitude and latitude is distributed for test machine people;
The data communication of the test machine people and server are established, the pressure test to the server is executed.
2. the method according to claim 1, wherein the territorial scope includes: world-class territorial scope, country
Grade territorial scope, provincial territorial scope, City-level territorial scope, street-level territorial scope.
3. the method according to claim 1, wherein according to pre-stored location information, according to the region
Range generates before corresponding longitude and latitude list, further includes:
The location information in the whole world is collected by spiders mode, and the location information is stored as preset storage format;
The location information stored according to preset storage format is subjected to classification processing, is obtained respectively according to country, province, city
City, street classification location information.
4. according to the method described in claim 3, it is characterized in that, the location information include: belonging to country, province, city,
Street and longitude and latitude;The preset storage format is the format of key-value.
5. the method according to claim 1, wherein according to pre-stored location information, according to the region model
It encloses and generates corresponding longitude and latitude list, comprising:
According to the territorial scope, the quantity of All Countries, the quantity in the province chosen in every country are determined, in each province
The quantity in the street chosen in the quantity in the city of selection, each city, and choose all streets longitude and latitude;
According to the longitude and latitude in all streets of selection, corresponding longitude and latitude list is generated.
6. method according to any one of claims 1-5, which is characterized in that according to the longitude and latitude list, for test
Robot distributes longitude and latitude, comprising:
The quantity that test machine people is arranged is more than or equal to the total quantity of longitude and latitude in the longitude and latitude list, and determines test
The number of robot is k;
Assuming that the total quantity of longitude and latitude is N in the longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as list
[s-1], s=1,2,3 ..., N;The longitude and latitude for being then the test machine people distribution that number is k is list [k%N];Wherein, % is
Rem operator.
7. method according to any one of claims 1-5, which is characterized in that according to the longitude and latitude list, for test
Robot distributes longitude and latitude, comprising:
The number for determining test machine people is k;
Assuming that the total quantity of longitude and latitude is N in the longitude and latitude list, s-th of longitude and latitude in longitude and latitude list is denoted as list
[s-1], s=1,2,3 ..., N;The longitude and latitude for the test machine people traversal that then number is k is list [(k+M*n) %N];Its
In, % is the operator that rems, and * is multiplication operator, n=0,1,2 ..., T;T is the smallest natural number not less than N/M, and M is
Migrate step-length.
8. a kind of game region pressure test device characterized by comprising
Determining module, for determining the territorial scope of test;
Processing module, for generating corresponding longitude and latitude list according to the territorial scope according to pre-stored location information;
Distribution module, for distributing longitude and latitude for test machine people according to the longitude and latitude list;
Test module executes the pressure to the server for establishing the data communication of the test machine people and server
Test.
9. a kind of game region pressure testing system characterized by comprising memory and processor store in memory
There is the executable instruction of the processor;Wherein, the processor is configured to carry out right of execution via the execution executable instruction
Benefit requires game region method for testing pressure described in any one of 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Game region method for testing pressure of any of claims 1-7 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811460013.1A CN109522199B (en) | 2018-11-30 | 2018-11-30 | Game regional pressure testing method, device, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811460013.1A CN109522199B (en) | 2018-11-30 | 2018-11-30 | Game regional pressure testing method, device, system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109522199A true CN109522199A (en) | 2019-03-26 |
CN109522199B CN109522199B (en) | 2022-07-15 |
Family
ID=65794751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811460013.1A Active CN109522199B (en) | 2018-11-30 | 2018-11-30 | Game regional pressure testing method, device, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109522199B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113469741A (en) * | 2021-06-30 | 2021-10-01 | 杭州云深科技有限公司 | APP regional distribution grade determination method and device, computer equipment and storage medium |
CN114615171A (en) * | 2022-03-16 | 2022-06-10 | 网易(杭州)网络有限公司 | Pressure measurement processing method, device, medium and program product for cloud game server |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201117580A (en) * | 2009-11-13 | 2011-05-16 | Inventec Corp | A pressure test method for network interface card |
CN105207844A (en) * | 2015-09-07 | 2015-12-30 | 浪潮(北京)电子信息产业有限公司 | Method for testing server stability and system thereof |
CN105959177A (en) * | 2016-04-26 | 2016-09-21 | 网易(杭州)网络有限公司 | Game server stress test script generation method and device |
CN107155172A (en) * | 2017-04-01 | 2017-09-12 | 广州逸信电子科技有限公司 | The alignment system and method for mobile subscriber |
CN108647282A (en) * | 2018-05-03 | 2018-10-12 | 苏州朗动网络科技有限公司 | Corporation information query method, apparatus, computer equipment and readable storage medium storing program for executing |
-
2018
- 2018-11-30 CN CN201811460013.1A patent/CN109522199B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201117580A (en) * | 2009-11-13 | 2011-05-16 | Inventec Corp | A pressure test method for network interface card |
CN105207844A (en) * | 2015-09-07 | 2015-12-30 | 浪潮(北京)电子信息产业有限公司 | Method for testing server stability and system thereof |
CN105959177A (en) * | 2016-04-26 | 2016-09-21 | 网易(杭州)网络有限公司 | Game server stress test script generation method and device |
CN107155172A (en) * | 2017-04-01 | 2017-09-12 | 广州逸信电子科技有限公司 | The alignment system and method for mobile subscriber |
CN108647282A (en) * | 2018-05-03 | 2018-10-12 | 苏州朗动网络科技有限公司 | Corporation information query method, apparatus, computer equipment and readable storage medium storing program for executing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113469741A (en) * | 2021-06-30 | 2021-10-01 | 杭州云深科技有限公司 | APP regional distribution grade determination method and device, computer equipment and storage medium |
CN114615171A (en) * | 2022-03-16 | 2022-06-10 | 网易(杭州)网络有限公司 | Pressure measurement processing method, device, medium and program product for cloud game server |
CN114615171B (en) * | 2022-03-16 | 2024-01-30 | 网易(上海)网络有限公司 | Pressure measurement processing method, device, medium and program product of cloud game server |
Also Published As
Publication number | Publication date |
---|---|
CN109522199B (en) | 2022-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Hijmans et al. | Package ‘dismo’ | |
Batty | Cities as fractals: simulating growth and form | |
Kaminski et al. | A coarse grid three‐dimensional global inverse model of the atmospheric transport: 2. Inversion of the transport of CO2 in the 1980s | |
CN109544690B (en) | Method, system and storage medium for identifying influence factors of travel of shared bicycle | |
CN102609517B (en) | Method and system for online vector map comprehensive services | |
JP2004326073A (en) | Method and system for generating, updating, and using geographical database | |
CN107451150B (en) | Geographic data presentation method and device | |
CN110134752A (en) | Three-dimensional large scene modeling data processing method and processing device | |
CN109522199A (en) | Game region method for testing pressure, device, system and storage medium | |
CN105183769B (en) | Based on the cubical track data visualized in situ method of flow data | |
CN110569580B (en) | Urban street space vitality simulation method, system, computer equipment and medium | |
Rehfeld et al. | Assessing performance and seasonal bias of pollen-based climate reconstructions in a perfect model world | |
CN103246650B (en) | A kind of road logic model preparation method | |
Olszewski et al. | Methodology of creating the new generation of official topographic maps in Poland | |
Bandrova | Innovative technology for the creation of 3D maps | |
CN111581306A (en) | Driving track simulation method and device | |
CN104424515A (en) | Novel BeiDou technology and GIS technology-based tour group real-time management system | |
Ghiraldi et al. | Development and usage of Geosites: new results from research and conservation activities in the Piemonte Region (Italy) | |
US20220318695A1 (en) | Method and system for indexing and mapping software assets of business | |
Brown | SDMtoolbox User Guide | |
Abbas | Database management and mapping of secondary education infrastructure in Sabon-Gari and Zaria Local Governments, Kaduna State, Nigeria | |
Hill et al. | Discrete-event simulation of alga expansion | |
Poláček et al. | Implementing INSPIRE for the Czech | |
Slager et al. | Simlandscape: serious gaming in participatory spatial planning | |
Mora et al. | Computer-based recording systems of Pleistocene deposits with large mammals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |