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.
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.