[go: up one dir, main page]

CN104052809A - Distribution control method and device for web testing - Google Patents

Distribution control method and device for web testing Download PDF

Info

Publication number
CN104052809A
CN104052809A CN201410268702.8A CN201410268702A CN104052809A CN 104052809 A CN104052809 A CN 104052809A CN 201410268702 A CN201410268702 A CN 201410268702A CN 104052809 A CN104052809 A CN 104052809A
Authority
CN
China
Prior art keywords
shunting
version
version identifier
test
webpage
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
CN201410268702.8A
Other languages
Chinese (zh)
Other versions
CN104052809B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201410268702.8A priority Critical patent/CN104052809B/en
Publication of CN104052809A publication Critical patent/CN104052809A/en
Application granted granted Critical
Publication of CN104052809B publication Critical patent/CN104052809B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a distribution control method and device for web testing. The method comprises the steps that distribution information and distribution logic are set on a tested webpage, wherein the distribution information comprises distribution version identities and distribution ratios of distribution versions corresponding to the distribution version identities; a browser side acquires the content of the tested webpage and the distribution versions, analyzes the distribution information and distribution logic from the tested webpage, and determines the distribution version identity according to the distribution information and distribution logic; the content of the distribution version corresponding to the determined distribution version identity is displayed on the tested webpage. By the adoption of the distribution control method and device for web testing, a special distribution server is not needed any more, the problem of expenditure on network communication and time delay can be solved, and cost is reduced.

Description

The flow-dividing control method and apparatus of a kind of website test
Technical field
The invention belongs to internet data processing technology field, particularly the flow-dividing control method and apparatus of a kind of website test.
Background technology
Along with the develop rapidly of computer technology and network technology, the effect that the Internet (Internet) technology is brought into play in daily life, study and work is also increasing.And along with the development of mobile Internet, the Internet is also developing to mobile.In the current information age, various information equipments arise at the historic moment: the landline telephone, the mobile terminal that are useful on Tone Via; Be useful on server and PC that information resources are shared, processed; Be useful on various television sets of video data demonstration etc.These equipment all produce for solving actual demand in specific area.Arrival along with E-consumer, computer, communication (3C) fusion, people have been put into attentiveness in the research that the information equipment of each different field is fully utilized more and more, take to make full use of existing resource equipment and better serve as people.
A/B tests (A/B test), finger is when website product offers a plurality of users and uses, user is pressed to certain rule grouping (two or more sets), every group of user adopted to different exhibiting method (presenting different version web page contents), its operation behavior is compared mutually, result can draw a side even better (such as clicking rate is higher, the access time extends, shopping amount improves etc.), the page that page replacement is bad that is just made good use of.In ensuing development, constantly make to test in this way, if redaction there is no the part of winning, can silently withdraw from the arena, and most of users can not notice the page of this version, this has become the indispensable item of data drive type social science.For every test, shunting ratio is the probability that each version can be accessed.The shunting ratio sum of all versions of a test is 100%.Such as, a test has A version and B version, and A version shunting ratio is that 30%, B version shunting ratio is 70%.Hit is by shunting ratio, to select at random a version to present to user's process from a plurality of versions in A/B test.For example, certain test has version A and version B, and the version that represents that certain user obtains while using is A, and A version hits.When the A/B on doing webpage tests, the corresponding one section of content (may be HTML code, css or a div) of a general version.While finally presenting to user, only show and hit the part content that version is corresponding, and the content of other miss versions will not show.
In the prior art, utilize special web application server to carry out A/B test shunting.Detecting information can be kept in Web application journey server, by web application server, control the shunting of A/B test, the version hitting while namely deciding user to access corresponding test products by web application server.This needs special programmed logic to realize conventionally, and feature is to realize the accurate control of ratio (hit each time and all recorded by backstage and add up, the ratio of realizing each version access constantly trends towards the shunting ratio of test setting).
Yet, in this prior art, need adopting special-purpose minute streaming server, and want and shunting server communication during shunting, this just needs to produce the access to netwoks for shunting.If a minute streaming server cannot be accessed, will cause A/B test to carry out, when serious, will affect the normal use of product.For the higher website of concurrent number, if adopt above-mentioned prior art to carry out A/B test, will business website originally and a minute streaming server be produced to huge visit capacity and network delay expense, the access that affects normal users is experienced.
In addition, adopt a special minute streaming server also will inevitably bring high Cost Problems.
Summary of the invention
Embodiment of the present invention proposes the flow-dividing control method of a kind of website test, to reduce network delay expense.
Embodiment of the present invention proposes the flow division control device of a kind of website test, to reduce network delay expense.
The technical scheme of embodiment of the present invention is as follows:
A flow-dividing control method for website test, the method comprises:
In test, diffluent information and shunting logic are set on webpage, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier;
Browser end obtains the content of described test webpage and each shunting version, parses described diffluent information and shunting logic from described test webpage, according to described diffluent information and shunting logic, determines shunting version identifier;
On described test webpage, present the content of the corresponding shunting version of determined shunting version identifier.
The described diffluent information that arranges on test webpage comprises with shunting logic: in the HTML label at described test webpage, diffluent information is set, described shunting logic is set in the script of described test webpage.
Describedly according to described diffluent information and shunting logic, determine that shunting version identifier comprises:
According to the measuring accuracy setting in advance, determine number range, and the numerical value subrange based on dividing in described number range corresponding to the shunting ratio of shunting separately the shunting version of version identifier corresponding to each shunting version identifier;
In described number range, generate random number, and the numerical value subrange hitting based on this random number is determined corresponding shunting version identifier.
The content that presents the corresponding shunting version of determined shunting version identifier on described test webpage comprises: by tandem CSS mode, on described test webpage, present the content of the corresponding shunting version of determined shunting version identifier, and by described tandem CSS mode, on described test webpage, hide the content of corresponding shunting version of shunting version identifier of other determined shunting version identifier except this.
The method further comprises: determined shunting version identifier described in buffer memory in browser, and valid expiration date of this shunting version identifier is set;
After browser end obtains the content of described test webpage and each shunting version, and parse described diffluent information and shunting logic from described test webpage before, the method also comprises:
When judging that current time is within described valid expiration date, directly on described test webpage, present the content of the corresponding shunting version of shunting version identifier of institute's buffer memory, and process ends.
A flow division control device for website test, comprises setting unit, shunting version identifier determining unit and content display unit, wherein:
Setting unit, for diffluent information and shunting logic are set on webpage in test, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier;
Shunting version identifier determining unit, for enabled browsers end, obtain the content of described test webpage and each shunting version, from described test webpage, parse described diffluent information and shunting logic, according to described diffluent information and shunting logic, determine shunting version identifier;
Content display unit, for presenting the content of the corresponding shunting version of determined shunting version identifier on described test webpage.
Setting unit, arranges diffluent information for the label at test webpage, and described shunting logic is set in the script of described test webpage.
Shunting version identifier determining unit, for determining number range according to the measuring accuracy setting in advance, and the numerical value subrange based on dividing in described number range corresponding to the shunting ratio of shunting separately the shunting version of version identifier corresponding to each shunting version identifier; In described number range, generate random number, and the numerical value subrange hitting based on this random number is determined corresponding shunting version identifier.
Content display unit, be used for presenting on described test webpage by tandem CSS mode the content of the corresponding shunting version of determined shunting version identifier, and by described tandem CSS mode, on described test webpage, hide the content of corresponding shunting version of shunting version identifier of other determined shunting version identifier except this.
Shunting version identifier determining unit, also at determined shunting version identifier described in browser buffer memory, and arranges valid expiration date of this shunting version identifier; After browser end obtains the content of described test webpage and each shunting version, and parse described diffluent information and shunting logic from described test webpage before, when judging that current time is within described valid expiration date, directly on described test webpage, present the content of the corresponding shunting version of shunting version identifier of institute's buffer memory, and process ends.
From technique scheme, can find out, in embodiments of the present invention, in test, diffluent information and shunting logic are set on webpage, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier; Browser end obtains the content of described test webpage and each shunting version, parses described diffluent information and shunting logic from described test webpage, according to described diffluent information and shunting logic, determines shunting version identifier; On described test webpage, present the content of the corresponding shunting version of determined shunting version identifier.As can be seen here, after application embodiment of the present invention, without adopting again special-purpose minute streaming server, but realize flow-dividing control at browser end, thereby can solve Concurrency Access amount higher to the higher website of access response rate request when carrying out A/B test, minute streaming server of controlling test produces the overhead issues of huge visit capacity and network communication, time delay, and can avoid the back-end server problem due to test, the impact of the availability of many websites itself and user's experience.
In addition, due to without adopting again special-purpose minute streaming server, also further reduced cost.
Accompanying drawing explanation
Fig. 1 is the flow-dividing control method flow diagram of the website test according to the present invention.
Fig. 2 is according to the flow division control device structure chart of website of the present invention test.
Fig. 3 processes schematic diagram according to the flow-dividing control of the website test of embodiment of the present invention.
Fig. 4 presents the first schematic diagram for release content according to the present invention.
Fig. 5 presents the second schematic diagram for release content according to the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail.
Succinct and directly perceived on describing, below sets forth the solution of the present invention by describing some representational execution modes.Details a large amount of in execution mode are only for helping to understand the solution of the present invention.Can be not limited to these details when but clearly, technical scheme of the present invention realizes.For fear of unnecessarily fuzzy the solution of the present invention, some execution modes are not described meticulously, but have only provided framework.Hereinafter, " comprising " refers to " including but not limited to ", " according to ... " refer to " basis at least ..., but be not limited to only basis ... ".Due to the speech habits of Chinese, while hereinafter not particularly pointing out the quantity of a composition, mean that it can be also a plurality of that this composition can be one, or can be regarded as at least one.
It is higher that embodiment of the present invention can solve Concurrency Access amount, to the higher website of access response rate request when carrying out A/B test, the back-end server of controlling test produces the overhead issues of huge visit capacity and network communication, time delay, and can avoid the back-end server problem due to test, the impact that the availability of many websites itself and user experience.
Fig. 1 is the flow-dividing control method flow diagram of the website test according to the present invention.
As shown in Figure 1, the method comprises:
Step 101: in test, diffluent information and shunting logic are set on webpage, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier.
Such as, can on the Website server of carrying out A/B test, set in advance test webpage, in test, diffluent information and shunting logic are set on webpage, wherein diffluent information comprises the sign of each shunting version and corresponding to the shunting ratio of shunting separately the shunting version of version identifier.
Step 102: browser end obtains the content of described test webpage and each shunting version parses described diffluent information and shunting logic from described test webpage, according to described diffluent information and shunting logic, determines shunting version identifier.
Step 103: browser end presents the content of the corresponding shunting version of determined shunting version identifier on described test webpage.
In one embodiment:
The described diffluent information that arranges on test webpage comprises with shunting logic: in the HTML label at described test webpage, diffluent information is set, described shunting logic is set in the script of described test webpage.
In one embodiment:
Describedly according to described diffluent information and shunting logic, determine that shunting version identifier comprises:
According to the measuring accuracy setting in advance, determine number range, and the numerical value subrange based on dividing in described number range corresponding to the shunting ratio of shunting separately the shunting version of version identifier corresponding to each shunting version identifier;
In described number range, generate random number, and the numerical value subrange hitting based on this random number is determined corresponding shunting version identifier.
In one embodiment:
The content that presents the corresponding shunting version of determined shunting version identifier on described test webpage comprises: by tandem CSS mode, on described test webpage, present the content of the corresponding shunting version of determined shunting version identifier, and by described tandem CSS mode, on described test webpage, hide the content of corresponding shunting version of shunting version identifier of other determined shunting version identifier except this.
In one embodiment:
The method further comprises: determined shunting version identifier described in buffer memory in browser, and valid expiration date of this shunting version identifier is set;
After browser end obtains the content of described test webpage and each shunting version, and parse described diffluent information and shunting logic from described test webpage before, the method also comprises:
When judging that current time is within described valid expiration date, directly on described test webpage, present the content of the corresponding shunting version of shunting version identifier of institute's buffer memory, and process ends.
Based on above-mentioned labor, the invention allows for the flow division control device of a kind of website test.
Fig. 2 is the structure chart of the flow division control device of website test according to the present invention.
As shown in Figure 2, this device comprises: setting unit 201, shunting version identifier determining unit 202 and content display unit 203, wherein:
Setting unit 201, for diffluent information and shunting logic are set on webpage in test, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier;
Shunting version identifier determining unit 202, for enabled browsers end, obtain the content of described test webpage and each shunting version, from described test webpage, parse described diffluent information and shunting logic, according to described diffluent information and shunting logic, determine shunting version identifier;
Content display unit 203, for presenting the content of the corresponding shunting version of determined shunting version identifier on described test webpage.
In one embodiment:
Setting unit 201, arranges diffluent information for the label at test webpage, and described shunting logic is set in the script of described test webpage.
In one embodiment:
Shunting version identifier determining unit 202, for determining number range according to the measuring accuracy setting in advance, and the numerical value subrange based on dividing in described number range corresponding to the shunting ratio of shunting separately the shunting version of version identifier corresponding to each shunting version identifier; In described number range, generate random number, and the numerical value subrange hitting based on this random number is determined corresponding shunting version identifier.
In one embodiment:
Content display unit 203, be used for presenting on described test webpage by tandem CSS mode the content of the corresponding shunting version of determined shunting version identifier, and by described tandem CSS mode, on described test webpage, hide the content of corresponding shunting version of shunting version identifier of other determined shunting version identifier except this.
In one embodiment:
Shunting version identifier determining unit 202, also at determined shunting version identifier described in browser buffer memory, and arranges valid expiration date of this shunting version identifier; After browser end obtains the content of described test webpage and each shunting version, and parse described diffluent information and shunting logic from described test webpage before, when judging that current time is within described valid expiration date, directly on described test webpage, present the content of the corresponding shunting version of shunting version identifier of institute's buffer memory, and process ends.
Specifically can realize the present invention by script modes such as Javascript.Fig. 3 processes schematic diagram according to the flow-dividing control of the website test of embodiment of the present invention.
First, at server end, diffluent information and shunting logic are set on the test webpage of A/B test, diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier.Such as, shunting ratio and shunting version identifier corresponding to shunting separately the shunting version of version identifier can be arranged in webpage label, and shunting logic is arranged in page script (such as JavaScript).
User obtains the content of test webpage and each shunting version by browser.Can obtain shunting logic at the JavaScript script of browser end parsing test webpage, and carry out shunting according to shunting logic.Concrete steps are:
Browser detects the result that whether there is shunting last time in self buffer memory (being the sign of the shunting version that hit last time).If there is the shunting result of buffer memory, and this shunting result is within the valid period, directly uses this result, operates css and shows the content of hitting shunting version last time, thereby realize presenting of version by javascript.If there is no the shunting result of buffer memory, call the sign that Diffluence Algorithm obtains hitting version, the sign of hitting version is saved in the buffer memory of browser, and operates css and show that this hits the corresponding release content that hits of version identifier.
Such as, suppose that version to be shunted and corresponding shunting ratio are respectively:
Version A (shunting ratio: 10%); Version B (shunting ratio: 20%); Version C (shunting ratio: 30%); Version d (shunting ratio: 40%);
Small impression given figure >0, each version shunting ratio sum is 100%.
Requirement is without unified counting in the situation that, n time (n>=10) request is carried out to the Random assignment of version, the result version probability of occurrence of Random assignment approaches its default shunting ratio, the error of the true shunting ratio finally counting and default ratio is less, and algorithm is better.
Implementation: draw the line by ratio, while shunting, the random random number that generates, by scope under random number, determines the version of shunting at every turn.
Step is as follows:
First, by determine precision total size, if required shunting ratio precision is one thousandth, set 0 to 999 total size.(experiment showed, precision reach increase again the error that contrast ratio controls after one thousandth do not dwindle)
Then, by ratio, divide version scope, four versions above of take are example, draw the line:
Version A:0~99; According to total length 10%;
Version B:100~299; Total length 20%;
Version C:300~599; Account for total length 30%;
Version d: 600~999; Account for total length 40%.
Wherein the interval position under A, B, C, D version might not, need be identical with shunting ratio but account for total length ratio.As above A can occupied area between 200~299; B can be 0~199 between occupied area.
In fact, can specifically implement the abnormality eliminating method that embodiment of the present invention proposes by various ways.
Then, generate the random integers of 0~999, which interval integer drops on, and returns to interval corresponding shunting version.As this generates random number, be 888, this shunting version is D so.Particularly, the method for generation random number can be: with the parseInt (1000*Math.random ()) of javascript.Math.random () method is the method that Javascript generates pseudo random number, what the seed that this random algorithm is used was used is the millisecond number of time, the value of returning is 0 to 1 decimal, re-use parseInt method and be converted into integer, finally this result is multiplied by 1000 again, obtains the random number generating.
Exemplarily:
Under the difference test order of magnitude, the example of test error is as follows:
(1), 10 shunting results of local test:
Version A10% hit-count: 0
Version B20% hit-count: 3
Version C30% hit-count: 3
Version d 40% hit-count: 4
(2), 100 shunting results of local test:
Version A10% hit-count: 8
Version B20% hit-count: 24
Version C30% hit-count: 36
Version d 40% hit-count: 32
(3), 1000 shunting results of local test:
Version A (shunting ratio is 10%) hit-count: 102
Version B (shunting ratio is 20%) hit-count: 214
Version C (shunting ratio is 30%) hit-count: 303
Version d (shunting ratio is 40%) hit-count: 381
(4), 10000 shunting results of local test:
Version A (shunting ratio is 10%) hit-count: 10117
Version B (shunting ratio is 20%) hit-count: 20030
Version C (shunting ratio is 30%) hit-count: 29930
Version d (shunting ratio is 40%) hit-count: 39923
(5), 10,000,000 shunting results of local test:
Version A (shunting ratio is 10%) hit-count: 999351
Version B (shunting ratio is 20%) hit-count: 1998568
Version C (shunting ratio is 30%) hit-count: 3000022
Version d (shunting ratio is 40%) hit-count: 4002059
From experiment, can find out, shunting number of times is more than 10,000 times, and error is less, can apply this scheme.This programme for be high concurrent website, so experiment visit capacity all preferably meets the requirement of 10,000 times.
After having shunted, shunting result need to be saved in to client terminal local, the present invention can adopt the Web Storage of Html5 as shunting result cache, if browser is not supported html5, can adopt cookie as shunting result cache.
When adopting localStorage as shunting result cache, when client is accessed test website for the first time, will call js and realize random shunting, use localStorage storage shunting result, use afterwards same browser access website, will use the shunting result in LocalStorage to shunt.After user closes browser, localStorage is still effective, can be set the localStorage out-of-service time by js.Exemplarily, the out-of-service time can arrange the redis user diffluent information cache-time set with testing website and equates (such as 8 hours).Out-of-service time need not be set, and experiment expired time can be obtained by the pseudo-attribute of label, if test expires, deletes this buffer memory.
When browser is not supported LocalStorage, can use cookie mechanism buffer memory shunting result.Cookie expired time, for the experiment end time, is removed cookie simultaneously while falling localStorage clearly.
Exemplarily, the website test flow-dividing control method that the present invention proposes can be applicable to Android/ios/ Saipan browser of browser/flat-panel devices of Android system/ios/ Saipan of the pc/ cell phone apparatus of windows system/mac system, and intelligent wearable device, google glasses (glass), Samsung gear etc.
In embodiment of the present invention, preferably the content of all versions is included on test Webpage, but is all set to hide.After the Diffluence Algorithm by script obtains hitting the sign of version, change the content of corresponding version identifier for showing.
Fig. 4 presents the first schematic diagram for release content according to the present invention.Fig. 5 presents the second schematic diagram for release content according to the present invention.
Fig. 4 is loaded into the initial condition of browser for testing webpage from Website server.As seen from Figure 4, browser has obtained the content of version A, version B and version C, and by the content of version A, version B and version C be set to hide.
Fig. 5 is written into js script for test webpage, after obtaining hitting version and be C, and the state of presenting to user.As seen from Figure 5, having obtained and having hit version is C, the content of version of display C within predefined test zone, and version A and version B content continue be set to hide.
In embodiment of the present invention, the version selection algorithm of the shunting that can realize with javascript.Through test, can control well the ratio that hits of each version, to realize the default shunting ratio of test.
After application embodiment of the present invention, the webpage of website is being carried out A/B test time, the implementation that can utilize Calculation of the shunted current algorithm of the present invention, shunting result cache method and version to present realizes website in the situation that the high efficiency shunting of the other minute streaming server communication of discord and representing.
Take Javascript above as example, embodiment of the present invention be have been described in detail.It will be appreciated by those of skill in the art that this description is only exemplary, and be not used in the protection range of embodiment of the present invention is limited.
And the mode presenting for version, can adopt the mode of selecting in Website server rear end, namely shunts in service end; Also can realize by the mutually nested mode of webpage, the experimental section that is about to webpage splits into a plurality of subpage frames by version, is written into the subpage frame of corresponding version when hitting, and this mode, after shunting completes, may produce the web-page requests new to subpage frame.
Such as, can follow the application programming interfaces of certain standard, the flow-dividing control method of website test is written as to the plug-in card program being installed in PC, mobile terminal etc., also can be encapsulated as application program and be downloaded voluntarily use for user.When being written as plug-in card program, can be implemented as the multiple card format such as ocx, dll, cab.Also can implement by the concrete technology such as Flash plug-in unit, RealPlayer plug-in unit, MMS plug-in unit, MIDI staff plug-in unit, ActiveX plug-in unit the flow-dividing control method of the website test that embodiment of the present invention proposes.
The flow-dividing control method of the website test that can embodiment of the present invention be proposed by the storing mode of instruction or instruction set storage is stored on various storage mediums.These storage mediums include, but are not limited to: floppy disk, CD, DVD, hard disk, flash memory, USB flash disk, CF card, SD card, mmc card, SM card, memory stick (Memory Stick), xD card etc.
In addition, the flow-dividing control method of the website test that embodiment of the present invention can also be proposed is applied in the storage medium based on flash memory (Nand flash), such as USB flash disk, CF card, SD card, SDHC card, mmc card, SM card, memory stick, xD card etc.
In sum, in embodiments of the present invention, in test, diffluent information and shunting logic are set on webpage, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier; Browser end obtains the content of described test webpage and each shunting version, parses described diffluent information and shunting logic from described test webpage, according to described diffluent information and shunting logic, determines shunting version identifier; On described test webpage, present the content of the corresponding shunting version of determined shunting version identifier.As can be seen here, after application embodiment of the present invention, without adopting again special-purpose minute streaming server, can solve Concurrency Access amount higher, to the higher website of access response rate request when carrying out A/B test, minute streaming server of controlling test produces the overhead issues of huge visit capacity and network communication, time delay, and can avoid the back-end server problem due to test, the impact of the availability of many websites itself and user's experience.
In addition, due to without adopting again special-purpose minute streaming server, also further reduced cost.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a flow-dividing control method for website test, is characterized in that, the method comprises:
In test, diffluent information and shunting logic are set on webpage, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier;
Browser end obtains the content of described test webpage and each shunting version, parses described diffluent information and shunting logic from described test webpage, according to described diffluent information and shunting logic, determines shunting version identifier;
On described test webpage, present the content of the corresponding shunting version of determined shunting version identifier.
2. the flow-dividing control method that website according to claim 1 is tested, it is characterized in that, the described diffluent information that arranges on test webpage comprises with shunting logic: in the HTML label at described test webpage, diffluent information is set, described shunting logic is set in the script of described test webpage.
3. the flow-dividing control method of website according to claim 1 test, is characterized in that, describedly according to described diffluent information and shunting logic, determines that shunting version identifier comprises:
According to the measuring accuracy setting in advance, determine number range, and the numerical value subrange based on dividing in described number range corresponding to the shunting ratio of shunting separately the shunting version of version identifier corresponding to each shunting version identifier;
In described number range, generate random number, and the numerical value subrange hitting based on this random number is determined corresponding shunting version identifier.
4. the flow-dividing control method that website according to claim 1 is tested, it is characterized in that, the content that presents the corresponding shunting version of determined shunting version identifier on described test webpage comprises: by tandem CSS mode, on described test webpage, present the content of the corresponding shunting version of determined shunting version identifier, and by described tandem CSS mode, on described test webpage, hide the content of corresponding shunting version of shunting version identifier of other determined shunting version identifier except this.
5. the flow-dividing control method of website according to claim 1 test, is characterized in that, it is characterized in that, the method further comprises: determined shunting version identifier described in buffer memory in browser, and valid expiration date of this shunting version identifier is set;
After browser end obtains the content of described test webpage and each shunting version, and parse described diffluent information and shunting logic from described test webpage before, the method also comprises:
When judging that current time is within described valid expiration date, directly on described test webpage, present the content of the corresponding shunting version of shunting version identifier of institute's buffer memory, and process ends.
6. a flow division control device for website test, is characterized in that, comprises setting unit, shunting version identifier determining unit and content display unit, wherein:
Setting unit, for diffluent information and shunting logic are set on webpage in test, described diffluent information comprises each shunting version identifier and corresponding to the shunting ratio of shunting separately the shunting version of version identifier;
Shunting version identifier determining unit, for enabled browsers end, obtain the content of described test webpage and each shunting version, from described test webpage, parse described diffluent information and shunting logic, according to described diffluent information and shunting logic, determine shunting version identifier;
Content display unit, for presenting the content of the corresponding shunting version of determined shunting version identifier on described test webpage.
7. the flow division control device of website according to claim 6 test, is characterized in that,
Setting unit, arranges diffluent information for the label at test webpage, and described shunting logic is set in the script of described test webpage.
8. the flow division control device of website according to claim 6 test, is characterized in that,
Shunting version identifier determining unit, for determining number range according to the measuring accuracy setting in advance, and the numerical value subrange based on dividing in described number range corresponding to the shunting ratio of shunting separately the shunting version of version identifier corresponding to each shunting version identifier; In described number range, generate random number, and the numerical value subrange hitting based on this random number is determined corresponding shunting version identifier.
9. the flow division control device of website according to claim 6 test, is characterized in that,
Content display unit, be used for presenting on described test webpage by tandem CSS mode the content of the corresponding shunting version of determined shunting version identifier, and by described tandem CSS mode, on described test webpage, hide the content of corresponding shunting version of shunting version identifier of other determined shunting version identifier except this.
10. the flow division control device of website according to claim 6 test, is characterized in that,
Shunting version identifier determining unit, also at determined shunting version identifier described in browser buffer memory, and arranges valid expiration date of this shunting version identifier; After browser end obtains the content of described test webpage and each shunting version, and parse described diffluent information and shunting logic from described test webpage before, when judging that current time is within described valid expiration date, directly on described test webpage, present the content of the corresponding shunting version of shunting version identifier of institute's buffer memory, and process ends.
CN201410268702.8A 2014-06-17 2014-06-17 A kind of flow-dividing control method and apparatus of website test Active CN104052809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410268702.8A CN104052809B (en) 2014-06-17 2014-06-17 A kind of flow-dividing control method and apparatus of website test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410268702.8A CN104052809B (en) 2014-06-17 2014-06-17 A kind of flow-dividing control method and apparatus of website test

Publications (2)

Publication Number Publication Date
CN104052809A true CN104052809A (en) 2014-09-17
CN104052809B CN104052809B (en) 2017-09-26

Family

ID=51505160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410268702.8A Active CN104052809B (en) 2014-06-17 2014-06-17 A kind of flow-dividing control method and apparatus of website test

Country Status (1)

Country Link
CN (1) CN104052809B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539481A (en) * 2014-12-26 2015-04-22 刘永健 Website testing method and device
CN105262636A (en) * 2015-09-08 2016-01-20 摩贝(上海)生物科技有限公司 Online testing system and method
CN105373480A (en) * 2015-12-15 2016-03-02 广州唯品会信息科技有限公司 ABTest system shunt optimizing method and system
CN106096021A (en) * 2016-06-24 2016-11-09 合信息技术(北京)有限公司 A kind of static page gray scale dissemination method and system
CN109308255A (en) * 2017-07-28 2019-02-05 北京京东尚科信息技术有限公司 A kind of method and apparatus for A/B test experiments
CN109408369A (en) * 2018-09-13 2019-03-01 北京奇艺世纪科技有限公司 A kind of system detection method, device and electronic equipment
CN109753424A (en) * 2017-11-06 2019-05-14 北京京东尚科信息技术有限公司 The method and apparatus of AB test
CN110058877A (en) * 2018-11-06 2019-07-26 阿里巴巴集团控股有限公司 Shunt assembly and its control method
CN112333246A (en) * 2020-10-26 2021-02-05 深圳市酷开网络科技有限公司 ABtest experiment method and device, intelligent terminal and storage medium
CN112487323A (en) * 2019-09-11 2021-03-12 北京沃东天骏信息技术有限公司 Webpage experimental method and server
CN113064820A (en) * 2021-03-26 2021-07-02 深圳依时货拉拉科技有限公司 Method, apparatus and computer readable storage medium for updating A/B experiment SDK
CN115023689A (en) * 2020-04-26 2022-09-06 深圳市欢太科技有限公司 Distribution method, distribution device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004781A (en) * 2010-11-23 2011-04-06 北京酷我科技有限公司 Method and system for acquiring website test data
CN103246597A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Parameter testing method and device
CN103324566A (en) * 2012-03-20 2013-09-25 阿里巴巴集团控股有限公司 Multi-version test method and device for web page product
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004781A (en) * 2010-11-23 2011-04-06 北京酷我科技有限公司 Method and system for acquiring website test data
CN103246597A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Parameter testing method and device
CN103324566A (en) * 2012-03-20 2013-09-25 阿里巴巴集团控股有限公司 Multi-version test method and device for web page product
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539481A (en) * 2014-12-26 2015-04-22 刘永健 Website testing method and device
CN105262636A (en) * 2015-09-08 2016-01-20 摩贝(上海)生物科技有限公司 Online testing system and method
CN105373480A (en) * 2015-12-15 2016-03-02 广州唯品会信息科技有限公司 ABTest system shunt optimizing method and system
CN105373480B (en) * 2015-12-15 2018-03-20 广州品唯软件有限公司 Optimize the method and system of ABTest systems shunting
CN106096021A (en) * 2016-06-24 2016-11-09 合信息技术(北京)有限公司 A kind of static page gray scale dissemination method and system
CN109308255B (en) * 2017-07-28 2021-11-30 北京京东尚科信息技术有限公司 Method and device for A/B test experiment
CN109308255A (en) * 2017-07-28 2019-02-05 北京京东尚科信息技术有限公司 A kind of method and apparatus for A/B test experiments
CN109753424A (en) * 2017-11-06 2019-05-14 北京京东尚科信息技术有限公司 The method and apparatus of AB test
CN109753424B (en) * 2017-11-06 2022-08-12 北京京东尚科信息技术有限公司 AB test method and device
CN109408369A (en) * 2018-09-13 2019-03-01 北京奇艺世纪科技有限公司 A kind of system detection method, device and electronic equipment
CN110058877A (en) * 2018-11-06 2019-07-26 阿里巴巴集团控股有限公司 Shunt assembly and its control method
CN112487323A (en) * 2019-09-11 2021-03-12 北京沃东天骏信息技术有限公司 Webpage experimental method and server
CN115023689A (en) * 2020-04-26 2022-09-06 深圳市欢太科技有限公司 Distribution method, distribution device, server and storage medium
CN112333246A (en) * 2020-10-26 2021-02-05 深圳市酷开网络科技有限公司 ABtest experiment method and device, intelligent terminal and storage medium
CN112333246B (en) * 2020-10-26 2023-05-05 深圳市酷开网络科技股份有限公司 ABtest experiment method and device, intelligent terminal and storage medium
CN113064820A (en) * 2021-03-26 2021-07-02 深圳依时货拉拉科技有限公司 Method, apparatus and computer readable storage medium for updating A/B experiment SDK
CN113064820B (en) * 2021-03-26 2022-09-16 深圳依时货拉拉科技有限公司 Method, apparatus and computer readable storage medium for updating A/B experiment SDK

Also Published As

Publication number Publication date
CN104052809B (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN104052809A (en) Distribution control method and device for web testing
CN108804707B (en) Page processing method and device and related equipment
US10572285B2 (en) Method and apparatus for elastically scaling virtual machine cluster
CN110717121B (en) Method and device for determining first screen time of page
CN102855318B (en) Method and system for preloading of webpages
US20100287028A1 (en) System, method and computer readable medium for determining attention areas of a web page
CN104601408B (en) Website data statistics and analysis method and system for non-open network environment
CN110598149A (en) Webpage access method, device and storage medium
US10742763B2 (en) Data limit aware content rendering
CN107241215B (en) User behavior prediction method and device
CN105260420A (en) Method and device for providing target page in mobile application
CN103618936A (en) Smart television, as well as method and device for pre-downloading link pages in browser of smart television
CN105117491A (en) Page pushing method and device
CN106503111B (en) Webpage code-transferring method, device and client terminal
CN103955495B (en) The method for down loading and device of page child resource
US20170026721A1 (en) System and Methods Thereof for Auto-Playing Video Content on Mobile Devices
US20190147540A1 (en) Method and apparatus for outputting information
CN110249324B (en) Maintaining session identifiers for content selection across multiple web pages
CN105488205A (en) Page generation method and page generation apparatus
CN104063112B (en) Exchange method between a kind of browser, device, system and browser
CN110929183A (en) Data processing method, device and machine readable medium
US11431634B2 (en) Client device and resource manager load sharing
CN107451227A (en) Paging query method and device
CN107818101A (en) Method and device for page jump
CN103150363A (en) Method and device for accessing web pages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant