CN106354622B - Test the methods of exhibiting and device of webpage - Google Patents
Test the methods of exhibiting and device of webpage Download PDFInfo
- Publication number
- CN106354622B CN106354622B CN201510413615.1A CN201510413615A CN106354622B CN 106354622 B CN106354622 B CN 106354622B CN 201510413615 A CN201510413615 A CN 201510413615A CN 106354622 B CN106354622 B CN 106354622B
- Authority
- CN
- China
- Prior art keywords
- webpage
- version
- tested
- test
- information
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 165
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000001747 exhibiting effect Effects 0.000 title claims abstract description 22
- 238000005070 sampling Methods 0.000 claims description 20
- 230000000694 effects Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 235000014510 cooky Nutrition 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of methods of exhibiting and device for testing webpage.This method comprises: obtaining local identification information according to the access instruction for accessing webpage to be tested, wherein local identification information accesses the local information of webpage to be tested for unique identification;The target webpage version of test webpage is determined according to local identification information, wherein when treating test webpage execution test, webpage to be tested jumps to test webpage;And displayed web page version is the test webpage of target webpage version.Through the invention, the version for carrying out needing to inquire when webpage test database to determine the test page shown is solved, thus the problem of increasing the processing pressure of server.
Description
Technical field
The present invention relates to webpage testing fields, in particular to a kind of methods of exhibiting and device for testing webpage.
Background technique
In webpage test, for example, multivariable webpage is tested, usually when user accesses Website page, system can be from more
It determines unique version for user in the page of a version and carries out page presentation.
It is illustrated by taking the test of multivariable webpage as an example below.The test of multivariable webpage is a kind of side for testing webpage superiority and inferiority
Method, it is assumed that multivariable test is carried out to webpage www.xxx.com, then will show when access www.xxx.com different
Test page (corresponding different page versions), is analyzed by the user data to each version, available optimal
Version, and then conversion ratio of website can be promoted based on this.In the test of multivariable webpage, in order to access same user again together
The test page of same version can be shown when one webpage, the method taken at present is to deposit user information and corresponding version
Enter database, when user accesses the webpage again, the version for the test page that true directional user shows by way of checking storehouse.
For the above method, user information and corresponding version deposit database can be caused into very big pressure to server
Power;Affiliated version can be just determined whether since checking storehouse will be carried out for all users for carrying out multivariable test, when
Effect property is poor;Since the data volume of user information and affiliated version is huge, when carrying out clear library is one more scabrous
Problem needs to pay biggish cost price to the maintenance of database.
Need to inquire the version for the test page that database is shown with determination when for progress webpage test in the related technology,
Thus the problem of increasing the processing pressure of server, currently no effective solution has been proposed.
Summary of the invention
The main purpose of the present invention is to provide a kind of methods of exhibiting and device for testing webpage, to solve in the related technology
It carries out needing to inquire version of the database to determine the test page shown when webpage test, to increase the processing of server
The problem of pressure.
To achieve the goals above, according to an aspect of the invention, there is provided a kind of methods of exhibiting for testing webpage.
The methods of exhibiting of test webpage according to the present invention includes: to obtain this according to the access instruction for accessing webpage to be tested
Ground identification information, wherein local identification information accesses the local information of webpage to be tested for unique identification;According to local mark
Information determines the target webpage version of test webpage, wherein when treating test webpage execution test, webpage to be tested is jumped to
Test webpage;And displayed web page version is the test webpage of target webpage version.
Further, determine that the target webpage version of test webpage includes: to obtain local mark according to local identification information
The corresponding cryptographic Hash of information;Target index value is determined according to cryptographic Hash;And determine the net for including in preset web version set
The page default index value of version is that the webpage version of target index value is target webpage version.
Further, determine that target index value includes: to obtain webpage version sum according to cryptographic Hash, wherein webpage version
Sum is the sum for the webpage version for including in preset web version set;And cryptographic Hash is obtained to webpage version sum remainder
Obtained remainder values, and using remainder values as target index value.
Further, after obtaining local identification information according to the access instruction for accessing webpage to be tested, this method is also
It include: by local identification information storage to local terminal, wherein receiving the access instruction for accessing webpage to be tested again
When, obtain the local identification information of local terminal storage.
Further, before the target webpage version for determining test webpage according to local identification information, this method is also wrapped
It includes: obtaining access characteristic information, wherein access characteristic information is the characteristic information for accessing webpage to be tested;And judgement access
Whether characteristic information includes in default access characteristic information set, wherein is preset when judging that access characteristic information is included in
It accesses in characteristic information set, then the target webpage version of test webpage is determined according to local identification information, when judging to access
Characteristic information is not included in default access characteristic information set, then shows the former page of webpage to be tested.
Further, before obtaining access characteristic information, this method further include: according to the corresponding Kazakhstan of local identification information
Uncommon value judges whether webpage to be tested meets default sampling condition, wherein when judging that webpage to be tested meets default sampling bar
Part then obtains access characteristic information, when judging that webpage to be tested do not meet default sampling condition, then shows webpage to be tested
The former page.
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 survey described above
Try the methods of exhibiting of webpage.
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 methods of exhibiting of test webpage described above when running.
To achieve the goals above, according to another aspect of the present invention, a kind of displaying device for testing webpage is provided.
The displaying device of test webpage according to the present invention includes: first acquisition unit, for according to access net to be tested
The access instruction of page obtains local identification information, wherein local identification information accesses the sheet of webpage to be tested for unique identification
Ground information;Determination unit, for determining the target webpage version of test webpage according to local identification information, wherein to be measured
When trying webpage execution test, webpage to be tested jumps to test webpage;And display unit, it is target for displayed web page version
The test webpage of webpage version.
Further, it is determined that unit includes: acquisition module, for obtaining the corresponding cryptographic Hash of local identification information;First
Determining module, for determining target index value according to cryptographic Hash;And second determining module, for determining preset web version sets
The default index value of webpage version for including in conjunction is that the webpage version of target index value is target webpage version.
Further, the first determining module includes: the first acquisition submodule, for obtaining webpage version sum, wherein net
Page version sum is the sum for the webpage version for including in preset web version set;And second acquisition submodule, for obtaining
The remainder values for taking cryptographic Hash to obtain webpage version sum remainder, and using remainder values as target index value.
Further, the device further include: second acquisition unit, for obtaining access characteristic information, wherein access feature
Information is the characteristic information for accessing webpage to be tested;And judging unit, for judging it is pre- whether access characteristic information is included in
If accessing in characteristic information set, wherein when judging that accessing characteristic information is included in default access characteristic information set, then
According to local identification information determine test webpage target webpage version, when judge access characteristic information be not included in default visit
It asks in characteristic information set, then shows the former page of webpage to be tested.
Through the invention, using method comprising the following steps: obtaining this according to the access instruction for accessing webpage to be tested
Ground identification information, wherein local identification information accesses the local information of webpage to be tested for unique identification;According to local mark
Information determines the target webpage version of test webpage, wherein when treating test webpage execution test, webpage to be tested is jumped to
Test webpage;And displayed web page version is the test webpage of target webpage version, solves progress webpage survey in the related technology
Need to inquire database when examination to determine the version of the test page shown, to increase asking for the processing pressure of server
Topic, and then by obtaining local identification information, and according to the target webpage version of the determining test webpage of local identification information, reach
The effect of the test webpage of target webpage version is shown under conditions of not increasing the processing pressure of server.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the methods of exhibiting of test webpage according to a first embodiment of the present invention;
Fig. 2 is the flow chart of the methods of exhibiting of test webpage according to a second embodiment of the present invention;And
Fig. 3 is the schematic diagram of the displaying device of test webpage according to an embodiment of the present invention.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application 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 embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
Below according to the embodiment of the present invention, a kind of methods of exhibiting for testing webpage is provided.
Fig. 1 is the flow chart of the methods of exhibiting of test webpage according to a first embodiment of the present invention.As shown in Figure 1, the party
Method includes the following steps, namely S102 to step S106:
Step S102 obtains local identification information according to the access instruction for accessing webpage to be tested, wherein local mark letter
Breath accesses the local information of webpage to be tested for unique identification.
It is automatic to obtain local identification information when receiving the access instruction for accessing webpage to be tested.In general, test page
With multiple versions, therefore, the corresponding test page of webpage to be tested need to be determined using which kind of version.Local identification information is to use
The unique identification information of the software used by identity user accesses webpage to be tested or hardware (is accessed for unique identification
The local information of webpage to be tested).For example, local computer, clear of the local identification information for identification access webpage to be tested
Look at device or server etc..The meaning for obtaining local identification information is that above-mentioned webpage to be tested can be accessed with unique identification user
Event.For example, when user accesses same webpage again by same local computing and same browser, corresponding local
Identification information is identical.In this way, when determining target webpage version according to local identification information, it can be ensured that it is to be tested to correspond to this
The version of the test webpage of webpage is constant.
Preferably, local identification information be globally unique identifier (Globally unique identifier, referred to as
Guid).Globally unique identifier is a kind of digital identifier that the binary length generated by algorithm is 128, can be by algorithm
It automatically generates, application is very convenient.Due to globally unique identifier generally comprised nonrandom parameter (nanosecond order when
Between), therefore will not generally repeat.It for the present embodiment, can be by the globally unique of user's maiden visit webpage to be tested
Identifier is saved into cookie (namely local terminal), is again based on (such as the same calculating of identical local information in user
Machine, same browser) access webpage to be tested when, the globally unique identifier can be directly acquired from cookie, avoid weight
Repetitive generation and reduce treatment effeciency, and ensure the uniqueness of local identification information.
Step S104 determines the target webpage version of test webpage according to local identification information, wherein treating Test Network
When page executes test, webpage to be tested jumps to test webpage.
The corresponding test webpage of webpage to be tested usually has multiple versions, in order to promote user experience, optimal mode
It is the test webpage that identical version is shown when accessing webpage to be tested based on identical local information.Due to local identification information
With uniqueness, therefore, according to the target webpage version for the test webpage that local identification information determines, it can be ensured that user is in base
When identical local information accesses webpage to be tested, target webpage version can be uniquely determined.In this step, according to this
Ground identification information determines the target webpage version in multiple versions, effectively prevents to inquire database mode and obtain target webpage
The problem of server stress caused by version increases.
Step S106, displayed web page version are the test webpage of target webpage version.
The methods of exhibiting of test webpage according to the present invention, due to including: according to the access instruction for accessing webpage to be tested
Obtain local identification information, wherein local identification information accesses the local information of webpage to be tested for unique identification;According to this
Ground identification information determines the target webpage version of test webpage, wherein when treating test webpage execution test, webpage to be tested
Jump to test webpage;And displayed web page version is the test webpage of target webpage version, solves and carries out in the related technology
Webpage needs to inquire database to determine the version of the test page shown, to increase the processing pressure of server when testing
The problem of, and then by obtaining local identification information, and the target webpage version for testing webpage is determined according to local identification information,
The test webpage that target webpage version is shown under conditions of not increasing the processing pressure of server is achieved the effect that.
In order to further ensure the uniqueness of target webpage version, it is preferable that determine Test Network according to local identification information
The target webpage version of page includes: to obtain the corresponding cryptographic Hash of local identification information;Target index value is determined according to cryptographic Hash;With
And determine that the default index value of webpage version for including in preset web version set is that the webpage version of target index value is
Target webpage version.
The corresponding cryptographic Hash of local identification information is obtained using hash algorithm.Hash algorithm can by the two of random length into
Value processed is mapped as the smaller binary value of regular length, which is cryptographic Hash.Cryptographic Hash be one piece of data only
One and extremely compact numerical value representation, if all can as long as a letter in one Duan Mingwen of hash and paragraph changes
Cause the change of cryptographic Hash.Therefore, target webpage version is determined according to the corresponding cryptographic Hash of local identification information, it can be effective
Improve the uniqueness that target webpage version obtains in ground.
In preset web version set, multiple webpage versions is preset and (and have preset for each webpage version
Index value), wherein multiple webpage versions include target webpage version.When showing test webpage, it can determine whether above-mentioned multiple nets
A version in page version is shown.In this embodiment, determine that the webpage version that index value is target index value is mesh
Mark webpage version.Wherein, the determination process of target index value can be by handling come real cryptographic Hash according to preset rules
It is existing.For example, cryptographic Hash is 10, and preset rules are as follows: target index value is the 1/2 of cryptographic Hash, and therefore, target index value is 5, namely
Determine that the webpage version that index value is 5 in preset web version set is target webpage version.
In order to improve the execution efficiency of determining target webpage version process, it is preferable that determine that target indexes according to cryptographic Hash
Value includes: to obtain webpage version sum, wherein webpage version sum is the webpage version for including in preset web version set
Sum;And the remainder values that cryptographic Hash obtains webpage version sum remainder are obtained, and using remainder values as target index value.
For webpage test for, webpage version sum be it is determining, it is total according to the cryptographic Hash of acquisition and webpage version
Number can know the target webpage version of test webpage by preset algorithm.Since version sum is unique value, cryptographic Hash is by this
Ground identifies acquisition of information (also having uniqueness), and therefore, the target webpage version that this method obtains may insure to show unique
Property, that is, when accessing webpage to be tested based on identical local information (for example, same computer, same browser), it can be with
The test webpage of same version is shown to user.For example, include 10 kinds of webpage versions in preset web version set, it can be preparatory
The index value for setting 10 kinds of webpage versions is respectively 1 to 10.Since cryptographic Hash is a lesser binary value, can turn
It is changed to a metric integer.The integer is to webpage version sum remainder, an available remainder.For example, cryptographic Hash is
25, it is 5 to the remainder that webpage version sum remainder obtains, then can determine that the webpage version that index value is 5 is target webpage version.
In order to further increase the displaying efficiency of test webpage, it is preferable that refer to according to the access for accessing webpage to be tested
It enables after obtaining local identification information, this method further include: by local identification information storage to local terminal, wherein again
When receiving the access instruction for accessing webpage to be tested, the local identification information of local terminal storage is obtained.
In order to promote user experience, it is ensured that when accessing webpage to be tested based on identical local information, presentation user is same
The test webpage of version, can by the local identification information storage obtained for the first time to local terminal, when receive again access to
When testing the access instruction of webpage, local identification information can be directly transferred from local terminal, and need not regenerate the local
Identification information effectively increases treatment effeciency.In addition, the situation of Guid is used for local identification information, due to ordinary circumstance
The generation of lower Guid contains temporal information, and therefore, directly transferring the Guid generated for the first time can not have to remove temporal information, i.e.,
The uniqueness that ensure that the version of subsequent determination, further improves treatment effeciency.
In order to further enhance the specific aim of webpage test, it is preferable that determining test webpage according to local identification information
Target webpage version before, this method further include: obtain access characteristic information, wherein access characteristic information be access it is to be measured
Try the characteristic information of webpage;And judge to access whether characteristic information includes in default access characteristic information set, wherein when
Judge that accessing characteristic information is included in default access characteristic information set, then determines test webpage according to local identification information
Target webpage version, when judging that accessing characteristic information is not included in default access characteristic information set, then shows to be measured
Try the former page of webpage.
In this embodiment, access characteristic information may include any one following or much information: user agent's letter
Breath, IP address information and search engine information etc..Specifically, in user agent's information, it may include user's access is to be measured
The type for trying terminal used by webpage, for example, mobile phone, PAD, desktop computer etc.;The type of the computer system of use, or be
Version of uniting etc..IP address information is used to identify the region of user to be tested, for example, being only the user of Beijing area to IP address
Carry out webpage test.Search engine information be used for identification access source situation, for example, only to by search engine A to be measured
The user that examination webpage accesses tests.It can be achieved to store the webpage for test in default access characteristic information set
Characteristic information is accessed, and then the access characteristic information by will acquire is compared with default access characteristic information set, it can be true
Whether the access characteristic information obtained surely is within test scope, that is, being realized according to access characteristic information to user's webpage
Filtering so that webpage test specific aim it is stronger.
In order to further increase the efficiency of webpage test, it is preferable that before obtaining access characteristic information, this method is also wrapped
It includes: judging whether webpage to be tested meets default sampling condition according to the corresponding cryptographic Hash of local identification information, wherein work as judgement
Webpage to be tested meets default sampling condition out, then obtains access characteristic information, when judging that it is default that webpage to be tested is not met
Sampling condition then shows the former page of webpage to be tested.
In webpage test, if each Access Events are sampled (or there is access characteristic information to each
Access Events sampled), it is extremely low to will cause webpage testing efficiency.Also, under normal conditions, it is only necessary to part webpage into
Line sampling test, that is, can reach the purpose of test.In this embodiment, a sampling condition has been preset (with local mark
The corresponding cryptographic Hash of information is related), after receiving the access instruction for accessing webpage to be tested, by obtaining local identification information
Corresponding cryptographic Hash, and judge whether the cryptographic Hash meets default sampling condition, to the net to be tested for meeting default sampling condition
Page is tested, and the quantity for executing the webpage to be tested of webpage test can be effectively limited, to improve the effect of webpage test
Rate.
For example, obtaining the corresponding cryptographic Hash of local identification information, enable cryptographic Hash to 100 remainders, an available integer
Value.The integer value is compared with 100 times of default sample rate, if meeting preset condition, (integer value is less than 100 times
Default sample rate) webpage test then is executed to the webpage to be tested.Assuming that the integer value obtained is 19, and sample rate is 20%,
Webpage test (or access characteristic information being obtained, to judge whether to execute it webpage test) can be then executed to the webpage.
Fig. 2 is the flow chart of the methods of exhibiting of test webpage according to a second embodiment of the present invention.The embodiment can be made
For a kind of preferred embodiment of embodiment illustrated in fig. 1.As shown in Fig. 2, this method includes the following steps, namely S202 to step
S216:
Step S202 obtains the web page access instruction of access target webpage, wherein implement shown in the target webpage, that is, Fig. 1
Webpage to be tested in example.
Step S204 obtains Guid.
In this step, Guid, i.e. globally unique identifier are used for unique identification local information.
Step S206 obtains the corresponding cryptographic Hash of Guid.
Guid is a binary value, according to the corresponding cryptographic Hash of the available Guid of hash algorithm.
Step S208 judges whether to test the target webpage according to cryptographic Hash and sample rate.
Sample rate is preset sample rate, for example, sample rate is 20%, i.e. provides 20 webpages in 100 webpages
It is tested, other webpages are not required to be tested.Due to for different access stencil (for example, what access target webpage used
Computer, browser etc.) Guid that obtains is different, therefore the cryptographic Hash obtained is different, and then according to Hash under same algorithm
It is different to be worth the processing result obtained.In this way, the sample rate of the processing result obtained according to cryptographic Hash and setting is compared just
Test whether can be carried out to target webpage to judge.For example, the corresponding decimal value of cryptographic Hash is 521, it is preset right
The Processing Algorithm of cryptographic Hash are as follows: the corresponding decimal value of cryptographic Hash takes the remainder to 100, by remainder values and 100 times of sample rate into
Row comparison, if sample rate of the remainder values less than 100 times, then it is assumed that need to test target webpage.
Step S210 then believes according to user when judging to test the target webpage according to cryptographic Hash and sample rate
Breath judges whether there is the beta version for belonging to the target webpage.
User information includes the information such as user agent, IP address and advertisement parameters in the step.User's letter in the step
Breath is with the access characteristic information in embodiment described in Fig. 1, and it will not go into details.
Step S212 determines the version of test webpage when testing the target webpage according to cryptographic Hash.
Realization in the step is the same as the step S104 in embodiment illustrated in fig. 1, wherein when testing the target webpage
Test webpage version, that is, target webpage version, it will not go into details.
Step S214 shows the test webpage of the version.
Step S216, when judging not test the target webpage according to cryptographic Hash and sample rate, alternatively, according to
Family information judges the beta version for not belonging to the target webpage, then shows the former page of the target webpage.
Due to being not in preset webpage test scope for the webpage comprising certain user's information in webpage is tested
It is interior, therefore do not need to test it, it can directly show the former page of target webpage.In this step, when detecting the mesh
Mark webpage is unsatisfactory for the limitation of sample rate, or does not meet the restriction of netpage user's information to be tested, then directly shows target
The former page of webpage.
In this embodiment, two functions may be implemented according to Guid: 1, for reducing the webpage for carrying out webpage test
Range, to improve webpage testing efficiency;2, for determining target webpage version.By the embodiment, user can not believed
Under conditions of breath and version information storing data library, the displaying of the test webpage to target webpage version is realized, and effectively protect
The test page that the same version can be shown when user accesses identical webpage to be tested under identical access conditions has been demonstrate,proved,
The user experience is improved well.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
Below according to the embodiment of the present invention, a kind of displaying device for testing webpage is provided.
It should be noted that the displaying device of test webpage according to an embodiment of the present invention can be used for executing according to this hair
The methods of exhibiting of the test webpage of bright embodiment.And the methods of exhibiting of test webpage according to an embodiment of the present invention can also be with
It is executed by the displaying device of test webpage according to an embodiment of the present invention.
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 methods of exhibiting of row test webpage 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 methods of exhibiting of test webpage described above when running.
Fig. 3 is the schematic diagram of the displaying device of test webpage according to an embodiment of the present invention.As shown in figure 3, the device packet
It includes: first acquisition unit 20, determination unit 40 and display unit 60.
First acquisition unit 20, for obtaining local identification information according to the access instruction for accessing webpage to be tested, wherein
Local identification information accesses the local information of webpage to be tested for unique identification.
Determination unit 40, for determining the target webpage version of test webpage according to local identification information, wherein treating
When testing webpage execution test, webpage to be tested jumps to test webpage.
Display unit 60 is the test webpage of target webpage version for displayed web page version.
The displaying device for testing webpage according to this embodiment, due to including: first acquisition unit 20, for according to access
The access instruction of webpage to be tested obtains local identification information, wherein local identification information accesses to be tested for unique identification
The local information of webpage;Determination unit 40, for determining the target webpage version of test webpage according to local identification information,
In, when treating test webpage execution test, webpage to be tested jumps to test webpage;And display unit 60, for showing
Webpage version is the test webpage of target webpage version, solves and carries out needing to inquire database when webpage test in the related technology
To determine the version of the test page shown, thus the problem of increasing the processing pressure of server, and then obtained by first
Unit 20 obtains local identification information, and determines the target webpage of test webpage according to local identification information by determination unit 40
Version has achieved the effect that the test webpage that target webpage version is shown under conditions of not increasing the processing pressure of server.
In order to further ensure the uniqueness of target webpage version, it is preferable that determination unit 40 includes: acquisition module, is used
In the corresponding cryptographic Hash of the local identification information of acquisition;First determining module, for determining target index value according to cryptographic Hash;And
Second determining module, for determining the default index value of webpage version for including in preset web version set for target index
The webpage version of value is target webpage version.
In order to improve the execution efficiency of determining target webpage version process, it is preferable that the first determining module includes: first to obtain
Submodule is taken, for obtaining webpage version sum, wherein webpage version sum is the webpage for including in preset web version set
The sum of version;And second acquisition submodule, the remainder values that webpage version sum remainder is obtained for obtaining cryptographic Hash, and
Using remainder values as target index value.
In order to further enhance the specific aim of webpage test, it is preferable that the device further include: second acquisition unit is used for
Obtain access characteristic information, wherein access characteristic information is the characteristic information for accessing webpage to be tested;And judging unit, it uses
In judging to access whether characteristic information includes in default access characteristic information set, wherein when judging to access characteristic information
In default access characteristic information set, then the target webpage version of test webpage is determined according to local identification information, when
Judge that accessing characteristic information is not included in default access characteristic information set, then shows the former page of webpage to be tested.
In order to further increase the displaying efficiency of test webpage, it is preferable that the device further include: storage unit, being used for will
Local identification information storage is to local terminal.
In order to further increase the efficiency of webpage test, optionally, the device further include: sampling condition judging unit is used
In judging whether webpage to be tested meets default sampling condition according to the corresponding cryptographic Hash of local identification information, wherein work as judgement
Webpage to be tested meets default sampling condition out, then obtains access characteristic information, when judging that it is default that webpage to be tested is not met
Sampling condition then shows the former page of webpage to be tested.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (9)
1. a kind of methods of exhibiting for testing webpage characterized by comprising
Local identification information is obtained according to the access instruction for accessing webpage to be tested, wherein the local identification information is for only
The local information of webpage to be tested described in one identification access;
The target webpage version of test webpage is determined according to the local identification information, wherein hold to the webpage to be tested
When row test, the webpage to be tested jumps to the test webpage;And
Displayed web page version is the test webpage of the target webpage version;
Wherein, before determining the target webpage version of test webpage according to the local identification information, the method also includes:
Obtain access characteristic information, wherein the access characteristic information is the characteristic information for accessing the webpage to be tested;And judgement
Whether the access characteristic information includes in default access characteristic information set, wherein when judging that the access feature believes
Breath is included in the default access characteristic information set, then the target network of test webpage is determined according to the local identification information
Page version, when judging that the access characteristic information is not included in the default access characteristic information set, then described in displaying
The former page of webpage to be tested;
Wherein, before obtaining the access characteristic information, the method also includes: it is corresponding according to the local identification information
Cryptographic Hash judges whether the webpage to be tested meets default sampling condition, wherein when judging that the webpage to be tested meets
The default sampling condition then obtains the access characteristic information, when judging that it is described default that the webpage to be tested is not met
Sampling condition then shows the former page of the webpage to be tested;
Wherein, the local identification information is to access software used by webpage to be tested or hardware only for identity user
One identification information;
Wherein, for being filtered to user's webpage, the access characteristic information includes any of the following access characteristic information
Or much information: user agent's information, IP address information and search engine information.
2. the method according to claim 1, wherein determining the mesh of test webpage according to the local identification information
Marking webpage version includes:
Obtain the corresponding cryptographic Hash of the local identification information;
Target index value is determined according to the cryptographic Hash;And
Determine that the default index value of webpage version for including in preset web version set is the webpage of the target index value
Version is the target webpage version.
3. according to the method described in claim 2, it is characterized in that, determining that target index value includes: according to the cryptographic Hash
Obtain webpage version sum, wherein the webpage version sum is the webpage for including in the preset web version set
The sum of version;And
The remainder values that the cryptographic Hash obtains the webpage version sum remainder are obtained, and using the remainder values as the mesh
Mark index value.
4. the method according to claim 1, wherein obtaining this according to the access instruction for accessing webpage to be tested
After ground identification information, the method also includes: by the local identification information storage to local terminal, wherein connecing again
When receiving the access instruction for accessing the webpage to be tested, the local identification information of the local terminal storage is obtained.
5. a kind of displaying device for testing webpage characterized by comprising
First acquisition unit, for obtaining local identification information according to the access instruction for accessing webpage to be tested, wherein described
Ground identification information accesses the local information of the webpage to be tested for unique identification;
Determination unit, for determining the target webpage version of test webpage according to the local identification information, wherein to described
When webpage to be tested executes test, the webpage to be tested jumps to the test webpage;And
Display unit is the test webpage of the target webpage version for displayed web page version;
Wherein, described device further include: second acquisition unit, for obtaining access characteristic information, wherein the access feature letter
Breath is the characteristic information for accessing the webpage to be tested;And judging unit, for judging whether the access characteristic information wraps
It includes in default access characteristic information set, wherein when judging that the access characteristic information is included in the default access spy
It levies in information aggregate, then determines the target webpage version of test webpage according to the local identification information, when judging the visit
It asks that characteristic information is not included in the default access characteristic information set, then shows the former page of the webpage to be tested;
Wherein, described device is also used to: before obtaining access characteristic information, being sentenced according to the corresponding cryptographic Hash of local identification information
Whether the webpage to be tested that breaks meets default sampling condition, wherein when judging that webpage to be tested meets default sampling condition, then obtains
Access characteristic information is taken, when judging that webpage to be tested do not meet default sampling condition, then shows the former page of webpage to be tested;
Wherein, the local identification information is to access software used by webpage to be tested or hardware only for identity user
One identification information;
Wherein, for being filtered to user's webpage, the access characteristic information includes any of the following access characteristic information
Or much information: user agent's information, IP address information and search engine information.
6. device according to claim 5, which is characterized in that the determination unit includes:
Module is obtained, for obtaining the corresponding cryptographic Hash of the local identification information;
First determining module, for determining target index value according to the cryptographic Hash;And
Second determining module, for determining that the default index value of webpage version for including in preset web version set is described
The webpage version of target index value is the target webpage version.
7. device according to claim 6, which is characterized in that first determining module includes:
First acquisition submodule, for obtaining webpage version sum, wherein the webpage version sum is the preset web version
The sum for the webpage version for including in this set;And
Second acquisition submodule, the remainder values that the webpage version sum remainder is obtained for obtaining the cryptographic Hash, and will
The remainder values are as the target index value.
8. 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 test webpage described in any one of claim 4
Methods of exhibiting.
9. 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 test webpage described in any one of claim 4 methods of exhibiting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510413615.1A CN106354622B (en) | 2015-07-14 | 2015-07-14 | Test the methods of exhibiting and device of webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510413615.1A CN106354622B (en) | 2015-07-14 | 2015-07-14 | Test the methods of exhibiting and device of webpage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106354622A CN106354622A (en) | 2017-01-25 |
CN106354622B true CN106354622B (en) | 2019-09-20 |
Family
ID=57842409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510413615.1A Active CN106354622B (en) | 2015-07-14 | 2015-07-14 | Test the methods of exhibiting and device of webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354622B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107657026B (en) * | 2017-09-27 | 2020-05-12 | 武汉斗鱼网络科技有限公司 | User interface unit testing method and device, readable storage medium and equipment |
CN109446065A (en) * | 2018-09-18 | 2019-03-08 | 深圳壹账通智能科技有限公司 | User tag test method, device, computer equipment and storage medium |
CN110034969A (en) * | 2019-03-12 | 2019-07-19 | 平安城市建设科技(深圳)有限公司 | Webpage test method, device, equipment and storage medium |
CN110245069B (en) * | 2019-04-28 | 2023-07-25 | 创新先进技术有限公司 | Page version testing method and device and page display method and device |
CN110633219B (en) * | 2019-09-24 | 2023-09-08 | 网易(杭州)网络有限公司 | Page test method and device, storage medium and electronic equipment |
CN112256562B (en) * | 2020-09-22 | 2024-10-01 | 北京达佳互联信息技术有限公司 | Page jump testing method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004781A (en) * | 2010-11-23 | 2011-04-06 | 北京酷我科技有限公司 | Method and system for acquiring website test data |
CN104102576A (en) * | 2013-04-12 | 2014-10-15 | 阿里巴巴集团控股有限公司 | Multi-version test method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7975000B2 (en) * | 2005-01-27 | 2011-07-05 | Fmr Llc | A/B testing of a webpage |
US9378505B2 (en) * | 2010-07-26 | 2016-06-28 | Revguard, Llc | Automated multivariate testing technique for optimized customer outcome |
US20130030868A1 (en) * | 2011-07-25 | 2013-01-31 | Cbs Interactive, Inc. | Scheduled Split Testing |
-
2015
- 2015-07-14 CN CN201510413615.1A patent/CN106354622B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004781A (en) * | 2010-11-23 | 2011-04-06 | 北京酷我科技有限公司 | Method and system for acquiring website test data |
CN104102576A (en) * | 2013-04-12 | 2014-10-15 | 阿里巴巴集团控股有限公司 | Multi-version test method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106354622A (en) | 2017-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106354622B (en) | Test the methods of exhibiting and device of webpage | |
CN111193749B (en) | Attack tracing method and device, electronic equipment and storage medium | |
CN104317938B (en) | Web page interlinkage validation verification method and device | |
US10216848B2 (en) | Method and system for recommending cloud websites based on terminal access statistics | |
CN109918594B (en) | Information display method and device | |
CN108304410A (en) | A kind of detection method, device and the data analysing method of the abnormal access page | |
CN109040052A (en) | A kind of information processing method, terminal and computer-readable medium | |
RU2631769C2 (en) | Method and device for determining objective of information processing | |
CN104391953B (en) | Detect the method and device of webpage renewal | |
CN109491754A (en) | The performance test methods and device of virtual server | |
CN106911515A (en) | Method of testing and device based on user grouping | |
CN107945064A (en) | A kind of service order numbering generation method and device | |
US20120166412A1 (en) | Super-clustering for efficient information extraction | |
CN108154024A (en) | A kind of data retrieval method, device and electronic equipment | |
CN105468981A (en) | Vulnerability identification technology-based plugin safety scanning device and scanning method | |
CN109194776A (en) | A kind of detection method, system, electronic equipment and medium | |
CN110245281B (en) | Internet asset information collection method and terminal equipment | |
CN113791837B (en) | Page processing method, device, equipment and storage medium | |
CN110266555A (en) | Method for analyzing web site service request | |
CN107786529A (en) | The detection method of website, apparatus and system | |
CN104951476B (en) | Method and device for determining link level in website | |
CN103678312B (en) | A kind of method and client for recommending network address | |
CN109815083A (en) | A kind of monitoring method of application crashes, device, electronic equipment and medium | |
CN106484741B (en) | A kind of method and device of single page application access data collection and transmission | |
CN103605735B (en) | website data analysis method and device |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |