CN108280024A - Traffic distribution strategy test method, device and electronic equipment - Google Patents

Traffic distribution strategy test method, device and electronic equipment Download PDF

Info

Publication number
CN108280024A
CN108280024A CN201711486557.0A CN201711486557A CN108280024A CN 108280024 A CN108280024 A CN 108280024A CN 201711486557 A CN201711486557 A CN 201711486557A CN 108280024 A CN108280024 A CN 108280024A
Authority
CN
China
Prior art keywords
imei
app
url
page
traffic distribution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711486557.0A
Other languages
Chinese (zh)
Other versions
CN108280024B (en
Inventor
邢昆杉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711486557.0A priority Critical patent/CN108280024B/en
Publication of CN108280024A publication Critical patent/CN108280024A/en
Application granted granted Critical
Publication of CN108280024B publication Critical patent/CN108280024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

A kind of traffic distribution strategy test method of offer of the embodiment of the present invention, device and electronic equipment, this method include:Multiple uniform resource position mark URLs are sent using multiple International Mobile Equipment Identity code IMEI to the server of application APP to ask;The server for receiving the APP is directed to the URL that each URL request is returned;According to the quantity of page iden-tity and the IMEI in the URL of the return, determine whether preset traffic distribution strategy is correct.By this method so that traffic distribution strategy can be verified before APP reaches the standard grade, to ensure the normal operation after APP reaches the standard grade.

Description

Traffic distribution strategy test method, device and electronic equipment
Technical field
The present embodiments relate to a kind of computer technology more particularly to traffic distribution strategy test method, device and electricity Sub- equipment.
Background technology
Application program (Application, abbreviation APP) needs to carry out interface testing.Interface testing is test system components A kind of test of interface.Interface testing is mainly for detection of between external system and system and between internal subsystems Interaction point.The emphasis of test is the exchange of data to be checked, transmits the mutual logic between control management process and system Dependence etc..In some APP, it is understood that there may be some functions, it is desirable that different interfaces can be shown to different user, to observe The effect that different page presentations are brought, these functions issue a certain proportion of stochastic-flow of setting by back office interface and distribute.
In the prior art, the function that above-mentioned requirements can show different user with different interfaces, by burying side a little Formula distinguishes the displaying situation of the different pages by parameter, and user triggers above-mentioned function constantly, buries point data upload.When user volume reaches When to certain quantity, point data is buried by statistics, verifies the correctness of traffic distribution strategy.
But using the method for the prior art, traffic distribution strategy can not be tested before demand is reached the standard grade.
Invention content
A kind of traffic distribution strategy test method of offer of the embodiment of the present invention, device and electronic equipment, it is existing for solving In technology the problem of can not be tested traffic distribution strategy before demand is reached the standard grade.
First aspect of the embodiment of the present invention provides a kind of traffic distribution strategy test method, including:
Multiple unified resources are sent using multiple International Mobile Equipment Identity code IMEI to the server of application APP to determine Position symbol URL request;
The server for receiving the APP is directed to the URL that each URL request is returned;
According to the quantity of page iden-tity and the IMEI in the URL of the return, preset assignment of traffic plan is determined It is slightly whether correct.
Further, the page iden-tity in the URL according to the return and the quantity of the IMEI determine default Traffic distribution strategy it is whether correct, including:
According to the quantity of page iden-tity and the IMEI in the URL of the return, it is right to count each page iden-tity institute Answer the access ratio of the page;
The access ratio for judging the page corresponding to each page iden-tity and page mark described in preset traffic distribution strategy Whether the difference for knowing the ratio of the corresponding page is less than preset value, if so, determining that the traffic distribution strategy is correct.
Further, it is described using multiple IMEI to the server of APP send URL request before, further include:
Obtain the multiple IMEI;
Determine that required parameter, the required parameter include:The operation system information of terminal where the APP and described The version information of APP.
Further, described to send multiple URL requests to the server of APP using multiple IMEI, including:
Send the corresponding URL requests of each IMEI respectively to the server of APP, the URL request include the IMEI, The version information of the operation system information of terminal where the APP and the APP.
Further, the multiple IMEI of acquisition, including:
The multiple IMEI is read from IMEI files, wherein the IMEI of preset quantity, institute are stored in the IMEI files IMEI is stated not repeat mutually.
Second aspect of the embodiment of the present invention provides a kind of traffic distribution strategy test device, including:
Sending module, for being sent to the server of application APP using multiple International Mobile Equipment Identity code IMEI Multiple uniform resource position mark URL requests;
Receiving module, the server for receiving the APP are directed to the URL that each URL request is returned;
Processing module determines default for the quantity according to page iden-tity and the IMEI in the URL of the return Traffic distribution strategy it is whether correct.
Further, the processing module includes:
Statistic unit, for the quantity according to page iden-tity and the IMEI in the URL of the return, statistics is each The access ratio of the page corresponding to page iden-tity;
Determination unit, the access ratio for judging the page corresponding to each page iden-tity and preset traffic distribution strategy Described in the difference of ratio of the page corresponding to page iden-tity whether be less than preset value, if so, determining the assignment of traffic plan It is slightly positive true.
Further, further include:
Acquisition module, for obtaining the multiple IMEI;
Determining module, for determining that required parameter, the required parameter include:The operation system of terminal where the APP The version information of information of uniting and the APP.
Further, the sending module is specifically used for:
Send the corresponding URL requests of each IMEI respectively to the server of APP, the URL request include the IMEI, The version information of the operation system information of terminal where the APP and the APP.
Further, the acquisition module is specifically used for:
The multiple IMEI is read from IMEI files, wherein the IMEI of preset quantity, institute are stored in the IMEI files IMEI is stated not repeat mutually.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, including:
Memory, for storing program instruction;
Processor executes the side described in above-mentioned first aspect for calling and executing the program instruction in the memory Method step.
Fourth aspect of the embodiment of the present invention provides a kind of readable storage medium storing program for executing, and calculating is stored in the readable storage medium storing program for executing Machine program, when at least one processor of traffic distribution strategy test device executes the computer program, assignment of traffic plan Slightly test device executes the traffic distribution strategy test method described in above-mentioned first aspect.
The 5th aspect of the embodiment of the present invention provides a kind of program product, which includes computer program, the calculating Machine program is stored in readable storage medium storing program for executing.At least one processor of traffic distribution strategy test device can be from readable storage Medium reads the computer program, and at least one processor executes the computer program and so that traffic distribution strategy test device is real Apply the traffic distribution strategy test method of first aspect.
Traffic distribution strategy test method, device and the electronic equipment that the embodiment of the present invention is provided, terminal is by clothes Business device sends multiple URL requests for multiple IMEI, so that server carries out page distribution respectively for these IMEI, Terminal so according in the returned URL of server page iden-tity and IMEI quantity count actual page distribution condition, It is whether correct that preset traffic distribution strategy can be verified based on the actual page distribution condition, and then can be tied according to verification Fruit executes corresponding correcting process.Make that traffic distribution strategy can be verified before APP reaches the standard grade through this embodiment, from And ensure the normal operation after APP reaches the standard grade.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some embodiments of bright embodiment, for those of ordinary skill in the art, without having to pay creative labor, Other drawings may also be obtained based on these drawings.
Fig. 1 is the system architecture diagram of traffic distribution strategy test method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of traffic distribution strategy test method embodiment one provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of traffic distribution strategy test method embodiment two provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of traffic distribution strategy test method embodiment three provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of traffic distribution strategy test method example IV provided in an embodiment of the present invention;
Fig. 6 is the function structure chart of traffic distribution strategy test device embodiment one provided in an embodiment of the present invention;
Fig. 7 is the function structure chart of traffic distribution strategy test device embodiment two provided in an embodiment of the present invention;
Fig. 8 is the function structure chart of traffic distribution strategy test device embodiment three provided in an embodiment of the present invention;
Fig. 9 is the entity block diagram of electronic equipment embodiment one provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the embodiment of the present invention, instead of all the embodiments.Based on the embodiment in the embodiment of the present invention, this field The every other embodiment that those of ordinary skill is obtained without creative efforts, belongs to implementation of the present invention The range of example protection.
In the prior art, it needs after demand is reached the standard grade, i.e., just whether is able to verify that traffic distribution strategy after practical application Rationally, if verified, traffic distribution strategy is unreasonable, needs to issue new APP versions again to be modified.In addition, existing There is the actual use user that the method for technology also needs to APP to reach enough quantity and can just verify traffic distribution strategy.
The embodiment of the present invention based on the above issues, proposes a kind of traffic distribution strategy test method, before APP reaches the standard grade i.e. Traffic distribution strategy can be verified, to ensure the normal operation after APP reaches the standard grade.
Fig. 1 is the system architecture diagram of traffic distribution strategy test method provided in an embodiment of the present invention, as shown in Figure 1, should Method is related to terminal and server, wherein server is the server of APP, and terminal is that the desktop of simulation test is carried out to APP Brain etc. simulates APP and generates corresponding request and send the requests to server, receives the knot that server returns on the terminal Fruit, and the result returned to server is analyzed.
Fig. 2 is the flow diagram of traffic distribution strategy test method embodiment one provided in an embodiment of the present invention, the party The executive agent of method is above-mentioned terminal, such as desktop computer, laptop etc., as shown in Fig. 2, this method includes:
S201, multiple International Mobile Equipment Identity codes (International Mobile Equipment are used Identity, abbreviation IMEI) to the server of APP send multiple uniform resource locator (Uniform Resource Locator, abbreviation URL) request.
Optionally, terminal can get multiple IMEI in advance, these IMEI are unduplicated IMEI at random.
In turn, a URL request is constructed respectively for each IMEI, and be separately sent to server.
Optionally, terminal once can send multiple URL requests to server, alternatively, can also in sequence one by one to Server sends URL request.
Wherein, the number that IMEI is made of 15 bit digitals, it is corresponded with each mobile phone, i.e. IMEI is mobile phone area Not with the unique mark of other mobile phones.After a corresponding URL request of specific IMEI is sent to server, server Judge that the request is which terminal is sent, and the operation of the terminal is directed to according to execution according to IMEI.
S202, the server for receiving above-mentioned APP are directed to the URL that each URL request is returned.
Can be the different displayed page of terminal distribution according to IMEI specifically, after server receives URL request, And the URL of displayed page is returned into terminal, so that terminal shows the page.
Illustratively, the URL that server is returned to terminal is:
"url":https://dis.123.com/discovery/homeIsShield=discoverya
Wherein, " isShield=discoverya " indicates that server is the page of terminal distribution, after " discovery " For page iden-tity, specially page a.
S203, according to the quantity of page iden-tity and above-mentioned IMEI in the URL of above-mentioned return, determine preset flow point It is whether correct with strategy.
After receiving the URL that server is returned for each IMEI, terminal can be according in the URL that server returns Page iden-tity and IMEI quantity, to count the practical distribution condition of the page, so by actual distribution condition with it is default Traffic distribution strategy be compared analysis, it is whether correct and rationally to verify preset traffic distribution strategy.
In the present embodiment, terminal is by sending multiple URL requests for multiple IMEI to server, so that service Device carries out page distribution respectively for these IMEI, terminal so that according in the returned URL of server page iden-tity and IMEI quantity counts actual page distribution condition, and preset flow point can be verified based on the actual page distribution condition It is whether correct with strategy, and then corresponding correcting process can be executed according to verification result.I.e. through this embodiment so that in APP Traffic distribution strategy can be verified before reaching the standard grade, to ensure the normal operation after APP reaches the standard grade.
On the basis of the above embodiments, the present embodiment is related to determining whether preset traffic distribution strategy is correctly specific Method.
Fig. 3 is the flow diagram of traffic distribution strategy test method embodiment two provided in an embodiment of the present invention, such as Fig. 3 Shown, this method includes:
S301, multiple URL requests are sent to the server of APP using multiple IMEI.
The specific implementation procedure of the step is identical as above-mentioned steps S201, is referred to above-mentioned steps S201, herein no longer It repeats.
S302, the server for receiving above-mentioned APP are directed to the URL that each URL request is returned.
The specific implementation procedure of the step is identical as above-mentioned steps S202, is referred to above-mentioned steps S202, herein no longer It repeats.
S303, according to the quantity of page iden-tity and above-mentioned IMEI in the URL of above-mentioned return, count each page iden-tity The access ratio of the corresponding page.
S304, the access ratio for judging the page corresponding to each page iden-tity and above-mentioned page in preset traffic distribution strategy Whether the difference of the ratio of the corresponding page of face mark is less than preset value, if so, thening follow the steps S305.
S305, determine that the traffic distribution strategy is correct.
Illustratively, it is assumed that terminal has got 10000 unduplicated IMEI, and the page that server can distribute includes Page A, page B, page C and page D.It is directed to 10000 IMEI's respectively when terminal to server has sent 10000 After URL request, 10000 URL of server transmission are received.By being counted to the page in 10000 URL, Obtained result is:
Page A:7002
Page B:522
Page C:466
Page D:2010
That is, in the actual assigning process of server, the allocation proportion of page A is about 70%, and the allocation proportion of page B is about The allocation proportion of 5%, page C are about 5%, and the allocation proportion of page D is about 20%.
And in the traffic distribution strategy of APP systemic presuppositions, A allocation proportions are 71%, and the allocation proportion of page B is 6%, page The allocation proportion of face C is 4%, and the allocation proportion of page D is 19%.The practical allocation proportion and preset flow point of each page Difference with the ratio in strategy only has 1%, hence, it can be determined that preset traffic distribution strategy holds water.
And if in the examples described above, in actual page allocation proportion and preset traffic distribution strategy in ratio Difference is larger, then illustrates preset traffic distribution strategy and unreasonable, then according to actual allocation proportion come to assignment of traffic plan It is slightly adjusted, to ensure that APP normally can accurately be run after reaching the standard grade.
In the present embodiment, terminal is by counting the access ratio of each page, and the actual access ratio that will be counted on It is compared with the ratio of each page in preset traffic distribution strategy, so that it is determined that whether preset traffic distribution strategy closes Reason.Since actual page access ratio is verified by enough IMEI, thereby it is ensured that comparing As a result accuracy.
On the basis of the above embodiments, the present embodiment is related to obtaining the specific method of multiple IMEI and required parameter.
Fig. 4 is the flow diagram of traffic distribution strategy test method embodiment three provided in an embodiment of the present invention, such as Fig. 4 Shown, this method includes:
S401, above-mentioned multiple IMEI are obtained.
In a kind of optional embodiment, the generation that terminal can be automated randomized according to the component law of IMEI counts enough The IMEI of amount, these IMEI are not repeated mutually, and in turn, terminal preserves the IMEI generated in one file, for example, can be with It is stored in a .txt file.
In turn, when that need to obtain multiple IMEI, terminal directly reads out all IMEI from above-mentioned file.
S402, required parameter is determined, which includes:The operation system information of terminal where above-mentioned APP and The version information of above-mentioned APP.
Specifically, when terminal sends URL request to service, other than needing to carry IMEI, it is also necessary to carried terminal Operation system information and APP version information so that server can be that APP distribution is suitable according to these required parameters The page.
S403, multiple URL requests are sent to the server of APP using multiple IMEI.
The specific implementation procedure of the step is identical as above-mentioned steps S201, is referred to above-mentioned steps S201, herein no longer It repeats.
S404, the server for receiving above-mentioned APP are directed to the URL that each URL request is returned.
The specific implementation procedure of the step is identical as above-mentioned steps S202, is referred to above-mentioned steps S202, herein no longer It repeats.
S405, according to the quantity of page iden-tity and above-mentioned IMEI in the URL of above-mentioned return, determine preset flow point It is whether correct with strategy.
The specific implementation procedure of the step is identical as above-mentioned steps S203, is referred to above-mentioned steps S203, herein no longer It repeats.
In the present embodiment, terminal gets enough IMEI first before sending URL request to server, and Required parameter is determined, to ensure that server can be that APP distributes the suitable page according to IMEI and required parameter.
On the basis of the above embodiments, the present embodiment is related to the specific method that terminal to server sends URL request.
Fig. 5 is the flow diagram of traffic distribution strategy test method example IV provided in an embodiment of the present invention, such as Fig. 5 Shown, this method includes:
S501, above-mentioned multiple IMEI are obtained.
The specific implementation procedure of the step is identical as above-mentioned steps S401, is referred to above-mentioned steps S401, herein no longer It repeats.
S502, required parameter is determined, which includes:The operation system information of terminal where above-mentioned APP and The version information of above-mentioned APP.
The specific implementation procedure of the step is identical as above-mentioned steps S402, is referred to above-mentioned steps S402, herein no longer It repeats.
S503, the corresponding URL requests of each IMEI are sent respectively to the server of APP, which includes above-mentioned The operation system information of terminal where IMEI, above-mentioned APP and the version information of above-mentioned APP.
After getting IMEI and above-mentioned required parameter, terminal to server sends URL identical with IMEI quantity Request, and in each URL request carry IMEI, operation system information and APP version information so that server can To be that APP distributes the suitable page according to IMEI and required parameter.
S504, the server for receiving above-mentioned APP are directed to the URL that each URL request is returned.
The specific implementation procedure of the step is identical as above-mentioned steps S404, is referred to above-mentioned steps S404, herein no longer It repeats.
S505, according to the quantity of page iden-tity and above-mentioned IMEI in the URL of above-mentioned return, determine preset flow point It is whether correct with strategy.
The specific implementation procedure of the step is identical as above-mentioned steps S405, is referred to above-mentioned steps S405, herein no longer It repeats.
In the present embodiment, terminal carried in each URL request IMEI, operation system information and APP version information, So that server can be that APP distributes the suitable page according to IMEI and required parameter, it is further ensured that verification result Accuracy.
Fig. 6 is the function structure chart of traffic distribution strategy test device embodiment one provided in an embodiment of the present invention, such as Fig. 6 Shown, which includes:
Sending module 601, for being sent out to the server of application APP using multiple International Mobile Equipment Identity code IMEI Multiple uniform resource position mark URLs are sent to ask.
Receiving module 602, the server for receiving the APP are directed to the URL that each URL request is returned.
Processing module 603 is determined for the quantity according to page iden-tity and the IMEI in the URL of the return Whether preset traffic distribution strategy is correct.
For the device for realizing preceding method embodiment, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 7 is the function structure chart of traffic distribution strategy test device embodiment two provided in an embodiment of the present invention, such as Fig. 7 Shown, processing module 603 includes:
Statistic unit 6031, for the quantity according to page iden-tity and the IMEI in the URL of the return, statistics The access ratio of the page corresponding to each page iden-tity.
Determination unit 6032, the access ratio for judging the page corresponding to each page iden-tity and preset assignment of traffic Whether the difference of the ratio of the page corresponding to page iden-tity described in strategy is less than preset value, if so, determining the flow point With tactful correct.
Fig. 8 is the function structure chart of traffic distribution strategy test device embodiment three provided in an embodiment of the present invention, such as Fig. 8 It is shown, further include:
Acquisition module 604, for obtaining the multiple IMEI.
Determining module 605, for determining that required parameter, the required parameter include:The operation of terminal where the APP The version information of system information and the APP.
In another embodiment, sending module 601 is specifically used for:
Send the corresponding URL requests of each IMEI respectively to the server of APP, the URL request include the IMEI, The version information of the operation system information of terminal where the APP and the APP.
In another embodiment, acquisition module 604 is specifically used for:
The multiple IMEI is read from IMEI files, wherein the IMEI of preset quantity, institute are stored in the IMEI files IMEI is stated not repeat mutually.
Fig. 9 is the entity block diagram of electronic equipment embodiment one provided in an embodiment of the present invention, as shown in figure 9, the electronics is set It is standby to include:
Memory 901, for storing program instruction;
Processor 902 is executed for calling and executing the program instruction in the memory in above method embodiment Step.
The embodiment of the present invention also provides a kind of readable storage medium storing program for executing, and computer journey is stored in the readable storage medium storing program for executing Sequence, when at least one processor of traffic distribution strategy test device executes the computer program, traffic distribution strategy is surveyed Trial assembly, which is set, executes above-mentioned traffic distribution strategy test method.
The embodiment of the present invention also provides a kind of program product, which includes computer program, the computer program It is stored in readable storage medium storing program for executing.At least one processor of traffic distribution strategy test device can be read from readable storage medium storing program for executing The computer program, at least one processor is taken to execute the computer program and make the implementation of traffic distribution strategy test device above-mentioned Traffic distribution strategy test method.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than to it Limitation;Although the embodiment of the present invention is described in detail with reference to foregoing embodiments, those skilled in the art It should be understood that:Its still can with technical scheme described in the above embodiments is modified, either to which part or All technical features carries out equivalent replacement;And these modifications or replacements, it does not separate the essence of the corresponding technical solution this hair The range of bright each embodiment technical solution of embodiment.

Claims (12)

1. a kind of traffic distribution strategy test method, which is characterized in that including:
Using multiple International Mobile Equipment Identity code IMEI multiple uniform resource locator are sent to the server of application APP URL request;
The server for receiving the APP is directed to the URL that each URL request is returned;
According to the quantity of page iden-tity and the IMEI in the URL of the return, determine that preset traffic distribution strategy is It is no correct.
2. according to the method described in claim 1, it is characterized in that, page iden-tity in the URL according to the return with And the quantity of the IMEI, determine whether preset traffic distribution strategy is correct, including:
According to the quantity of page iden-tity and the IMEI in the URL of the return, page corresponding to each page iden-tity is counted The access ratio in face;
The access ratio for judging the page corresponding to each page iden-tity and page iden-tity institute described in preset traffic distribution strategy Whether the difference of the ratio of corresponding page is less than preset value, if so, determining that the traffic distribution strategy is correct.
3. method according to claim 1 or 2, which is characterized in that described to be sent to the server of APP using multiple IMEI Before URL request, further include:
Obtain the multiple IMEI;
Determine that required parameter, the required parameter include:The operation system information of terminal where the APP and the APP Version information.
4. according to the method described in claim 3, it is characterized in that, described more to the transmission of the server of APP using multiple IMEI A URL request, including:
The corresponding URL requests of each IMEI are sent respectively to the server of APP, and the URL request includes the IMEI, described The version information of the operation system information of terminal where APP and the APP.
5. according to the method described in claim 3, it is characterized in that, described obtain the multiple IMEI, including:
The multiple IMEI is read from IMEI files, wherein the IMEI of preset quantity is stored in the IMEI files, it is described IMEI is not repeated mutually.
6. a kind of traffic distribution strategy test device, which is characterized in that including:
Sending module, it is multiple for being sent to the server of application APP using multiple International Mobile Equipment Identity code IMEI Uniform resource position mark URL is asked;
Receiving module, the server for receiving the APP are directed to the URL that each URL request is returned;
Processing module determines preset stream for the quantity according to page iden-tity and the IMEI in the URL of the return Whether correct measure allocation strategy.
7. device according to claim 6, which is characterized in that the processing module includes:
Statistic unit counts each page for the quantity according to page iden-tity and the IMEI in the URL of the return The access ratio of the corresponding page of mark;
Determination unit, the access ratio for judging the page corresponding to each page iden-tity and institute in preset traffic distribution strategy Whether the difference for stating the ratio of the page corresponding to page iden-tity is less than preset value, if so, determining the traffic distribution strategy just Really.
8. the device described according to claim 6 or 7, which is characterized in that further include:
Acquisition module, for obtaining the multiple IMEI;
Determining module, for determining that required parameter, the required parameter include:The operating system of terminal where the APP is believed The version information of breath and the APP.
9. device according to claim 8, which is characterized in that the sending module is specifically used for:
The corresponding URL requests of each IMEI are sent respectively to the server of APP, and the URL request includes the IMEI, described The version information of the operation system information of terminal where APP and the APP.
10. device according to claim 8, which is characterized in that the acquisition module is specifically used for:
The multiple IMEI is read from IMEI files, wherein the IMEI of preset quantity is stored in the IMEI files, it is described IMEI is not repeated mutually.
11. a kind of electronic equipment, which is characterized in that including:
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, perform claim requires any one of them sides 1-5 Method step.
12. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program in the readable storage medium storing program for executing, work as flow When at least one processor of allocation strategy test device executes the computer program, traffic distribution strategy test device executes Claim 1-5 any one of them traffic distribution strategy test methods.
CN201711486557.0A 2017-12-29 2017-12-29 Flow distribution strategy testing method and device and electronic equipment Active CN108280024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711486557.0A CN108280024B (en) 2017-12-29 2017-12-29 Flow distribution strategy testing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711486557.0A CN108280024B (en) 2017-12-29 2017-12-29 Flow distribution strategy testing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108280024A true CN108280024A (en) 2018-07-13
CN108280024B CN108280024B (en) 2021-06-22

Family

ID=62802791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711486557.0A Active CN108280024B (en) 2017-12-29 2017-12-29 Flow distribution strategy testing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108280024B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175121A (en) * 2019-05-20 2019-08-27 Oppo广东移动通信有限公司 A kind of formal online page determines method, apparatus and computer readable storage medium
CN110380937A (en) * 2019-07-23 2019-10-25 中国工商银行股份有限公司 Network test method and device applied to electronic equipment
CN114629810A (en) * 2022-02-21 2022-06-14 深圳市世强元件网络有限公司 Current limiting strategy testing method, system, computer readable medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN101729574A (en) * 2008-10-31 2010-06-09 中兴通讯股份有限公司 System, device and method for cascade protection of contents of IPTV service
CN102004781A (en) * 2010-11-23 2011-04-06 北京酷我科技有限公司 Method and system for acquiring website test data
CN102184231A (en) * 2011-05-12 2011-09-14 广州市动景计算机科技有限公司 Method and device for acquiring page resources
CN102209010A (en) * 2011-06-10 2011-10-05 北京神州绿盟信息安全科技股份有限公司 Network test system and method
CN102752170A (en) * 2012-06-29 2012-10-24 福建富士通信息软件有限公司 Network speed testing method
CN103095820A (en) * 2013-01-04 2013-05-08 新浪网技术(中国)有限公司 Method and device for determining terminal quantity of page access
CN103324566A (en) * 2012-03-20 2013-09-25 阿里巴巴集团控股有限公司 Multi-version test method and device for web page product
CN104022911A (en) * 2014-06-27 2014-09-03 哈尔滨工业大学 Content route managing method of fusion type content distribution network
CN105610654A (en) * 2016-03-02 2016-05-25 合一网络技术(北京)有限公司 Server, and policy online test method and system
US20160188445A1 (en) * 2014-12-30 2016-06-30 Spirent Communications, Inc. Conducting performance snapshots during test and using feedback to control test based on customer experience parameters

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN101729574A (en) * 2008-10-31 2010-06-09 中兴通讯股份有限公司 System, device and method for cascade protection of contents of IPTV service
CN102004781A (en) * 2010-11-23 2011-04-06 北京酷我科技有限公司 Method and system for acquiring website test data
CN102184231A (en) * 2011-05-12 2011-09-14 广州市动景计算机科技有限公司 Method and device for acquiring page resources
CN102209010A (en) * 2011-06-10 2011-10-05 北京神州绿盟信息安全科技股份有限公司 Network test system and method
CN103324566A (en) * 2012-03-20 2013-09-25 阿里巴巴集团控股有限公司 Multi-version test method and device for web page product
CN102752170A (en) * 2012-06-29 2012-10-24 福建富士通信息软件有限公司 Network speed testing method
CN103095820A (en) * 2013-01-04 2013-05-08 新浪网技术(中国)有限公司 Method and device for determining terminal quantity of page access
CN104022911A (en) * 2014-06-27 2014-09-03 哈尔滨工业大学 Content route managing method of fusion type content distribution network
US20160188445A1 (en) * 2014-12-30 2016-06-30 Spirent Communications, Inc. Conducting performance snapshots during test and using feedback to control test based on customer experience parameters
CN105610654A (en) * 2016-03-02 2016-05-25 合一网络技术(北京)有限公司 Server, and policy online test method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邢长明等: "一种有效的并行入侵检测系统流量分配策略", 《计算机工程与应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175121A (en) * 2019-05-20 2019-08-27 Oppo广东移动通信有限公司 A kind of formal online page determines method, apparatus and computer readable storage medium
CN110175121B (en) * 2019-05-20 2023-11-03 Oppo广东移动通信有限公司 Formally online page determining method and device and computer readable storage medium
CN110380937A (en) * 2019-07-23 2019-10-25 中国工商银行股份有限公司 Network test method and device applied to electronic equipment
CN114629810A (en) * 2022-02-21 2022-06-14 深圳市世强元件网络有限公司 Current limiting strategy testing method, system, computer readable medium and electronic equipment

Also Published As

Publication number Publication date
CN108280024B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN103150238B (en) A kind of service request processing method, simulated performance method of testing and device
CN111177005A (en) Service application testing method, device, server and storage medium
CN108280024A (en) Traffic distribution strategy test method, device and electronic equipment
CN110059068B (en) Data verification method and data verification system in distributed storage system
CN109582550B (en) Method, device and server for acquiring full-service scene fault set
CN104836777B (en) Identity verification method and system
CN109447384A (en) Verification method, device, equipment and the storage medium of air control system
CN109547426A (en) Service response method and server
CN106384399A (en) IOT (Internet of Things)-office-oriented network attendance method
WO2020238965A1 (en) Production environment performance evaluation method and apparatus, and storage medium
CN109408309A (en) The test method and device of multiple terminals
CN109408361A (en) Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN103605610A (en) System and method for software testing based on Hadoop
CN108427635A (en) Quickly method, server and the computer readable storage medium of test web page
CN111475494A (en) Mass data processing method, system, terminal and storage medium
CN109902493A (en) The delivery method and server of script
CN113067802B (en) User identification method, device, equipment and computer readable storage medium
CN107018039B (en) Method and device for testing performance bottleneck of server cluster
CN108763052A (en) A kind of method for testing performance and system of virtual reality software memory reclaim mechanism
CN109214189B (en) Method, device, storage medium and electronic equipment for identifying program bugs
KR20150030297A (en) Verification apparatus, terminal device, system, method and computer-readable medium for verifying application
CN113986747A (en) Data generation method and device, electronic equipment and storage medium
CN113852610A (en) Message processing method and device, computer equipment and storage medium
CN113051178A (en) Test data construction method, device, equipment and medium
CN113297053A (en) Method and device for determining test coverage rate and 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
GR01 Patent grant
GR01 Patent grant