CN110069375A - A kind of method and relevant apparatus of pressure test - Google Patents
A kind of method and relevant apparatus of pressure test Download PDFInfo
- Publication number
- CN110069375A CN110069375A CN201910376878.8A CN201910376878A CN110069375A CN 110069375 A CN110069375 A CN 110069375A CN 201910376878 A CN201910376878 A CN 201910376878A CN 110069375 A CN110069375 A CN 110069375A
- Authority
- CN
- China
- Prior art keywords
- sequence
- file
- server
- simulated object
- operation file
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 113
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000006854 communication Effects 0.000 claims abstract description 40
- 238000004891 communication Methods 0.000 claims abstract description 39
- 238000006467 substitution reaction Methods 0.000 claims description 21
- 238000003860 storage Methods 0.000 claims description 15
- 230000006399 behavior Effects 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000002035 prolonged effect Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 238000013461 design Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 235000013399 edible fruits Nutrition 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000009662 stress testing Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
This application discloses a kind of methods of pressure test, comprising: obtains the first sequence of operation file, the first sequence of operation file is generated according to the communication information between client and server;According to the first sequence of operation file generated second sequence of operation file;The second sequence of operation file is sent to simulated object to multiple, so as to each be communicated according to the second sequence of operation file with server to simulated object, each to the corresponding account information of simulated object;When each when simulated object is communicated with server completion, the pressure testing results of server are obtained.Disclosed herein as well is a kind of pressure test device and electronic equipments.On the one hand the application is not necessarily to take a substantial amount of time and writes code with human cost, on the other hand, according to the client operation of true operation series model can more closing to reality situation, to promote the accuracy of server stress test.
Description
Technical field
This application involves field of computer technology more particularly to the methods and relevant apparatus of a kind of pressure test.
Background technique
With the rapid development of Internet technology, the requirement to the performance and stability of server is higher and higher, therefore passes through
Need to carry out server pressure test often with acquisition server performance indicator and the processing speed situation of network request etc..Than
Such as, it before game is online, needs to carry out game server pressure test, the shape that a large amount of players when taking enter game is opened in simulation
Condition, so that discovery solves the problems, such as in advance.
Currently, the method for carrying out pressure test to server usually requires manual compiling robot code, by running machine
Device people code simulates some specific scenes, for example, the scene that multi-user logs in simultaneously, the scene that multi-user switches simultaneously,
And the scene etc. that multi-user fights simultaneously, to obtain the pressure testing results of server.
However, manual compiling robot code generally requires to expend more time and human cost, and one write
Pressure test can only be carried out for some specific scene by covering robot code, can not real simulation open high-volume when taking and play
Family enters the true operation after game, and the effect for thus causing server stress to be tested is poor.
Summary of the invention
The embodiment of the present application provides the method and relevant apparatus of a kind of pressure test, on the one hand a large amount of without expending
Time and human cost write code, on the other hand, can be more close to reality according to the client operation of true operation series model
Border situation, to promote the accuracy of server stress test.
In view of this, the application first aspect provides a kind of method of pressure test, comprising:
Obtain the first sequence of operation file, wherein first sequence of operation file be according to client and server it
Between communication information it is generated;
According to first sequence of operation file generated, second sequence of operation file;
Second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to described the
Two sequence of operation files are communicated with the server, wherein described each to the corresponding account information of simulated object;
When it is described each communicated when the completion of simulated object and the server when, obtain the pressure test knot of the server
Fruit.
It is described to obtain in the first implementation of the first aspect of the embodiment of the present application in a kind of possible design
Take the first sequence of operation file, comprising:
After the client is communicated using target account with the server, message recording file is obtained,
In, the target account is the account that the client creates in the application, and the message recording file is the client
What end was recorded using recording tool;
The first sequence of operation file according to the message recording file generated, wherein first sequence of operation text
It include multiple operation informations in part.
In a kind of possible design, in second of implementation of the first aspect of the embodiment of the present application, described
According to first sequence of operation file generated, second sequence of operation file, comprising:
If getting timing setting instruction, instruction is arranged according to the timing and is adjusted in first sequence of operation file
The timing of operation information;
Get parms setting instruction;
Parameter Substitution Rules are determined according to the parameter setting instruction;
First sequence of operation file is handled according to the parameter Substitution Rules, obtains the second operation sequence
Column file.
In a kind of possible design, in the third implementation of the first aspect of the embodiment of the present application, described
According to the timing, the timing that instruction adjusts operation information in first sequence of operation file is set, comprising:
It is arranged according to the timing and instructs the sequential relationship for determining the first operation information and the second operation information, wherein institute
State the operation information that the first operation information is belonged to second operation information in first sequence of operation file;
According to the sequential relationship of first operation information and the second operation information, first operation information is set to
Before second operation information.
In a kind of possible design, in the 4th kind of implementation of the first aspect of the embodiment of the present application, it is described to
It is multiple to send second sequence of operation file to simulated object, so that each to simulated object according to second sequence of operation
Before file is communicated with the server, the method also includes:
Obtain delay setting instruction, wherein delay setting instruction indicates to exist within a preset time N number of wait simulate pair
As carrying out identical operation, the N is the integer more than or equal to 1;
It is described to send second sequence of operation file to simulated object to multiple, so that each to simulated object according to institute
The second sequence of operation file is stated to be communicated with the server, comprising:
Second sequence of operation file and delay setting instruction are sent to simulated object to the multiple, so that
It is described it is N number of to simulated object in the preset time, led to according to second sequence of operation file with the server
Letter.
The application second aspect provides a kind of pressure test device, comprising:
Module is obtained, for obtaining the first sequence of operation file, wherein first sequence of operation file is according to client
Communication information between end and server is generated;
Generation module, first sequence of operation file generated second for being obtained according to the acquisition module operate sequence
Column file, wherein second sequence of operation file has different parameter informations from first sequence of operation file;
Sending module, for sending second sequence of operation text that the generation module generates to simulated object to multiple
Part, so as to each be communicated according to second sequence of operation file with the server to simulated object, wherein described every
It is a to correspond to an account information to simulated object;
The acquisition module is also used to when described each when the completion of simulated object and the server communicate, acquisition institute
State the pressure testing results of server.
In a kind of possible design, in the first implementation of the second aspect of the embodiment of the present application,
The acquisition module, specifically for carrying out communicating it with the server using target account in the client
Afterwards, message recording file is obtained, wherein the target account is the account that the client creates in the application, described
The message recording file client is recorded to obtain using recording tool;
The first sequence of operation file according to the message recording file generated, wherein first sequence of operation text
It include multiple operation informations in part.
In a kind of possible design, in second of implementation of the second aspect of the embodiment of the present application,
The generation module, if instruction adjustment is arranged according to the timing specifically for getting timing setting instruction
The timing of operation information in first sequence of operation file;
Get parms setting instruction;
Parameter Substitution Rules are determined according to the parameter setting instruction;
First sequence of operation file is handled according to the parameter Substitution Rules, obtains the second operation sequence
Column file.
In a kind of possible design, in the third implementation of the second aspect of the embodiment of the present application,
The generation module is specifically used for that determining first operation information of instruction is arranged according to the timing and the second operation is believed
The sequential relationship of breath, wherein first operation information and second operation information belong to first sequence of operation text
The operation information in part;
According to the sequential relationship of first operation information and the second operation information, first operation information is set to
Before second operation information.
In a kind of possible design, in the 4th kind of implementation of the second aspect of the embodiment of the present application,
The acquisition module is also used to send second sequence of operation to simulated object to multiple in the sending module
File, so as to be obtained before each being communicated according to second sequence of operation file with the server to simulated object
Instruction is arranged in delay, wherein the delay setting instruction instruction exists N number of identical to simulated object progress within a preset time
Operation, the N are the integer more than or equal to 1;
The sending module, be specifically used for it is the multiple to simulated object send second sequence of operation file and
Delay setting instruction so that it is described it is N number of to simulated object in the preset time, according to second sequence of operation text
Part is communicated with the server.
The application third aspect provides a kind of electronic equipment, comprising: memory, transceiver, processor and bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
Obtain the first sequence of operation file, wherein first sequence of operation file be according to client and server it
Between communication information it is generated;
According to first sequence of operation file generated, second sequence of operation file, wherein second sequence of operation text
Part has different parameter informations from first sequence of operation file;
Second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to described the
Two sequence of operation files are communicated with the server, wherein described each to the corresponding account information of simulated object;
When it is described each communicated when the completion of simulated object and the server when, obtain the pressure test knot of the server
Fruit;
The bus system is for connecting the memory and the processor, so that the memory and the place
Reason device is communicated.
The fourth aspect of the application provides a kind of computer readable storage medium, in the computer readable storage medium
It is stored with instruction, when run on a computer, so that computer executes method described in above-mentioned various aspects.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
In the embodiment of the present application, a kind of method of pressure test is provided, obtains the first sequence of operation file first, first
Sequence of operation file is generated according to the communication information between client and server, then according to first sequence of operation text
Part generates the second sequence of operation file, wherein the second sequence of operation file has different parameters from the first sequence of operation file
Information, then the second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to the second operation sequence
Column file is communicated with server, each to the corresponding account information of simulated object, when each to simulated object and service
When device completes communication, the pressure testing results of server are obtained.By the above-mentioned means, true between record client and server
Then the real sequence of operation generates simulated operation sequence according to true operation sequence, finally complete test using simulated operation sequence
, code on the one hand is write with human cost without taking a substantial amount of time, on the other hand, according to true operation series model
Client operation can more closing to reality situation, to promote the accuracy of server stress test.
Detailed description of the invention
Fig. 1 is a configuration diagram of pressure testing system in the embodiment of the present application;
Fig. 2 is method one embodiment schematic diagram of pressure test in the embodiment of the present application;
Fig. 3 is pressure test device one embodiment schematic diagram in the embodiment of the present application;
Fig. 4 is server one embodiment schematic diagram in the embodiment of the present application;
Fig. 5 is terminal device one embodiment schematic diagram in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides the method and relevant apparatus of a kind of pressure test, on the one hand a large amount of without expending
Time and human cost write code, on the other hand, can be more close to reality according to the client operation of true operation series model
Border situation, to promote the accuracy of server stress test.
The specification and claims of application and the term " first " in above-mentioned attached drawing, " second ", " third ", " the 4th "
Etc. (if present)s be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that
The data used in this way are interchangeable under appropriate circumstances, so as to embodiments herein described herein for example can in addition to
The sequence other than those of diagram or description is implemented herein.In addition, term " includes " and " corresponding to " 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.
It should be understood that a good application program is other than the research and development of high quality, it is also necessary to sufficiently large bandwidth and high property
The server of energy is as strong backing.The application is mainly used for the server stress test scene of online game, online game pressure
Power test is the test that " pressure " is continuously applied to the server of online game for traditional meaning, is by determining one
The bottleneck of system or cannot received performance point, to obtain the test for the maximum service rank that system can provide.It is referred herein
" pressure " be the player being constantly increasing inside game.Server mainly carries player and game in game process, and
Flow caused by interaction between player.And pressure test is then by various factors in view of pole to carry out specially server
Industry and systematic test, largely to improve the bottleneck of system and to understand server bearing capacity.It is understood that
It is that the object of pressure test can also be other kinds of application program in addition to can be online game in the application, for example,
The application of instant messaging class or information class application etc., this is introduced for sentencing online game, however should not be construed as to this
The restriction of application.
Pressure test (Stress Testing), also referred to as strength test, by the hardware environment for simulating practical application
And the system loading of user's use process, for a long time or super large load run test software, come test system under test (SUT) performance,
Reliability and stability etc..Pressure test it needs to be determined that the bottleneck of system or cannot received performance point, to obtain
The maximum service class that system can provide.
In order to make it easy to understand, this method is applied to pressure shown in FIG. 1 present applicant proposes a kind of method of pressure test
Test macro, referring to Fig. 1, Fig. 1 is a configuration diagram of pressure testing system in the embodiment of the present application, as shown,
By taking application program is online game as an example, before online game is online, needs to carry out pressure test to game server, that is, need
It simulates and opens a large amount of players when taking and enter the situation of game, to find and solve the problems, such as in advance.Firstly, being adopted in client-side
Game is logged in an account, then player completely operates one time according to game flow, by the operation of client recording player
Sequence, wherein the message sequence of communication of the sequence of operation between client and game server.Obtain the operation of true player
After sequence, which can be configured, to obtain the sequence of operation of N number of different accounts, this N number of sequence of operation
Operation timing having the same, difference only embody first different moments and enter game.N number of account is respectively allocated to N number of difference
Robot, different robots can be deployed on different terminal devices, can also be deployed on identical terminal device,
N number of robot in Fig. 1 is only a signal, should not be construed as the restriction to the application.N number of robot playback operation sequence,
The case where to simulate when a large amount of players enter game.
It should be noted that client and robot can be deployed on terminal device, wherein terminal device include but
It is not limited only to tablet computer, laptop, palm PC, mobile phone, interactive voice equipment and PC (personal
Computer, PC), herein without limitation.
In conjunction with above-mentioned introduction, the method for pressure test in the application will be introduced below, referring to Fig. 2, the application
Method one embodiment of pressure test in embodiment includes:
101, obtain the first sequence of operation file, wherein the first sequence of operation file be according to client and server it
Between communication information it is generated;
In the present embodiment, pressure test device obtains the first sequence of operation file first, it is to be understood that pressure test
Device can be deployed in terminal device, can also be disposed in the server, can also be deployed in jointly with client same
In a terminal device, herein without limiting.
User can register an account in client-side, then by the account according to pre-set operating process
Corresponding operation is carried out, during operation, the recording of communication information is carried out using recording tool by client, finally according to record
The communication information being made generates the first sequence of operation file.Wherein, communication information can be, and user end to server sends A
Instruction, server is instructed to one B of client feedback according to A and is instructed, i.e., when interacting communication between client and server
The message of generation.
102, according to the first sequence of operation file generated second sequence of operation file;
In the present embodiment, pressure test device is configured the first sequence of operation file, and the purpose of setting is mainly
Parameter information, such as account information etc. in first sequence of operation file of adjustment, additionally can be set first sequence of operation
Thus appearance timing in file between operation information obtains the second sequence of operation file.
103, the second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to the second behaviour
Make sequential file to be communicated with server, wherein each to the corresponding account information of simulated object;
It, can be to each to simulated object after pressure test device is determined to the quantity of simulated object in the present embodiment
The second sequence of operation file is sent, alternatively, by simulated object activly request second sequence of operation file, pressure test device root
It is responded according to the request to simulated object, to issue the second sequence of operation file.
Each communicated according to the sequence of operation information in the second sequence of operation file with server to simulated object.Than
Such as, there are 100 to simulated object, this 100 can read the second sequence of operation file to simulated object respectively, then according to pre-
The configuration information first set determines corresponding account information, combines the second sequence of operation file and account information to simulated object
With server communication, a unique account information each is corresponded to simulated object, therefore, there are 100 account informations.
Wherein, it specifically can be finger pressure test machine people to simulated object, pressure test machine people is using record user
The sequence of operation, and take the strategy of playback operation sequence, can simulate open take when high-volume user enter application program
Truth afterwards, so that the problem of finding application server, evaluates and tests the performance of server.
104, the pressure testing results of server are obtained when simulated object is communicated with server completion when each.
In the present embodiment, it is each communicate to the completion of simulated object and server after, can disconnect, complete accordingly
Server stress test.Pressure test device can actively obtain pressure testing results, also can receive server feedback
Pressure testing results can also directly record pressure testing results.
In the embodiment of the present application, a kind of method of pressure test is provided, obtains the first sequence of operation file first, first
Sequence of operation file is generated according to the communication information between client and server, then according to first sequence of operation text
Part generates the second sequence of operation file, and the second sequence of operation file has different parameter informations from the first sequence of operation file,
The second sequence of operation file is sent to simulated object to multiple again, so that each to simulated object according to the second sequence of operation file
It is communicated with server, each to the corresponding account information of simulated object, is completed when each to simulated object and server
When communication, the pressure testing results of server are obtained.By the above-mentioned means, the true operation between record client and server
Then sequence generates simulated operation sequence according to true operation sequence, finally complete to test using simulated operation sequence, one
Aspect writes code with human cost without taking a substantial amount of time, on the other hand, according to true operation series model client
Operation can more closing to reality situation, to promote the accuracy of server stress test.
Optionally, on the basis of above-mentioned Fig. 2 corresponding embodiment, the method for pressure test provided by the embodiments of the present application
In first alternative embodiment, the first sequence of operation file is obtained, may include:
After client is communicated using target account with server, message recording file is obtained, wherein target account
Number account created in the application for client, message recording file is what client was recorded using recording tool;
According to message recording file generated first sequence of operation file, wherein include multiple in the first sequence of operation file
Operation information.
In the present embodiment, a kind of mode of the first sequence of operation file of pressure test device acquisition is described.Specifically, first
A target account is first established on client is, by taking role playing game (Role-playing game, RPG) as an example, the mesh
Marking account can be game account, such as " 00001 ", and user is carried out using the target account using industry according to new hand's boot flow
Business.Under normal conditions, the operating process of RPG game includes registration, selection server, creation role, logs in game, into scene
And do task dispatching, wherein the task of doing can be and kill monster, acquires article and look for non-player role (Non-Player
Character, NPC) etc..
When user carries out applied business using target account, client can open recording tool and record client and service
Communication information between device, wherein recording tool can be integrated in client, and the function of recording tool is to collect client kimonos
Communication information between business device, and be stored in message recording file.Assuming that business carries out 1 hour, it is then offline, then
It just include the communication information in this 1 hour between client and server in message recording file.And communication information is exactly visitor
The Content of Communication at family end and server, for example when login game, client Tell server account is entitled " JING ", and password is
The target account of " 1234 " wants that, into game, request server is handled, and server receives the request message, then tells visitor
Can family end can log in, if can log in, server can also continue to that client is told to have which role that can be selected
Message.
Message recording file is converted to the first readable sequence of operation file by pressure test device, that is, communication is disappeared
Breath is converted to the format of the sequence of operation.It wherein, include multiple operation informations in the first sequence of operation file, for ease of description,
It will be introduced by taking an operation information as an example below.Please refer to following operation information:
0:0:1.80/0/3/C/111
CgZ6eGMwMTESAFonWjg3LUhEMyAoR2lnYWJ5dGUgVGVjaG5vbG9neSBDby4sIEx0ZC4p
Wherein, the first row splits parameters with "/", and first parameter " 0:0:1.80 " indicates the time, immediately: point: the second.
Second parameter " 0 " indicates that informed source, such as playback server and playback client can not distinguish, and is disposed as 0.
Third parameter " 3 " presentation protocol type, for example, it is transmission control protocol (Transmission Control Protocol), fast
Fast reliable network transport protocol (KCP), real time transport protocol (Real-time Transport Protocol, RCP) and silent
Recognize agreement etc..4th parameter " C " indicates the promoter of operation information, such as server or client.5th parameter
The mark (identity, ID) of " 111 " expression operation information.
Second row is to encode obtained two-stage system data using basic (base) 64, is decoded using protobuf available
Communication information originally.
It is understood that the tool of recording can be the tool of recorded video, it is also possible to the tool of recording audio.If record
The object that tool processed is recorded is audio, then communication information is exactly audio message, is exactly broadcaster to simulated object.
Secondly, providing a kind of mode for obtaining the first sequence of operation file in the embodiment of the present application, i.e., being adopted in client
After being communicated with target account with server, message recording file is obtained, wherein target account is that client is applying journey
The account created in sequence, message recording file are what client was recorded using recording tool, then according to message recording text
Part generates the first sequence of operation file, wherein includes multiple operation informations in the first sequence of operation file.By the above-mentioned means,
It can use the message recording tool recording operation sequential file of client-side, be not necessarily to manual compilation operation code, in addition, going out
When existing application version updates, it is only necessary to a user's operation is recorded again, to save a large amount of time
And cost.And during recording operation sequential file, the operating process recorded and completed can choose, also can choose only
The operating process of some function is recorded, thus the flexibility of lifting scheme.
Optionally, on the basis of above-mentioned Fig. 2 corresponding embodiment, the method for pressure test provided by the embodiments of the present application
In second alternative embodiment, according to the first sequence of operation file generated second sequence of operation file, may include:
If getting timing setting instruction, operation information in instruction the first sequence of operation file of adjustment is arranged according to timing
Timing;
Get parms setting instruction;
Parameter Substitution Rules are determined according to parameter setting instruction;
The first sequence of operation file is handled according to parameter Substitution Rules, obtains the second sequence of operation file.
In the present embodiment, how introduction is configured the first sequence of operation file.According to the first of generation the operation sequence
Column file can check the sequence of operation information in the first sequence of operation file, specifically, can be using the side of manual inspection
Formula can also be checked automatically by pressure test device.If being tested with the operation information for needing to adjust timing, trigger
Then in response to the instruction instruction adjustment first sequence of operation text is arranged according to timing in timing setting instruction, pressure test device
The timing of operation information in part.Wherein, the operation information for needing to adjust timing should often meet certain rules, for example, must be
It receives login result and returns to message, could select to be to enter game or register account number in next step.
In addition it is also necessary to set of parameter Substitution Rules be arranged, specifically, using target account (ratio when due to recording
Such as account 00001), and when simulated object simulated operation, using other account (such as 00002), then need
Parameter Substitution Rules are arranged to be updated the account information in the first sequence of operation file, i.e., by design code, carry out basis
The parameter when Parameter Switch used when parameter Substitution Rules are recording is at actual playback, so as to obtain second sequence of operation
File.
In order to make it easy to understand, will be explained by taking an application scenarios as an example below, it is assumed that client is needed using stage property
Tell server stage property ID and account ID, the stage property ID of account A is 1 when recording, and account ID is 1001, when playback, account B's
Stage property ID is 1, and account ID is 2001, and therefore, the code of design is that stage property ID is updated to account ID from account ID 1001
2001, account ID 2001 is issued server when playback, using will not just malfunction when this stage property in this way.
The parameter for needing to replace is usually only anything with account, such as stage property or worrior etc., the requirement of replacement
Being can normal use stage property and worrior.
Secondly, being provided a kind of according to the first sequence of operation file generated second sequence of operation text in the embodiment of the present application
The mode of part is arranged to operate in instruction the first sequence of operation file of adjustment according to timing and believe if getting timing setting instruction
The timing of breath, get parms setting instruction, then determines parameter Substitution Rules according to parameter setting instruction, is finally replaced according to parameter
It changes rule to handle the first sequence of operation file, obtains the second sequence of operation file.By the above-mentioned means, user can be with hand
The information such as parameter and timing in the dynamic setting sequence of operation, so as to be more nearly test scene, thus lifting scheme
Flexibility.
Optionally, on the basis of above-mentioned Fig. 2 corresponding second embodiment, pressure test provided by the embodiments of the present application
Method third alternative embodiment in, according to timing be arranged instruction adjustment the first sequence of operation file in operation information when
Sequence may include:
It is arranged according to timing and instructs the sequential relationship for determining the first operation information and the second operation information, wherein the first behaviour
Make the operation information that information is belonged to the second operation information in the first sequence of operation file;
According to the sequential relationship of the first operation information and the second operation information, the first operation information is set to the second operation
Before information.
In the present embodiment, the mode of operation information timing in a kind of the first sequence of operation file of adjustment is described.In reality
In, the operation information for some particular orders that need to rely on.When user triggers timing setting instruction according to test content,
Pressure test device is arranged according to timing instructs the sequential relationship that can determine the first operation information Yu the second operation information, and first
Operation information and the second operation information belong to the operation information in the first sequence of operation file, and then, pressure test device will
First operation information is set to before the second operation information.
Specifically, it is assumed that in the server stress situation tested under handoff scenario, client must receive server
The scene creation issued just can be carried out in next step after successfully instructing, then the first operation information is the scene creation that server issues
Success instructs, and the second operation information is that client completes scene switching.The server stress in the case where testing scene of fighting is assumed again
When situation, client must receive fight result after fight and just can be carried out in next step, then the first operation information is
The fight that server issues is as a result, the second operation information is that client shows fight result.
When carrying out Behavior modeling to simulated object, the operation of true player is simulated as far as possible, can make to press in this way
Power test result is more acurrate.For example pathfinding is needed when doing task, or kill strange when needs pathfinding, it is desired nonetheless to mould
Quasi- object is gone over, and corresponding strange NPC is chosen when doing task and is talked.
Avoiding on a machine to simulated object and server for pressure test is carried out, more machine tests can be divided.
Then check that those logical comparisons of server are time-consuming according to log, maximum can support how many people online, and bandwidth is much.In order to save
Bandwidth-saving, it is necessary to do lower optimization for those agreements frequently sent.Also some do not need the agreement frequently sent
Reduce transmission times.
Again, in the embodiment of the present application, a kind of mode of timing that operation information is set is provided, i.e., is arranged according to timing
The sequential relationship for determining the first operation information and the second operation information is instructed, is then believed according to the first operation information and the second operation
First operation information is set to before the second operation information by the sequential relationship of breath.By the above-mentioned means, user can set manually
The information such as the timing in the sequence of operation are set, so as to be more nearly test scene, the thus flexibility of lifting scheme.
Optionally, on the basis of above-mentioned Fig. 2 corresponding embodiment, the method for pressure test provided by the embodiments of the present application
In 4th alternative embodiment, the second sequence of operation file is sent to simulated object to multiple, so that each to simulated object root
Before being communicated according to the second sequence of operation file with server, can also include:
Obtain delay setting instruction, wherein delay setting instruction instruction exist within a preset time it is N number of to simulated object into
The identical operation of row, N are the integer more than or equal to 1;
The second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to the second operation sequence
Column file is communicated with server, may include:
The second sequence of operation file and delay setting instruction are sent to simulated object to multiple, so that N number of wait simulate pair
As within a preset time, being communicated according to the second sequence of operation file with server.
In the present embodiment, describes and a kind of utilize the method tested to simulated object.Firstly the need of generation present count
Amount to simulated object, wherein preset quantity N.For example to simulate 1000 players and play game, that can set N to
1000, it then opens 1000 and carries out pressure test to simulated object, wherein M is configured in allocation list.
As shown in table 1, table 1 is a signal for the allocation list set to simulated object.
Table 1
As shown in table 1, it needs to distribute an account ID to simulated object to be each, and sets M value, in actual conditions
Under, M can also be set as to other integer values, only one signal, should not be construed as the restriction to the application herein.
Pressure test device obtains delay setting instruction, then can be determined according to delay setting instruction in preset time
Inside exist N number of to the identical operation of simulated object progress, wherein N is the integer more than or equal to 1, and less than or equal to M.It is false
If M is that 1000, N can be set to 50, preset time is 1 second, that is to say, that during pressure test, simulating has in per second
50 players log accounts (i.e. connection game server).It is understood that setting delay is in order to simulate truth, just
Often for, player enter game be also it is many batches of, will not some point simultaneously enter, so needs according to delay start N
It is a to simulated object.
M to simulated object according to the sequence of operation and time interval messaging in the second sequence of operation file, wherein
Time interval is exactly the time interval generated when recording, for example is to have used a gift bag within the 5th second after entering game when recording,
It is also so to have used a gift bag within the 5th second after entering game according to this interval when playback to simulated object.This
Sample can guarantee that a operate to simulated object of M is the same.At M when simulated object all completes simulated operation, it can disconnect
Game connection, so far, the pressure test of server finishes.
Secondly, providing a kind of mode for setting test pattern according to demand in the embodiment of the present application, obtaining delay first
Then setting instruction sends the second sequence of operation file and delay setting instruction to simulated object to multiple, so that N number of to mould
Quasi- object is communicated with server within a preset time, according to the second sequence of operation file.By the above-mentioned means, can be true
Simulation, which goes out, to be opened when taking, and a large number of users enters situation when application server, thus the practicability and adaptability of lifting scheme.
The pressure test device in the application is described in detail below, referring to Fig. 3, Fig. 3 is the embodiment of the present application
Middle pressure test device one embodiment schematic diagram, pressure test device 20 include:
Module 201 is obtained, for obtaining the first sequence of operation file, wherein the first sequence of operation file is according to client
Communication information between end and server is generated;
Generation module 202, first second sequence of operation of sequence of operation file generated for being obtained according to module 201 is obtained
File, wherein the second sequence of operation file has different parameter informations from the first sequence of operation file;
Sending module 203, for sending second sequence of operation text that generation module 202 generates to simulated object to multiple
Part, so as to each be communicated according to the second sequence of operation file with server to simulated object, wherein each to simulated object
A corresponding account information;
Module 201 is obtained, is also used to when each when simulated object is communicated with server completion, obtains the pressure of server
Test result.
It in the present embodiment, obtains module 201 and obtains the first sequence of operation file, wherein the first sequence of operation file is root
First behaviour generated according to the communication information between client and server, that generation module 202 is obtained according to module 201 is obtained
Make sequence file generated second sequence of operation file, wherein the second sequence of operation file and the first sequence of operation file have not
Same parameter information, sending module 203 send second sequences of operation text that generation module 202 generates to simulated object to multiple
Part, so as to each be communicated according to the second sequence of operation file with server to simulated object, wherein each to simulated object
A corresponding account information obtains the pressure that module 201 obtains server when each when simulated object is communicated with server completion
Power test result.
In the embodiment of the present application, a kind of method of pressure test is provided, obtains the first sequence of operation file first, first
Sequence of operation file is generated according to the communication information between client and server, then according to first sequence of operation text
Part generates the second sequence of operation file, and the second sequence of operation file has different parameter informations from the first sequence of operation file,
The second sequence of operation file is sent to simulated object to multiple again, so that each to simulated object according to the second sequence of operation file
It is communicated with server, each to the corresponding account information of simulated object, is completed when each to simulated object and server
When communication, the pressure testing results of server are obtained.By the above-mentioned means, the true operation between record client and server
Then sequence generates simulated operation sequence according to true operation sequence, finally complete to test using simulated operation sequence, one
Aspect writes code with human cost without taking a substantial amount of time, on the other hand, according to true operation series model client
Operation can more closing to reality situation, to promote the accuracy of server stress test.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, pressure test device provided by the embodiments of the present application
In 20 another embodiment,
Module 201 is obtained, specifically for obtaining message after client is communicated using target account with server
Recorded file, wherein target account is the account that client creates in the application, and message recording file is client use
Recording tool is recorded;
According to message recording file generated first sequence of operation file, wherein include multiple in the first sequence of operation file
Operation information.
Secondly, providing a kind of mode for obtaining the first sequence of operation file in the embodiment of the present application, i.e., being adopted in client
After being communicated with target account with server, message recording file is obtained, wherein target account is that client is applying journey
The account created in sequence, message recording file are what client was recorded using recording tool, then according to message recording text
Part generates the first sequence of operation file, wherein includes multiple operation informations in the first sequence of operation file.By the above-mentioned means,
It can use the message recording tool recording operation sequential file of client-side, be not necessarily to manual compilation operation code, in addition, going out
When existing application version updates, it is only necessary to a user's operation is recorded again, to save a large amount of time
And cost.And during recording operation sequential file, the operating process recorded and completed can choose, also can choose only
The operating process of some function is recorded, thus the flexibility of lifting scheme.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, pressure test device provided by the embodiments of the present application
In 20 another embodiment,
Generation module 202, if the first behaviour of instruction adjustment is arranged according to timing specifically for getting timing setting instruction
Make the timing of operation information in sequential file;
Get parms setting instruction;
Parameter Substitution Rules are determined according to parameter setting instruction;
The first sequence of operation file is handled according to parameter Substitution Rules, obtains the second sequence of operation file.
Secondly, being provided a kind of according to the first sequence of operation file generated second sequence of operation text in the embodiment of the present application
The mode of part is arranged to operate in instruction the first sequence of operation file of adjustment according to timing and believe if getting timing setting instruction
The timing of breath, get parms setting instruction, then determines parameter Substitution Rules according to parameter setting instruction, is finally replaced according to parameter
It changes rule to handle the first sequence of operation file, obtains the second sequence of operation file.By the above-mentioned means, user can be with hand
The information such as parameter and timing in the dynamic setting sequence of operation, so as to be more nearly test scene, thus lifting scheme
Flexibility.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, pressure test device provided by the embodiments of the present application
In 20 another embodiment,
Generation module 202 determines the first operation information and the second operation information specifically for being arranged to instruct according to timing
Sequential relationship, wherein the first operation information and the second operation information belong to the operation information in the first sequence of operation file;
According to the sequential relationship of the first operation information and the second operation information, the first operation information is set to the second operation
Before information.
Again, in the embodiment of the present application, a kind of mode of timing that operation information is set is provided, i.e., is arranged according to timing
The sequential relationship for determining the first operation information and the second operation information is instructed, is then believed according to the first operation information and the second operation
First operation information is set to before the second operation information by the sequential relationship of breath.By the above-mentioned means, user can set manually
The information such as the timing in the sequence of operation are set, so as to be more nearly test scene, the thus flexibility of lifting scheme.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, pressure test device provided by the embodiments of the present application
In 20 another embodiment,
Module 201 is obtained, is also used to send the second sequence of operation file to simulated object to multiple in sending module, so that
Before each being communicated according to the second sequence of operation file with server to simulated object, delay setting instruction is obtained, wherein
It is N number of to the identical operation of simulated object progress that delay setting instructs instruction to exist within a preset time, and N is more than or equal to 1
Integer;
Sending module 203 is specifically used for sending the second sequence of operation file and delay setting to simulated object to multiple
Instruction so that it is N number of to simulated object within a preset time, communicated according to the second sequence of operation file with server.
Secondly, providing a kind of mode for setting test pattern according to demand in the embodiment of the present application, obtaining delay first
Then setting instruction sends the second sequence of operation file and delay setting instruction to simulated object to multiple, so that N number of to mould
Quasi- object is communicated with server within a preset time, according to the second sequence of operation file.By the above-mentioned means, can be true
Simulation, which goes out, to be opened when taking, and a large number of users enters situation when application server, thus the practicability and adaptability of lifting scheme.
Fig. 4 is a kind of server architecture schematic diagram provided by the embodiments of the present application, which can be because of configuration or performance
It is different and generate bigger difference, it may include one or more central processing units (central processing
Units, CPU) 322 (for example, one or more processors) and memory 332, one or more storages apply journey
The storage medium 330 (such as one or more mass memory units) of sequence 342 or data 344.Wherein, 332 He of memory
Storage medium 330 can be of short duration storage or persistent storage.The program for being stored in storage medium 330 may include one or one
With upper module (diagram does not mark), each module may include to the series of instructions operation in server.Further, in
Central processor 322 can be set to communicate with storage medium 330, execute on server 300 a series of in storage medium 330
Instruction operation.
Server 300 can also include one or more power supplys 326, one or more wired or wireless networks
Interface 350, one or more input/output interfaces 358, and/or, one or more operating systems 341, such as
Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The step as performed by server can be based on the server architecture shown in Fig. 4 in above-described embodiment.
In the embodiment of the present application, CPU 322 included by the server is also with the following functions:
Obtain the first sequence of operation file, wherein first sequence of operation file be according to client and server it
Between communication information it is generated;
According to first sequence of operation file generated, second sequence of operation file;
Second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to described the
Two sequence of operation files are communicated with the server, wherein described each to the corresponding account information of simulated object;
When it is described each communicated when the completion of simulated object and the server when, obtain the pressure test knot of the server
Fruit.
Optionally, CPU 322 is specifically used for executing following steps:
After the client is communicated using target account with the server, message recording file is obtained,
In, the target account is the account that the client creates in the application, and the message recording file is the client
What end was recorded using recording tool;
The first sequence of operation file according to the message recording file generated, wherein first sequence of operation text
It include multiple operation informations in part.
Optionally, CPU 322 is specifically used for executing following steps:
If getting timing setting instruction, instruction is arranged according to the timing and is adjusted in first sequence of operation file
The timing of operation information;
Get parms setting instruction;
Parameter Substitution Rules are determined according to the parameter setting instruction;
First sequence of operation file is handled according to the parameter Substitution Rules, obtains the second operation sequence
Column file.
Optionally, CPU 322 is specifically used for executing following steps:
It is arranged according to the timing and instructs the sequential relationship for determining the first operation information and the second operation information, wherein institute
State the operation information that the first operation information is belonged to second operation information in first sequence of operation file;
According to the sequential relationship of first operation information and the second operation information, first operation information is set to
Before second operation information.
Optionally, CPU 322 is also used to execute following steps:
Obtain delay setting instruction, wherein delay setting instruction indicates to exist within a preset time N number of wait simulate pair
As carrying out identical operation, the N is the integer more than or equal to 1;
It is described to send second sequence of operation file to simulated object to multiple, so that each to simulated object according to institute
The second sequence of operation file is stated to be communicated with the server, comprising:
Second sequence of operation file and delay setting instruction are sent to simulated object to the multiple, so that
It is described it is N number of to simulated object in the preset time, led to according to second sequence of operation file with the server
Letter.
The embodiment of the present application also provides another image display control apparatus, as shown in figure 5, for ease of description, only
Part relevant to the embodiment of the present application is shown, it is disclosed by specific technical details, please refer to the embodiment of the present application method portion
Point.The terminal device can be include mobile phone, tablet computer, personal digital assistant (personal digital assistant,
PDA), any terminal device such as point-of-sale terminal equipment (point of sales, POS), vehicle-mounted computer, using terminal device as mobile phone
For:
Fig. 5 shows the block diagram of the part-structure of mobile phone relevant to terminal device provided by the embodiments of the present application.Ginseng
Fig. 5 is examined, mobile phone includes: radio frequency (radio frequency, RF) circuit 410, memory 420, input unit 430, display unit
440, sensor 450, voicefrequency circuit 460, Wireless Fidelity (wireless fidelity, WiFi) module 470, processor 480,
And the equal components of power supply 490.It will be understood by those skilled in the art that handset structure shown in Fig. 5 is not constituted to mobile phone
It limits, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Fig. 5 to mobile phone:
RF circuit 410 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 480;In addition, the data for designing uplink are sent to base station.In general, RF circuit 410
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (low
Noiseamplifier, LNA), duplexer etc..In addition, RF circuit 410 can also by wireless communication with network and other equipment
Communication.Any communication standard or agreement, including but not limited to global system for mobile communications can be used in above-mentioned wireless communication
(global system of mobile communication, GSM), general packet radio service (general packet
Radio service, GPRS), CDMA (code division multiple access, CDMA), wideband code division multiple access
(wideband code division multiple access, WCDMA), long term evolution (long term evolution,
LTE), Email, short message service (short messaging service, SMS) etc..
Memory 420 can be used for storing software program and module, and processor 480 is stored in memory 420 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 420 can mainly include
Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function
Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone
Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 420 may include high-speed random access memory
Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states
Part.
Input unit 430 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input unit 430 may include that touch panel 431 and other inputs are set
Standby 432.Touch panel 431, also referred to as touch screen, collect user on it or nearby touch operation (such as user use
The operation of any suitable object or attachment such as finger, stylus on touch panel 431 or near touch panel 431), and root
Corresponding attachment device is driven according to preset formula.Optionally, touch panel 431 may include touch detecting apparatus and touch
Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected,
Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching
Point coordinate, then gives processor 480, and can receive order that processor 480 is sent and be executed.Furthermore, it is possible to using electricity
The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 431.In addition to touch panel 431, input
Unit 430 can also include other input equipments 432.Specifically, other input equipments 432 can include but is not limited to secondary or physical bond
One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 440 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 440 may include display panel 441, optionally, can use liquid crystal display (liquid crystal
Display, LCD), the forms such as Organic Light Emitting Diode (organic light-emitting diode, OLED) it is aobvious to configure
Show panel 441.Further, touch panel 431 can cover display panel 441, when touch panel 431 detect it is on it or attached
After close touch operation, processor 480 is sent to determine the type of touch event, is followed by subsequent processing device 480 according to touch event
Type corresponding visual output is provided on display panel 441.Although in Fig. 5, touch panel 431 and display panel 441
It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control
Panel 431 and display panel 441 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 450, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel 441, proximity sensor can close display panel 441 when mobile phone is moved in one's ear
And/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions
Size, can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture, (for example horizontal/vertical screen is cut
Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone
The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor of configuration, details are not described herein.
Voicefrequency circuit 460, loudspeaker 461, microphone 462 can provide the audio interface between user and mobile phone.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 461, be converted to sound by loudspeaker 461 by road 460
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 462, is turned after being received by voicefrequency circuit 460
It is changed to audio data, then by after the processing of audio data output processor 480, such as another mobile phone is sent to through RF circuit 410,
Or audio data is exported to memory 420 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 470
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown
WiFi module 470, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 480 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 420, and call and be stored in memory 420
Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 480 can wrap
Include one or more processing units;Optionally, processor 480 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 480.
Mobile phone further includes the power supply 490 (such as battery) powered to all parts, and optionally, power supply can pass through power supply pipe
Reason system and processor 480 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In the embodiment of the present application, processor 480 included by the terminal device is also with the following functions:
Obtain the first sequence of operation file, wherein first sequence of operation file be according to client and server it
Between communication information it is generated;
According to first sequence of operation file generated, second sequence of operation file;
Second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to described the
Two sequence of operation files are communicated with the server, wherein described each to the corresponding account information of simulated object;
When it is described each communicated when the completion of simulated object and the server when, obtain the pressure test knot of the server
Fruit.
Optionally, processor 480 is specifically used for executing following steps:
After the client is communicated using target account with the server, message recording file is obtained,
In, the target account is the account that the client creates in the application, and the message recording file is the client
What end was recorded using recording tool;
The first sequence of operation file according to the message recording file generated, wherein first sequence of operation text
It include multiple operation informations in part.
Optionally, processor 480 is specifically used for executing following steps:
If getting timing setting instruction, instruction is arranged according to the timing and is adjusted in first sequence of operation file
The timing of operation information;
Get parms setting instruction;
Parameter Substitution Rules are determined according to the parameter setting instruction;
First sequence of operation file is handled according to the parameter Substitution Rules, obtains the second operation sequence
Column file.
Optionally, processor 480 is specifically used for executing following steps:
It is arranged according to the timing and instructs the sequential relationship for determining the first operation information and the second operation information, wherein institute
State the operation information that the first operation information is belonged to second operation information in first sequence of operation file;
According to the sequential relationship of first operation information and the second operation information, first operation information is set to
Before second operation information.
Optionally, processor 480 is also used to execute following steps:
Obtain delay setting instruction, wherein delay setting instruction indicates to exist within a preset time N number of wait simulate pair
As carrying out identical operation, the N is the integer more than or equal to 1;
It is described to send second sequence of operation file to simulated object to multiple, so that each to simulated object according to institute
The second sequence of operation file is stated to be communicated with the server, comprising:
Second sequence of operation file and delay setting instruction are sent to simulated object to the multiple, so that
It is described it is N number of to simulated object in the preset time, led to according to second sequence of operation file with the server
Letter.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-onlymemory,
ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (12)
1. a kind of method of pressure test characterized by comprising
Obtain the first sequence of operation file, wherein first sequence of operation file is according between client and server
Communication information is generated;
According to first sequence of operation file generated, second sequence of operation file;
Second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to second behaviour
Make sequential file to be communicated with the server, wherein described each to the corresponding account information of simulated object;
When it is described each communicated when the completion of simulated object and the server when, obtain the pressure testing results of the server.
2. the method according to claim 1, wherein the first sequence of operation file of the acquisition, comprising:
After the client is communicated using target account with the server, message recording file is obtained, wherein institute
Stating target account is the account that the client creates in the application, and the message recording file is client use
Recording tool is recorded;
The first sequence of operation file according to the message recording file generated, wherein in first sequence of operation file
Including multiple operation informations.
3. the method according to claim 1, wherein described according to first sequence of operation file generated second
Sequence of operation file, comprising:
If getting timing setting instruction, it is arranged in instruction adjustment first sequence of operation file according to the timing and is operated
The timing of information;
Get parms setting instruction;
Parameter Substitution Rules are determined according to the parameter setting instruction;
First sequence of operation file is handled according to the parameter Substitution Rules, obtains second sequence of operation text
Part.
4. according to the method described in claim 3, it is characterized in that, described be arranged instruction adjustment described first according to the timing
The timing of operation information in sequence of operation file, comprising:
It is arranged according to the timing and instructs the sequential relationship for determining the first operation information and the second operation information, wherein described the
One operation information and second operation information belong to the operation information in first sequence of operation file;
According to the sequential relationship of first operation information and the second operation information, first operation information is set to described
Before second operation information.
5. method according to claim 1 to 4, which is characterized in that described to be sent to multiple to simulated object
Second sequence of operation file so that each to simulated object according to second sequence of operation file and the server into
Before row communication, the method also includes:
Obtain delay setting instruction, wherein delay setting instruction indicate to exist within a preset time it is N number of to simulated object into
The identical operation of row, the N are the integer more than or equal to 1;
It is described to send second sequence of operation file to simulated object to multiple, so that each to simulated object according to described the
Two sequence of operation files are communicated with the server, comprising:
Second sequence of operation file and delay setting instruction are sent to simulated object to the multiple, so that described
It is N number of to simulated object in the preset time, communicated according to second sequence of operation file with the server.
6. a kind of pressure test device characterized by comprising
Obtain module, for obtain the first sequence of operation file, wherein first sequence of operation file be according to client with
Communication information between server is generated;
Generation module, first sequence of operation file generated, second sequence of operation text for being obtained according to the acquisition module
Part, wherein second sequence of operation file has different parameter informations from first sequence of operation file;
Sending module, for sending second sequence of operation file that the generation module generates to simulated object to multiple,
So as to each be communicated according to second sequence of operation file with the server to simulated object, wherein described each
To the corresponding account information of simulated object;
The acquisition module, be also used to when it is described each communicated when the completion of simulated object and the server when, obtain the clothes
The pressure testing results of business device.
7. pressure test device according to claim 6, which is characterized in that
The acquisition module, specifically for obtaining after the client is communicated using target account with the server
Take message recorded file, wherein the target account is the account that the client creates in the application, the message record
The file client processed is recorded to obtain using recording tool;
The first sequence of operation file according to the message recording file generated, wherein in first sequence of operation file
Including multiple operation informations.
8. pressure test device according to claim 6, which is characterized in that
The generation module, if being arranged according to the timing and being instructed described in adjustment specifically for getting timing setting instruction
The timing of operation information in first sequence of operation file;
Get parms setting instruction;
Parameter Substitution Rules are determined according to the parameter setting instruction;
First sequence of operation file is handled according to the parameter Substitution Rules, obtains second sequence of operation text
Part.
9. pressure test device according to claim 8, which is characterized in that
The generation module determines the first operation information and the second operation information specifically for being arranged to instruct according to the timing
Sequential relationship, wherein first operation information and second operation information belong in first sequence of operation file
The operation information;
According to the sequential relationship of first operation information and the second operation information, first operation information is set to described
Before second operation information.
10. pressure test device according to any one of claims 6 to 9, which is characterized in that
The acquisition module is also used to send second sequence of operation text to simulated object to multiple in the sending module
Part, so that acquisition is prolonged before each being communicated according to second sequence of operation file with the server to simulated object
Instruction is set late, wherein the delay setting instruction instruction exists N number of to the identical behaviour of simulated object progress within a preset time
Make, the N is the integer more than or equal to 1;
The sending module is specifically used for the multiple to simulated object transmission second sequence of operation file and described
Delay setting instruction so that it is described it is N number of to simulated object in the preset time, according to second sequence of operation file with
The server is communicated.
11. a kind of electronic equipment characterized by comprising memory, transceiver, processor and bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
Obtain the first sequence of operation file, wherein first sequence of operation file is according between client and server
Communication information is generated;
According to first sequence of operation file generated, second sequence of operation file, wherein second sequence of operation file with
First sequence of operation file has different parameter informations;
Second sequence of operation file is sent to simulated object to multiple, so that each to simulated object according to second behaviour
Make sequential file to be communicated with the server, wherein described each to the corresponding account information of simulated object;
When it is described each communicated when the completion of simulated object and the server when, obtain the pressure testing results of the server;
The bus system is for connecting the memory and the processor, so that the memory and the processor
It is communicated.
12. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as
Method described in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376878.8A CN110069375A (en) | 2019-05-07 | 2019-05-07 | A kind of method and relevant apparatus of pressure test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376878.8A CN110069375A (en) | 2019-05-07 | 2019-05-07 | A kind of method and relevant apparatus of pressure test |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110069375A true CN110069375A (en) | 2019-07-30 |
Family
ID=67370421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910376878.8A Pending CN110069375A (en) | 2019-05-07 | 2019-05-07 | A kind of method and relevant apparatus of pressure test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110069375A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111274112A (en) * | 2020-01-22 | 2020-06-12 | 世纪龙信息网络有限责任公司 | Application program pressure test method and device, computer equipment and storage medium |
CN111338865A (en) * | 2020-02-19 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Test method, test device and computer readable storage medium |
CN112817875A (en) * | 2021-03-12 | 2021-05-18 | 中国工商银行股份有限公司 | Online banking transaction pressure automatic testing method and device and RPA robot |
CN112965901A (en) * | 2021-03-05 | 2021-06-15 | 北京百度网讯科技有限公司 | API testing method, server, system and electronic equipment |
CN112988552A (en) * | 2019-12-12 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Application program testing method, device, equipment and storage medium |
CN113725685A (en) * | 2021-08-26 | 2021-11-30 | 展讯通信(上海)有限公司 | Pressure test switching device, system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915270A (en) * | 2012-09-14 | 2013-02-06 | 福建升腾资讯有限公司 | Method for recording storage I/O (input/output) requirement and verifying pressure simulation |
CN106201854A (en) * | 2015-05-04 | 2016-12-07 | 北京畅游天下网络技术有限公司 | A kind of server load method of testing based on socket and system |
CN109359003A (en) * | 2018-10-29 | 2019-02-19 | 网易(杭州)网络有限公司 | Game server method for testing pressure, device and equipment |
CN109542777A (en) * | 2018-11-07 | 2019-03-29 | 北京搜狗科技发展有限公司 | A kind of method for testing pressure, device and readable medium |
-
2019
- 2019-05-07 CN CN201910376878.8A patent/CN110069375A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915270A (en) * | 2012-09-14 | 2013-02-06 | 福建升腾资讯有限公司 | Method for recording storage I/O (input/output) requirement and verifying pressure simulation |
CN106201854A (en) * | 2015-05-04 | 2016-12-07 | 北京畅游天下网络技术有限公司 | A kind of server load method of testing based on socket and system |
CN109359003A (en) * | 2018-10-29 | 2019-02-19 | 网易(杭州)网络有限公司 | Game server method for testing pressure, device and equipment |
CN109542777A (en) * | 2018-11-07 | 2019-03-29 | 北京搜狗科技发展有限公司 | A kind of method for testing pressure, device and readable medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988552A (en) * | 2019-12-12 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Application program testing method, device, equipment and storage medium |
CN112988552B (en) * | 2019-12-12 | 2023-06-30 | 腾讯科技(深圳)有限公司 | Application program testing method, device, equipment and storage medium |
CN111274112A (en) * | 2020-01-22 | 2020-06-12 | 世纪龙信息网络有限责任公司 | Application program pressure test method and device, computer equipment and storage medium |
CN111274112B (en) * | 2020-01-22 | 2023-07-07 | 天翼数字生活科技有限公司 | Application program pressure measurement method, device, computer equipment and storage medium |
CN111338865A (en) * | 2020-02-19 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Test method, test device and computer readable storage medium |
CN112965901A (en) * | 2021-03-05 | 2021-06-15 | 北京百度网讯科技有限公司 | API testing method, server, system and electronic equipment |
CN112965901B (en) * | 2021-03-05 | 2023-08-01 | 北京百度网讯科技有限公司 | API testing method, server, system and electronic equipment |
CN112817875A (en) * | 2021-03-12 | 2021-05-18 | 中国工商银行股份有限公司 | Online banking transaction pressure automatic testing method and device and RPA robot |
CN112817875B (en) * | 2021-03-12 | 2024-02-13 | 中国工商银行股份有限公司 | Automatic online banking transaction pressure testing method and device and RPA robot |
CN113725685A (en) * | 2021-08-26 | 2021-11-30 | 展讯通信(上海)有限公司 | Pressure test switching device, system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110069375A (en) | A kind of method and relevant apparatus of pressure test | |
CN110141864B (en) | Automatic game testing method and device and terminal | |
CN108984087B (en) | Social interaction method and device based on three-dimensional virtual image | |
CN107943683B (en) | Test script generation method and device, electronic equipment and storage medium | |
CN109412900A (en) | A kind of network state knows the method and device of method for distinguishing, model training | |
CN108959000A (en) | A kind of server stress test method, system and terminal | |
CN111383309B (en) | Skeleton animation driving method, device and storage medium | |
CN106693367B (en) | Processing method for displaying data at client, server and client | |
CN106303733B (en) | Method and device for playing live special effect information | |
CN104657203B (en) | Task executing method, device and system | |
CN103472756A (en) | Artificial intelligence achieving method, server and equipment | |
CN110210605B (en) | Hardware operator matching method and related product | |
CN105208458A (en) | Virtual frame display method and device | |
CN111686447B (en) | Method and related device for processing data in virtual scene | |
CN108958629B (en) | Split screen quitting method and device, storage medium and electronic equipment | |
CN103530520A (en) | Method and terminal for obtaining data | |
CN112774194B (en) | Virtual object interaction method and related device | |
CN106293901A (en) | The process management method of a kind of terminal applies and device | |
CN108562890A (en) | Calibration method, device and the computer readable storage medium of ultrasonic wave characteristic value | |
CN112169327A (en) | Control method of cloud game and related device | |
CN112100076B (en) | Game testing method, related device, equipment and storage medium | |
CN114011068A (en) | Method and related device for processing virtual prop | |
CN110064196A (en) | Method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN108255631A (en) | Mobile terminal restarts localization method, mobile terminal and computer readable storage medium | |
CN108744505A (en) | A kind of method of rate control, terminal and computer readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190730 |