CN106354621B - The put-on method and device of webpage test - Google Patents

The put-on method and device of webpage test Download PDF

Info

Publication number
CN106354621B
CN106354621B CN201510413613.2A CN201510413613A CN106354621B CN 106354621 B CN106354621 B CN 106354621B CN 201510413613 A CN201510413613 A CN 201510413613A CN 106354621 B CN106354621 B CN 106354621B
Authority
CN
China
Prior art keywords
test
webpage
preset condition
time
access time
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.)
Active
Application number
CN201510413613.2A
Other languages
Chinese (zh)
Other versions
CN106354621A (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510413613.2A priority Critical patent/CN106354621B/en
Publication of CN106354621A publication Critical patent/CN106354621A/en
Application granted granted Critical
Publication of CN106354621B publication Critical patent/CN106354621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses the put-on methods and device of a kind of test of webpage.Wherein, this method comprises: judging whether the access time of webpage to be tested meets the first preset condition, wherein the first preset condition refers to the dispensing rule according to time setting;And if it is judged that access time the first preset condition of satisfaction, treats test webpage and launches test.The present invention solves the technical issues of dispensing that can not automatically control webpage test in the related technology.

Description

The put-on method and device of webpage test
Technical field
The present invention relates to internet areas, in particular to the put-on method and device of a kind of test of webpage.
Background technique
Webpage test is a kind of method for testing webpage superiority and inferiority, for example, AB is tested, by target network same in website Page shows the different page to test the conversion ratio of the different pages, jump out the indexs such as rate to evaluate the dispensing effect of the different pages, So as to be optimized to target webpage.In existing AB test, all activated test item is all that whole day carries out, hair Sometimes user only need to just carry out AB test in some special times for bright people's discovery, for example, web page access amount hour, existing side Method only carries out AB test in some special times to meet user by changing test mode (for example, pause, starts) manually Demand.Test mode is set by manually due to being in the prior art, so that the dispensing of webpage test is more time-consuming and laborious, this Outside, it is easy to produce temporal deviation by the way that test mode is manually arranged, to influence the effect of webpage test.
Aiming at the problem that can not automatically control the dispensing of webpage test in the related technology, effective solution is not yet proposed at present Scheme.
Summary of the invention
The embodiment of the invention provides a kind of webpage test put-on method and device, at least solve in the related technology without Method automatically controls the technical issues of dispensing of webpage test.
According to an aspect of an embodiment of the present invention, a kind of put-on method of webpage test is provided, comprising: judge to be measured Whether the access time of examination webpage meets the first preset condition, wherein the first preset condition refers to the dispensing being arranged according to the time Rule;And if it is judged that access time the first preset condition of satisfaction, treats test webpage and launches test.
Further, when the mapping for the state value and preset time for launching the test mode that rule setting is webpage to be tested When relationship, judge access time whether meet the first preset condition include: from mapping relations search it is matched with access time Preset time is as at the first time;It is searched from mapping relations with corresponding test mode at the first time as the first test shape State, and obtain the first test mode value corresponding with the first test mode;Judge whether the first test mode value is preset state Value, wherein if it is judged that the first test mode value is preset state value, it is determined that access time meets the first preset condition, If it is judged that the first test mode value is not preset state value, it is determined that access time is unsatisfactory for the first preset condition.
Further, when launching rule setting is multiple default release times, judge whether access time meets first Preset condition includes: respectively to match access time with any of multiple default release times default release time;Such as Fruit access time matches with any of multiple default release times default release time, then judges that access time meets first Preset condition;And if access time mismatches with multiple default release times, judge that access time is unsatisfactory for One preset condition.
Further, before whether the access time for judging webpage to be tested meets the first preset condition, method is also wrapped It includes: obtaining the access information of webpage to be tested, wherein access information includes the first information and access time, and the first information includes It is at least one following: User ID, browser type and region;Judge whether the first information meets the second preset condition;If the One information is unsatisfactory for the second preset condition, then does not treat test webpage and launch test;And if the first information meets second in advance If condition, then judge whether access time meets the first preset condition.
Further, the first information is User ID, and judging whether the first information meets the second preset condition includes: that judgement is used Whether family ID meets the second preset condition, wherein when judging that User ID is unsatisfactory for the second preset condition, then not to be tested Webpage launches test.
Further, judging whether User ID meets the second preset condition includes: to carry out Hash operation to User ID, is obtained The cryptographic Hash of User ID;Complementation operation is carried out to the cryptographic Hash of User ID, obtains the test value of User ID;And judge User ID Test value whether meet the second preset condition, wherein User ID test value meet the second preset condition when, it is determined that use Family ID meets the second preset condition, when the test value of User ID is unsatisfactory for the second preset condition, it is determined that User ID is unsatisfactory for Second preset condition.
To achieve the goals above, according to another aspect of the present invention, a kind of storage medium, the storage medium are provided Program including storage, wherein equipment where controlling the storage medium in described program operation executes net described above The put-on method of page test.
To achieve the goals above, according to another aspect of the present invention, a kind of processor is provided, the processor is used for Run program, wherein described program executes the put-on method of webpage test described above when running.
According to another aspect of an embodiment of the present invention, a kind of delivery device of webpage test is additionally provided, comprising: first sentences Disconnected unit, for judging whether the access time of webpage to be tested meets the first preset condition, wherein the first preset condition refers to According to the dispensing rule of time setting;And launch unit, for judge access time meet the first preset condition when, it is right Webpage to be tested launches test.
Further, when the mapping for the state value and preset time for launching the test mode that rule setting is webpage to be tested When relationship, the first judging unit includes: the first searching module, matched default with access time for searching from mapping relations Time is as at the first time;Second searching module is made for searching from mapping relations with corresponding test mode at the first time For the first test mode, and obtain the first test mode value corresponding with the first test mode;And first judgment module, it is used for Judge whether the first test mode value is preset state value, wherein if it is judged that the first test mode value is preset state value, Then determine that access time meets the first preset condition, if it is judged that the first test mode value is not preset state value, it is determined that Access time is unsatisfactory for the first preset condition.
Further, when launching rule setting is multiple default release times, the first judging unit includes: matching mould Block, for respectively matching access time with any of multiple default release times default release time;Second judgement Module, for when matching with any of multiple default release times default release time access time, then judging to access Time meets the first preset condition, when mismatching access time and multiple default release times, then judges access time It is unsatisfactory for the first preset condition.
Further, the device further include: acquiring unit, for obtaining the access information of webpage to be tested, wherein access Information includes the first information and access time, and the first information includes at least one following: User ID, browser type and region; And second judgment unit, for judging whether the first information meets the second preset condition, wherein if the first information is unsatisfactory for Second preset condition is then launched without webpage to be tested and is tested, if the first information meets the second preset condition, judges to visit Ask whether the time meets the first preset condition.
In embodiments of the present invention, judge whether the access time of webpage to be tested meets the first preset condition, wherein the One preset condition refers to the dispensing rule according to time setting;And if it is judged that access time meet the first preset condition, It treats test webpage and launches test, determined the need for by judging whether access time meets the first preset condition to be measured It tries webpage and launches test, achieved the purpose that the dispensing for automatically controlling webpage test, to realize reduction control webpage test Dispensing human cost technical effect, and then solve can not automatically control in the related technology webpage test dispensing skill Art problem.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the put-on method of webpage test according to a first embodiment of the present invention;
Fig. 2 is the flow chart of the put-on method of webpage test according to a second embodiment of the present invention;And
Fig. 3 is the schematic diagram of the delivery device of webpage test according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
The embodiment of the invention provides the put-on methods and device of a kind of test of webpage.
According to embodiments of the present invention, a kind of put-on method embodiment of webpage test is provided, it should be noted that attached The step of process of figure illustrates can execute in a computer system such as a set of computer executable instructions, though also, So logical order is shown in flow charts, but in some cases, it can be to be different from shown by sequence execution herein Or the step of description.
Fig. 1 is the flow chart of the put-on method of webpage test according to a first embodiment of the present invention, as shown in Figure 1, the party Method includes the following steps S102 to step S104:
Step S102, judges whether the access time of webpage to be tested meets the first preset condition, wherein the first default item Part refers to the dispensing rule according to time setting.
The webpage to be tested of the embodiment of the present invention is usually the webpage for needing to optimize in website, for example, can pass through AB test is treated test webpage and is optimized.The access time of webpage to be tested is the time that user accesses webpage to be tested, or The access time of user in some period for the webpage tested is obtained in advance.
Specifically, when user accesses webpage to be tested by mobile terminal or computer etc., pass through mobile terminal first Or computer etc. sends access request to Website server, and Website server receives the access request and records current time conduct Access time.
It is tested due to only need to just need to treat test webpage in some special times in some situations, for example, visiting The amount of asking hour, or just treat test webpage in order volume hour etc. and tested.First preset condition refers to be set according to the time The dispensing rule set, for example, the period that amount of access are small or order volume is small such as weekly daily is counted in advance, when by this Between section be positioned to allow for launch webpage test period then treated in access time within the above-mentioned pre-set period It tests webpage and launches AB test, in access time not within the above-mentioned period, then launch AB test without webpage to be tested, from And the influence to website benefit can be tested to avoid webpage.
The embodiment of the present invention is by the first preset condition of setting, only when access time meeting the first preset condition, Webpage to be tested can be executed and launch test, for example, treating test webpage launches AB test.Optionally, when dispensing rule setting is When the mapping relations of the state value of the test mode of webpage to be tested and preset time, it is pre- to judge whether access time meets first If condition includes: to be searched from mapping relations with access time matched preset time as at the first time;From mapping relations It searches with corresponding test mode at the first time as the first test mode, and obtains corresponding with the first test mode first and survey Try state value;Judge whether the first test mode value is preset state value, wherein if it is judged that the first test mode value is pre- If state value, it is determined that access time meets the first preset condition, if it is judged that the first test mode value is not preset state Value, it is determined that access time is unsatisfactory for the first preset condition.
The test mode of the webpage to be tested of the embodiment of the present invention includes allowing to test and do not allow to test two states, tool Body, different test modes can be indicated by different values, for example, 1 indicates to allow to test, 0 indicates not allow Test.Specifically, in embodiments of the present invention, it indicates to allow to test when the state value of test mode is preset state value, when It indicates not allow to test when the state value of test mode is not preset state value, wherein preset state value can be any mark Symbol.The preset time of the embodiment of the present invention can be configured according to the actual situation, for example, treating test webpage by the period of day When launching test, preset time can be set to 1:00-1:59,2:00-2:59,3:00-3:59 ..., 24:00-24: It 59 }, is when treating test webpage the period to launch test with week, preset time (unit: hour) can be set to 1,2,3, 4 ..., 167,168 }, when treating test webpage dispensing test as the period using the moon, preset time (unit: day) can be set to { 1,2,3 ..., 30,31 }.
Specifically, below to be daily to treat in the period for test webpage launches test to say the embodiment of the present invention It is bright.The test mode of the webpage to be tested of the embodiment of the present invention and the mapping relations of preset time are as shown in table 1:
The test mode of the webpage to be tested of table 1 and the mapping table of preset time
Indicating in table 1, when the state value of test mode is 1, which allows to treat test webpage, launches test, test mode Indicating when state value is 0, which does not allow to treat test webpage, launches test.As it can be seen from table 1 being 9:00-9 in preset time: 59,10:00-10:59,11:00-11:59,12:00-12:59 and 20:00-20:59, these periods of 21:00-21:59 It is interior, allow to treat test webpage and launches test, i.e., daily 9:00-9:59,10:00-10:59,11:00-11:59,12:00- 12:59 and allow to treat in these periods of 20:00-20:59,21:00-21:59 test webpage launch test.
Specifically, the embodiment of the present invention is after getting access time, from the test mode of webpage to be tested and it is default when Between mapping relations in search with access time matched preset time as at the first time, optionally, can be at the first time At the time of in the access time corresponding to hour, for example, being at the first time when access time is 2015.3.3 12:05:00 In this period of 12:00-12:59, the state value of corresponding test mode is 1, i.e., access time be 2015.3.3 12: Meet the first preset condition when 05:00, allows to treat test webpage and launch test, and when access time is 2015.3.3 15: When 05:00, at the first time in this period of 15:00-15:59, the state value of corresponding test mode is 0, that is, access Time is unsatisfactory for the first preset condition when being 2015.3.3 15:05:00, does not allow to treat test webpage at this time and launches test.
Herein it should be noted that above-mentioned table 1 is the state of the test mode of the webpage to be tested of the embodiment of the present invention A kind of optional representation of mapping relations of value and preset time, does not constitute the limitation to the embodiment of the present invention.
Optionally, when launching rule setting is multiple default release times, it is pre- to judge whether access time meets first If condition includes: respectively to match access time with any of multiple default release times default release time;If Access time matches with any of multiple default release times default release time, then it is pre- to judge that access time meets first If condition;And if access time mismatches with multiple default release times, judge that access time is unsatisfactory for first Preset condition.
The default release time of the embodiment of the present invention is the time for allowing to treat test webpage and launching test, for example, can be with Being arranged in the two periods of daily 9:00-9:59,10:00-10:59, which allows to treat test webpage, launches test, can also be with, According to practical situations, can be set the default release time be weekly 12:00-12:59, the 13:00-10:59 on Tuesday and 9:00-9:59, the 10:00-10:59 on Wednesday may be set to be 20:00-20:59, the 21:00-21 on every month 1st: 59 and the 15th days 20:00-20:59,21:00-21:59 etc..
Specifically, to of the invention real for being below daily 9:00-9:59 and 10:00-10:59 by the default release time Example is applied to be illustrated.
After the access time for getting webpage to be tested, respectively by access time with it is every in multiple default release times One default release time is matched, specifically, at the time of can be by judging in access time corresponding to hour with it is default Whether the release time identical to judge whether access time matches with the default release time, for example, when access time be 2015.3.3 when 12:05:00, this period of 12:00-12:59 corresponding to hour in the access time is taken, presets and launches Time be the two periods of 9:00-9:59,10:00-10:59, the period as corresponding to hour in the access time with Above-mentioned two default release time is all different, and illustrates that the access time mismatches with multiple default release times, i.e. the visit It asks that the time is unsatisfactory for the first preset condition, does not allow to treat test webpage and launch test;When access time be 2015.3.3 9: When 45:00, the time corresponding to hour, presetting the release time was 9 within this period of 9:00-9:59 in the access time: This period of 00-9:59 illustrates that the access time matches with the default release time, i.e. the access time meets the first default item Part allows to treat test webpage and launches test.The embodiment of the present invention controls webpage by presetting multiple default release times The dispensing of test, from the release time that can accurately control webpage test, the deviation pair for the release time for avoiding webpage from testing The influence of webpage test effect.
Step S104 treats test webpage and launches test if it is judged that access time meets the first preset condition.
Whether the first preset condition is met using the access time for judging webpage to be tested in the embodiment of the present invention;And such as Fruit judges that access time meets the first preset condition, the mode that test webpage launches test is treated, by judging access time Whether meet the first preset condition to determine whether to treat test webpage and launch test, that is, is judging that access time meets first When preset condition, just treats test webpage and launch test, achieved the purpose that the dispensing for automatically controlling webpage test, without The test mode for manually treating test webpage switches over, and can also test to avoid time delays caused by manual operation webpage The influence of effect meets the throwing that user tests webpage to realize the human cost of the dispensing of reduction control webpage test The diversity requirement put, and then solve the technical issues of dispensing that can not automatically control webpage test in the related technology.
Preferably, before whether the access time for judging webpage to be tested meets the first preset condition, this method is also wrapped It includes: obtaining the access information of webpage to be tested, wherein access information includes the first information and access time, and the first information includes It is at least one following: User ID, browser type and region;Judge whether the first information meets the second preset condition;If the One information is unsatisfactory for the second preset condition, then launches and test without webpage to be tested;And if the first information meets second Preset condition, then judge whether access time meets the first preset condition.
Access information is the information that user accesses webpage to be tested, for example, when User ID, browser type, region, access Between etc. information.The first information can be at least one in User ID, browser type and region.Second preset condition and the first letter The relationship of breath may is that the second preset condition can be the collection of multiple preset browsing devices when the first information is browser type Close, for example, the second preset condition be { IE browser, 360 browsers }, if the first information be IE browser, illustrate first Information meets the second preset condition, if the first information is sogou browser, illustrates that the first information is unsatisfactory for the second default item Part.When the first information is browser type and Areal Combination, the second preset condition can be the set of multiple preset browsing devices With the set of multiple default regions, for example, the second preset condition be { IE browser, 360 browsers } and Beijing, Shanghai, extensively State }.
It should be noted that judging whether the first information meets the second preset condition and can be whether judging access time Before meeting the first preset condition, it is also possible to after judging whether access time meets the first preset condition.
Specifically, the second preset condition can be met judging the first information and then continues to judge that access time is The first preset condition of no satisfaction then carries out webpage to be tested and launches test when access time also meeting the first preset condition;? It can be and judging access time the first preset condition of satisfaction and then continuing to judge whether the first information meets second and preset Condition just treats test webpage and launches test when the first information also meets the second preset condition.
Optionally, the first information is User ID, and judging whether the first information meets the second preset condition includes: to judge user Whether ID meets the second preset condition, wherein when judging that User ID is unsatisfactory for the second preset condition, then without to be tested Webpage launches test.
Herein it should be noted that generally requiring before treating test webpage and launching test to access webpage to be tested User sample, for example, only Pekinese user access webpage to be tested when just launch AB test.The embodiment of the present invention is logical It crosses User ID to be sampled, only just executes subsequent step in the case where User ID meets the second preset condition.
Specifically, judging whether User ID meets the second preset condition includes: to carry out Hash operation to User ID, is used The cryptographic Hash of family ID;Complementation operation is carried out to the cryptographic Hash of User ID, obtains the test value of User ID;And judge User ID Whether test value meets the second preset condition, wherein when the test value of User ID meets the second preset condition, it is determined that user ID meets the second preset condition, when the test value of User ID is unsatisfactory for the second preset condition, it is determined that User ID is unsatisfactory for the Two preset conditions.
The input of random length can be obtained fixed length by Hash operation by Hash (Hash) algorithm, i.e. hashing algorithm The output of degree, and corresponding one unique output of different inputs, carry out Hash operation to User ID and use hash algorithm will User ID is converted to unique numeric string (i.e. the cryptographic Hash of User ID).After obtaining the cryptographic Hash of User ID, to User ID Cryptographic Hash, which carries out complementation operation, specifically can be to the cryptographic Hash of User ID to 100 complementations, is also possible to 10 complementations, and Using obtained remainder as the test value of User ID.For example, it is assumed that User ID is 101.102.000.000, which is held The numeric string arrived after row Hash operation is 556986, and executing the numeric string to the remainder that 100 complementations obtain is 86, if the Two preset conditions are remainder less than 50, then illustrate that the User ID is unsatisfactory for the second preset condition at this time, without webpage to be tested Launch test.
Herein it should be noted that being surveyed when webpage test is AB test judging to launch without webpage to be tested When examination, Website server shows the parent page of webpage to be tested to user, when judging that treating test webpage launches test, Website server shows the test page of webpage to be tested to user.Further, for can carry out launch test webpage, Its dispensing duration can be since the identified default release time in self defined time, not do any limit to this application It is fixed.
Fig. 2 is the flow chart of the put-on method of webpage test according to a second embodiment of the present invention.As shown in Fig. 2, the party Method includes the following steps S202 to step S214:
Step S202: user accesses webpage to be tested.
Webpage to be tested is usually the webpage for needing to optimize in website, and the embodiment of the present invention is thrown with treating test webpage It puts for AB is tested and is illustrated.User can access webpage to be tested by mobile terminal or computer etc..
Step S204: the first information is obtained.
Access information is the information that user accesses webpage to be tested, for example, when User ID, browser type, region, access Between etc. information, the first information is not identical as access time, for example, the first information can be User ID, browser type and region In at least one.Herein it should be noted that generally requiring before treating test webpage and launching test to access net to be tested The user of page samples, for example, just launching AB test when only accessing webpage to be tested to Pekinese user, is needed at this time to institute There is the user for accessing webpage to be tested to sample, subsequent step is just executed when only user accesses webpage to be tested in Pekinese S208, it is no to then follow the steps S214.The embodiment of the present invention obtain the first information be for access the user of webpage to be tested into Row sampling.
Step S206: judge whether the first information meets the second preset condition.
Specifically, the judgement relationship between the second preset condition and the first information are as follows:, when the first information is browser type When, the second preset condition can be the set of multiple preset browsing devices, for example, the second preset condition is that { IE browser, 360 is clear Look at device }, if the first information is IE browser, illustrate that the first information meets the second preset condition, and execute subsequent judgement Whether access time meets the first preset condition, if the first information is sogou browser, illustrates that the first information is unsatisfactory for the Two preset conditions do not treat test webpage and launch test.When the first information is browser type and Areal Combination, second is default Condition can be the set of multiple preset browsing devices and the set of multiple default regions, for example, the second preset condition is { IE browsing Device, 360 browsers } and { Beijing, Shanghai, Guangzhou }.When judging that the first information meets the second preset condition, step is executed S208 executes step S214 when judging that the first information is unsatisfactory for the second preset condition.
Step S208: access time is obtained.
Specifically, access time is the time that user accesses webpage to be tested, when user passes through mobile terminal or computer When Deng accessing webpage to be tested, when user sends access request to Website server by mobile terminal or computer etc., net Site server receives the access request and records current time as access time.
Step S210: judge whether access time meets the first preset condition.
Optionally, the first preset condition can be the test mode of webpage to be tested and the mapping relations of preset time, In, test mode includes allowing to test and do not allow to test two states, and preset time can be configured according to the actual situation, For example, can be set the default release time to when treating test webpage dispensing test as the period using day 1 moment, 2 moment, 3 Moment ..., 24 moment }, it, can be by (unit: small of default release time when treating test webpage dispensing test with week for the period When) { 1,2,3,4 ..., 167,168 } are set as, it, can be by default dispensing when treating test webpage dispensing test as the period using the moon Time (unit: day) is set as { 1,2,3 ..., 30,31 }.It in embodiments of the present invention, can be in advance by the survey of webpage to be tested The mapping relations of examination state and preset time are stored in tables of data, for example, the storage side of key assignments (Key-Value) can be used Formula includes an attribute value column and identity column, wherein attribute value column is surveyed for storing preset time, identity column for storing Examination state.Below to be to treat in the period for test webpage launches test to be illustrated the embodiment of the present invention by week.
For example, current access time is 2015.3.3 12:05:00, it is at the time of in the access time corresponding to hour 12, the default release time corresponding to the access time can be calculated according to formula N*24+H, wherein N indicates current access Time is the N days in one week (i.e. expression from Monday to Sunday), at the time of H was indicated in current access time corresponding to hour, By above-mentioned formula calculate the available access time corresponding default release time be 60 hours, further from above-mentioned mapping Test mode corresponding to 60 hours is searched in relationship, if the state value of test mode corresponding to 60 hours allows when being 1 Test, thens follow the steps S212, if the state value of test mode corresponding to 60 hours does not allow to test when being 0, executes Step S214.
Step S212: it treats test webpage and launches test.
When webpage test is AB test, treats test webpage and launch the test that test shows webpage to be tested to user The page.
Step S214: it launches and tests without webpage to be tested.
When webpage test is AB test, test is launched without webpage to be tested and shows webpage to be tested to user Parent page.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of storage Jie Matter, the storage medium include the program of storage, wherein equipment where controlling the storage medium in described program operation is held The put-on method of row webpage test described above.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of processor, The processor is for running program, wherein described program executes the put-on method of webpage test described above when running.
According to another aspect of an embodiment of the present invention, a kind of delivery device of webpage test is provided, webpage test Delivery device can be used for executing the put-on method of the webpage test of the embodiment of the present invention, the webpage test of the embodiment of the present invention Put-on method can also the delivery device of webpage test through the embodiment of the present invention execute.
Fig. 3 is the schematic diagram of the delivery device of webpage test according to an embodiment of the present invention, as shown in figure 3, the webpage is surveyed The delivery device of examination includes: the first judging unit 10 and dispensing unit 20.
First judging unit 10, for judging whether the access time of webpage to be tested meets the first preset condition.
The webpage to be tested of the embodiment of the present invention is usually the webpage for needing to optimize in website, for example, can pass through AB test is treated test webpage and is optimized.The access time of webpage to be tested is the time that user accesses webpage to be tested, tool Body, when user accesses webpage to be tested by mobile terminal or computer etc., pass through mobile terminal or computer etc. first Access request is sent to Website server, Website server receives the access request and records current time as access time.
Preferably, when the mapping of the state value and preset time of launching the test mode that rule setting is webpage to be tested is closed When being, the first judging unit includes: the first searching module, when for the lookup from mapping relations and matched default access time Between as at the first time;Second searching module, for being searched from mapping relations and corresponding test mode conduct at the first time First test mode, and obtain the first test mode value corresponding with the first test mode;And first judgment module, for sentencing Whether disconnected first test mode value is preset state value, wherein if it is judged that the first test mode value is preset state value, then Determine that access time meets the first preset condition, if it is judged that the first test mode value is not preset state value, it is determined that visit Ask that the time is unsatisfactory for the first preset condition.
Preferably, when launching rule setting is multiple default release times, the first judging unit includes: matching module, For access time to be matched with any of multiple default release times default release time respectively;Second judges mould Block is used for when matching with any of multiple default release times default release time access time, then when judging access Between meet the first preset condition, when access time and multiple default release times mismatch, then judge access time not Meet the first preset condition.
Unit 20 is launched, launches survey for when judging that access time meets the first preset condition, treating test webpage Examination.
Judge whether the access time of webpage to be tested meets first using the first judging unit 10 in the embodiment of the present invention Preset condition;And unit 20 is launched when judging that access time meets the first preset condition, it treats test webpage and launches survey Examination.By judge access time whether meet the first preset condition determine whether to treat test webpage launch test, that is, sentencing When disconnected the first preset condition of satisfaction of access time out, just treats test webpage and launch test, reached automatic control webpage and tested Dispensing purpose, without manually treat test webpage test mode switch over, can also be led to avoid manual operation Influence of the time delays of cause to webpage test effect, so that the human cost of the dispensing of reduction control webpage test is realized, Meet the diversity requirement for the dispensing that user tests webpage, so solve can not automatically control in the related technology webpage test Dispensing the technical issues of.
Preferably, the device further include: acquiring unit, for obtaining the access information of webpage to be tested, wherein access letter Breath includes the first information and access time, and the first information includes at least one following: User ID, browser type and region;With And second judgment unit, for judging whether the first information meets the second preset condition, wherein if the first information is unsatisfactory for Two preset conditions are then launched without webpage to be tested and are tested, if the first information meets the second preset condition, judge to access Whether the time meets the first preset condition.
Access information is the information that user accesses webpage to be tested, for example, when User ID, browser type, region, access Between etc. information, the first information is not identical as access time, for example, the first information can be User ID, browser type and region In at least one.Second preset condition is corresponding with the first information, for example, second is pre- when the first information is browser type If condition can be the set of multiple preset browsing devices.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of put-on method of the webpage test executed based on computer system characterized by comprising
Judge whether the access time of webpage to be tested meets the first preset condition, wherein first preset condition refers to root According to the dispensing rule of time setting;And
If it is judged that the access time meets first preset condition, test is launched to the webpage to be tested;
Wherein, before judging whether the access time of the webpage to be tested meets first preset condition, the method Further include:
Obtain the access information of webpage to be tested, wherein the access information include the first information and access time, described first Information includes at least one following: User ID, browser type and region;
Judge whether the first information meets the second preset condition;
If the first information is unsatisfactory for second preset condition, test is launched without the webpage to be tested;With And
If the first information meets second preset condition, it is pre- to judge whether the access time meets described first If condition.
2. the put-on method of webpage according to claim 1 test, which is characterized in that when the dispensings rule setting for Test webpage test mode state value and preset time mapping relations when, judge whether the access time meets first Preset condition includes:
It is searched from the mapping relations with the access time matched preset time as at the first time;
Corresponding with first time test mode is searched from the mapping relations as the first test mode, and obtain and The corresponding first test mode value of first test mode;And
Judge whether the first test mode value is preset state value, wherein if it is judged that the first test mode value For the preset state value, it is determined that the access time meets first preset condition, if it is judged that described first surveys Trying state value is not the preset state value, it is determined that the access time is unsatisfactory for first preset condition.
3. the put-on method of webpage test according to claim 1, which is characterized in that when the dispensing rule setting is more When a default release time, judge whether the access time meets the first preset condition and include:
The access time is matched with any of the multiple default release time default release time respectively;
If the access time matches with any of the multiple default release time default release time, institute is judged Stating access time meets first preset condition;And
If the access time mismatches with the multiple default release time, judge that the access time is unsatisfactory for First preset condition.
4. the put-on method of webpage test according to claim 1, which is characterized in that the first information is User ID, Judging whether the first information meets the second preset condition includes: to judge whether the User ID meets the described second default item Part, wherein when judging that the User ID is unsatisfactory for second preset condition, then the webpage to be tested is not launched and surveyed Examination.
5. the put-on method of webpage test according to claim 4, which is characterized in that judge whether the User ID meets Second preset condition includes:
Hash operation is carried out to the User ID, obtains the cryptographic Hash of the User ID;
Complementation operation is carried out to the cryptographic Hash of the User ID, obtains the test value of the User ID;And
Judge whether the test value of the User ID meets second preset condition, wherein in the test value of the User ID When meeting second preset condition, it is determined that the User ID meets second preset condition, in the survey of the User ID When examination value is unsatisfactory for second preset condition, it is determined that the User ID is unsatisfactory for second preset condition.
6. a kind of delivery device of webpage test characterized by comprising
First judging unit, for judging whether the access time of webpage to be tested meets the first preset condition, wherein described One preset condition refers to the dispensing rule according to time setting;And
Unit is launched, for when judging that the access time meets first preset condition, to the webpage to be tested Launch test;
Wherein, described device further include:
Acquiring unit, for obtaining the access information of webpage to be tested, wherein the access information includes the first information and access Time, the first information include at least one following: User ID, browser type and region;
And
Second judgment unit, for judging whether the first information meets the second preset condition, wherein if first letter Breath is unsatisfactory for second preset condition, then launches test without the webpage to be tested, if the first information meets Second preset condition, then judge whether the access time meets first preset condition.
7. the delivery device of webpage according to claim 6 test, which is characterized in that when the dispensings rule setting for Test webpage test mode state value and preset time mapping relations when, first judging unit includes:
First searching module, for searching with the access time matched preset time from the mapping relations as first Time;
Second searching module, for searching test mode corresponding with the first time from the mapping relations as first Test mode, and obtain the first test mode value corresponding with the first test mode;And
First judgment module, for judging whether the first test mode value is preset state value, wherein if it is judged that institute Stating the first test mode value is the preset state value, it is determined that the access time meets first preset condition, if Judge that the first test mode value is not the preset state value, it is determined that it is pre- that the access time is unsatisfactory for described first If condition.
8. the delivery device of webpage test according to claim 6, which is characterized in that when the dispensing rule setting is more When a default release time, first judging unit includes:
Matching module, for any of the access time and the multiple default release time to be preset the release time respectively It is matched;And
Second judgment module, for presetting the release time in any of the access time and the multiple default release time When matching, then judge that the access time meets first preset condition, is preset in the access time with the multiple When release time mismatches, then judge that the access time is unsatisfactory for first preset condition.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require 1 to the webpage test described in any one of claim 5 Put-on method.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require 1 to the webpage test described in any one of claim 5 put-on method.
CN201510413613.2A 2015-07-14 2015-07-14 The put-on method and device of webpage test Active CN106354621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510413613.2A CN106354621B (en) 2015-07-14 2015-07-14 The put-on method and device of webpage test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510413613.2A CN106354621B (en) 2015-07-14 2015-07-14 The put-on method and device of webpage test

Publications (2)

Publication Number Publication Date
CN106354621A CN106354621A (en) 2017-01-25
CN106354621B true CN106354621B (en) 2019-02-26

Family

ID=57842290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510413613.2A Active CN106354621B (en) 2015-07-14 2015-07-14 The put-on method and device of webpage test

Country Status (1)

Country Link
CN (1) CN106354621B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271387B (en) * 2018-09-28 2021-10-15 创新先进技术有限公司 Rule issuing method and device for database
CN111782497B (en) * 2020-06-30 2023-08-11 百度在线网络技术(北京)有限公司 Test method, test apparatus, electronic device, and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744529A (en) * 2004-08-31 2006-03-08 英业达股份有限公司 Automatic test method for multi web site performance
CN102111801A (en) * 2010-12-23 2011-06-29 北京宜富泰网络测试实验室有限公司 Method and system for testing network management interface of third generation mobile communication network
CN104102576A (en) * 2013-04-12 2014-10-15 阿里巴巴集团控股有限公司 Multi-version test method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150012852A1 (en) * 2013-07-08 2015-01-08 Kobo Incorporated User interface tool for planning an ab type of test

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744529A (en) * 2004-08-31 2006-03-08 英业达股份有限公司 Automatic test method for multi web site performance
CN102111801A (en) * 2010-12-23 2011-06-29 北京宜富泰网络测试实验室有限公司 Method and system for testing network management interface of third generation mobile communication network
CN104102576A (en) * 2013-04-12 2014-10-15 阿里巴巴集团控股有限公司 Multi-version test method and device

Also Published As

Publication number Publication date
CN106354621A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106844522B (en) A kind of network data crawling method and device
Frey et al. Investigating animal activity patterns and temporal niche partitioning using camera‐trap data: Challenges and opportunities
CN107220094B (en) Page loading method and device and electronic equipment
Elahi et al. Personality-based active learning for collaborative filtering recommender systems
CN105045831B (en) A kind of information push method and device
Brace et al. Serial population extinctions in a small mammal indicate Late Pleistocene ecosystem instability
CN104699711B (en) A kind of recommended method and server
CN104539459B (en) Network control method on router and router
CN109347697A (en) Opportunistic network link prediction method, apparatus and readable storage medium storing program for executing
CN111914936B (en) Data characteristic enhancement method and device for corpus data and computer equipment
CN107800572B (en) Method and device for upgrading equipment based on neural network
CN107735766A (en) The system and method for providing recommendation for the proactive property of the user to computing device
CN105516321B (en) A kind of collecting method and device
CN103593444B (en) Internet Keyword identifying processing method and apparatus
CN110309434A (en) A kind of track data processing method, device and relevant device
JP2018014765A5 (en)
CN106682507B (en) The acquisition methods and device of virus base, equipment, server, system
CN110198292A (en) Domain name recognition methods and device, storage medium and electronic device
CN107872534A (en) Information-pushing method, device, server and readable storage medium storing program for executing
CN106354621B (en) The put-on method and device of webpage test
CN110191183A (en) Accurate intelligent method for pushing, system, device and computer readable storage medium
CN110196936A (en) Search method, device and the storage medium and electronic device of project
CN115809371B (en) Learning requirement determining method and system based on data analysis
CN104751345A (en) Position based data processing method and position based data processing device
CN109241455A (en) A kind of methods of exhibiting and device of recommended

Legal Events

Date Code Title Description
C06 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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Webpage test putting method and device

Effective date of registration: 20190531

Granted publication date: 20190226

Pledgee: Shenzhen Black Horse World Investment Consulting Co.,Ltd.

Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
PP01 Preservation of patent right

Effective date of registration: 20240604

Granted publication date: 20190226

PP01 Preservation of patent right