CN109542776A - Page comparison method, device and equipment - Google Patents
Page comparison method, device and equipment Download PDFInfo
- Publication number
- CN109542776A CN109542776A CN201811317317.2A CN201811317317A CN109542776A CN 109542776 A CN109542776 A CN 109542776A CN 201811317317 A CN201811317317 A CN 201811317317A CN 109542776 A CN109542776 A CN 109542776A
- Authority
- CN
- China
- Prior art keywords
- node
- compared
- node path
- page
- path
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/194—Calculation of difference between files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application provides a kind of page comparison method, device and equipment.Wherein, method comprises the following steps that in the control tree of first page, chooses node path to be compared;The first node path that there is same position information with the node path to be compared is chosen in the control tree of second page;When the first node path and the node path difference to be compared, determine that the second page is different from the first page.By sampling fraction, to two node paths in the control tree of first page and second page with same position information, to compare first page and second page, the accuracy rate of page comparison can be improved in technical solution provided by the embodiments of the present application.
Description
Technical field
This application involves electronic technology field more particularly to a kind of page comparison methods, device and equipment.
Background technique
During Application testing, it will usually the comparison being related between the page, to judge whether two pages are identical.
In the prior art, image recognition technology is generallyd use to compare two pages, specifically: to two pages to be compared
Face carries out screenshotss processing, obtains two page screenshots, carries out image recognitions to two page screenshots, according to image recognition result come
Judge whether two pages are identical.By taking live streaming as an example, same live page is different in the video pictures that different moments are played
, compare, can mistakenly judge according to existing image recognition technology: same live page under different moments two
A page is two different pages.
As it can be seen that the judging nicety rate of page comparison method is lower in the prior art.
Summary of the invention
In view of the above problems, it proposes the application and is solved the above problems with to improve one kind or at least partly solved the above problems
Page control methods, device and equipment.
Then, in one embodiment of the application, a kind of page comparison method is provided.This method comprises:
In the control tree of first page, node path to be compared is chosen;
The first segment that there is same position information with the node path to be compared is chosen in the control tree of second page
Point path;
When the first node path and the node path difference to be compared, the second page and described first are determined
The page is different.
Further, the method, further includes:
Calculate separately the cryptographic Hash of the node path to be compared and the first node path;
When the cryptographic Hash of the first node path and the node path to be compared is not identical, the first node is determined
Path is different from the node path to be compared;
When the first node path is identical with the cryptographic Hash of the node path to be compared, the first node road is determined
Diameter is identical with the node path to be compared.
Further, the cryptographic Hash of the node path to be compared and the first node path is calculated separately, comprising:
The pathfinding of attribute information and the node path to be compared based on each node in the node path to be compared
Sequentially, the cryptographic Hash of the node path to be compared is calculated;
The pathfinding sequence of attribute information and the first node path based on each node in the first node path,
The cryptographic Hash in the first node path is calculated.
Further, the method, further includes:
When the first node path is identical as the node path to be compared, the control tree of the first page is judged
The total node number whether number of nodes is equal to the control tree of the first page is currently compared;
When currently having compared number of nodes equal to the total node number, terminate to compare, and determine the second page with it is described
First page is identical;
When currently having compared number of nodes less than the total node number, continue in the control tree of the first page, chooses
Next node path to be compared, and trigger and the first page and described is carried out based on next node path to be compared
The comparison process of second page.
Further, continue in the control tree of the first page, choose next node path to be compared, comprising:
When including intermediate node on the node path to be compared, a brotgher of node of the intermediate node is chosen;
Judge the second node path set out from the brotgher of node with the presence or absence of not being compared;
If it exists, then using the second node path as next node path to be compared.
Further, continue in the control tree of the first page, choose next node path to be compared, comprising:
When not including intermediate node on the node path to be compared, go out from the root node of the control tree of the first page
Hair chooses next node path to be compared not being compared.
Further, the location information of the node path to be compared includes: each node on the node path to be compared
The sequencing information of place level and each node level where it;
The location information in the first node path includes: level where each node and each on the first node path
The sequencing information of node level where it.
In another embodiment of the application, a kind of page comparison device is provided.The device includes:
First chooses module, in the control tree of first page, choosing node path to be compared;
Second chooses module, for being chosen in the control tree of second page with the node path to be compared with identical
The first node path of location information;
First determination module, when for the first node path and the node path difference to be compared, described in judgement
Second page is different from the first page.
Further, above-mentioned apparatus, further includes:
Computing module, for calculating separately the cryptographic Hash of the node path to be compared and the first node path;
Second determination module, the cryptographic Hash for the first node path and the node path to be compared be not identical
When, determine that the first node path is different from the node path to be compared;The first node path and described to be compared
When the cryptographic Hash of node path is identical, determine that the first node path is identical with the node path to be compared.
In the another embodiment of the application, a kind of electronic equipment is provided.The electronic equipment, comprising: memory and place
Manage device;Wherein,
The memory, for storing program;
The processor is coupled with the memory, for executing the described program stored in the memory, with
In:
In the control tree of first page, node path to be compared is chosen;
The first segment that there is same position information with the node path to be compared is chosen in the control tree of second page
Point path;
When the first node path and the node path difference to be compared, the second page and described first are determined
The page is different.
In technical solution provided by the embodiments of the present application, since control tree is the control layout for displayed page, two
The control layout of a page is not identical, then can determine that two pages are different.By sampling fraction to first page and second page
Page can be improved to compare first page and second page in two node paths in the control tree in face with same position information
In face of than accuracy rate.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen
Some embodiments please for those of ordinary skill in the art without creative efforts can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram for the page comparison method that one embodiment of the application provides;
Fig. 2 is the control tree example for the first page that one embodiment of the application provides;
Fig. 3 is the control tree example for the second page that one embodiment of the application provides;
Fig. 4 is the structural block diagram for the page comparison device that one embodiment of the application provides;
Fig. 5 is the structural block diagram for the electronic equipment that one embodiment of the application provides.
Specific embodiment
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.
In some processes described in the description of the present application, claims and above-mentioned attached drawing, contain according to spy
Multiple operations that fixed sequence occurs, these operations can not be executed according to its sequence what appears in this article or be executed parallel.
Serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, and it is suitable that serial number itself does not represent any execution
Sequence.In addition, these processes may include more or fewer operations, and these operations can be executed in order or be held parallel
Row.It should be noted that the description such as herein " first ", " second ", be for distinguishing different message, equipment, module etc.,
Sequencing is not represented, " first " and " second " is not also limited and is different type.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those skilled in the art's every other implementation obtained without making creative work
Example, shall fall in the protection scope of this application.
Fig. 1 shows the flow diagram of the page comparison method of one embodiment of the application offer.As shown in Figure 1, the party
Method includes:
101, in the control tree of first page, node path to be compared is chosen.
102, that there is same position information with the node path to be compared is chosen in the control tree of second page
One node path.
103, the first node path and when the node path difference to be compared, determine the second page with it is described
First page is different.
In practical application, getRootInActiveWindow interface can be called to be converted to the page by its control layout
One tree, i.e. control tree.It include each control hierarchical relationship and the corresponding control of each control in respective page in control tree
Part information.Wherein, control information includes but is not limited to: control title, control location information, control size, control property etc..Its
In, control property can be that the attributes such as can click, can drag.Each of control tree node (in addition to its root node) is right respectively
It should a control in respective page.
In above-mentioned 101, in the control tree of first page, a node path to be compared can be randomly selected, such as: such as Fig. 2
Shown, from the node A1 of the control tree of first page, (i.e. the root node) successively passes through node A2, node A3, arrives at node
A4 (i.e. leaf node), that is, the node path to be compared chosen are as follows: A1 → A2 → A3 → A4.Again for example: as shown in Fig. 2, from
The node A5 of the control tree of one page sets out, and by node A2, arrives at node A1 (i.e. root node), that is, the node to be compared chosen
Path is A5 → A2 → A1 (path can be described as inverse path).
In above-mentioned 102, the location information of node path to be compared includes: level where each node on node path to be compared
And the sequencing information of each node level where it.The location information in first node path includes: each on first node path
The sequencing information of level and each node level where it where node.It should be noted that certain in from root node to tree saves
Level of the point institute through the referred to as node of the branch tree on path, the level of root node is defined as 1, and the level of remaining node is equal to it
The level+1 of father's node.The multiple nodes for being in same level are from left to right arranged successively, and the arrangement number of each node is
The sequencing information of each node, such as: as shown in Fig. 2, be located at the sequencing information that hierachy number is node A3 on 3 this level be 1,
The sequencing information of node A5 is 2, the sequencing information of node A8 is 3.
There is same position information to refer to for node path to be compared and first node path: node path to be compared and the
The sequencing information of two counterpart nodes level having the same and its each comfortable place level on one node path is also identical.It needs
Illustrate, two counterpart nodes on node path to be compared and first node path include being located on node path to be compared
Node (for convenience described below, referred to as first node) and the node on first node path are (for side described below
Method, referred to as second node), and pathfinding sequence and second node of the first node on node path to be compared are on first node road
Pathfinding sequence on diameter is identical.
For example, as shown in Fig. 2, node path L1 to be compared are as follows: A1 → A2 → A3 → A4, wherein the pathfinding of A1 is arranged
The pathfinding that the pathfinding that the pathfinding that sequence is 1, A2 is ordered as 2, A3 is ordered as 3, A4 is ordered as 4;As shown in figure 3, first node path
L2 are as follows: B1 → B2 → B3 → B4, wherein the pathfinding that the pathfinding that the pathfinding of B1 is ordered as 1, B2 is ordered as 2, B3 is ordered as 3, B4's
Pathfinding is ordered as 4.A1 and B1 is two counterpart nodes, and the level of A1 and B1 are 1, and the sequencing information on each its level of leisure is all
1;A2 and B2 is two counterpart nodes, and the level of A2 and B2 are 2, and the sequencing information on each its level of leisure is all 1;A3 and B3 are
The level of two counterpart nodes, A3 and B3 are 3, and the sequencing information on each its level of leisure is all 1;A4 and B4 is two opposite sections
The level of point, A4 and B4 are 4, and the sequencing information on each its level of leisure is all 1.
It should be noted that if finding in the control tree of second page has identical bits confidence less than with path to be compared
The first node path of breath can also directly determine that second page is different from first page.
In above-mentioned 103, can by comparing first node path and node path to be compared, with determine first node path with
Whether node path to be compared is identical.If first node path is different from node path to be compared, second page can be directly determined
Face is different from first page.If they are the same, then continue to choose from the control tree of the control tree of first page and second page not comparing
To two node paths crossing and with same position information, and carry out above-mentioned comparison.
In technical solution provided by the embodiments of the present application, since control tree is the control layout for displayed page, two
The control layout of a page is not identical, then can determine that two pages are different.By sampling fraction to first page and second page
Page can be improved to compare first page and second page in two node paths in the control tree in face with same position information
In face of than accuracy rate.Compared with prior art, can effectively avoid because dynamic page elements certain in the page (such as: video, dynamic
Image) variation caused by erroneous judgement the problems such as.
In addition, technical solution provided by the embodiments of the present application can not only reduce calculation amount by node path sampling fraction pair,
Also quickly the different pages can be distinguished, accelerate the page and compare speed, improve comparison efficiency.
In order to improve first node path and node path to be compared comparison result accuracy, can first calculate separately out
The cryptographic Hash in first node path and node path to be compared, judged by the comparison result of cryptographic Hash first node path and
Whether node path to be compared is identical.Specifically, the above method may also include that
104, the cryptographic Hash in node path and first node to be compared path is calculated separately.
105, when the cryptographic Hash of first node path and node path to be compared is not identical, determine first node path with to
It is different to compare node path.
106, when first node path is identical with the cryptographic Hash of node path to be compared, determine first node path and to than
It is identical to node path.
In above-mentioned 104, a hash algorithm can be established according to actual needs in advance, respectively by the letter of node path to be calculated
The input as hash algorithm is ceased, the output of hash algorithm is the cryptographic Hash of the node path to be calculated.Hash algorithm
Establishment process can be found in the prior art, and this will not be detailed here.
It, can attribute information and section to be compared based on each node in node path to be compared in a kind of achievable scheme
The pathfinding sequence in point path, is calculated the cryptographic Hash of node path to be compared.It can be based on each node in first node path
The pathfinding sequence in attribute information and first node path, is calculated the cryptographic Hash in first node path.It specifically, can will be to
The pathfinding sequence for comparing the attribute information of each node and node path to be compared in node path is used as the input of hash algorithm,
The output of hash algorithm is the cryptographic Hash of node path to be compared;By the attribute information of node each in first node path and
The pathfinding sequence in first node path is used as the input of hash algorithm, and the output of hash algorithm is the Hash in first node path
Value.
Wherein, the attribute information of node that is to say the control information of corresponding control, including but not limited to: control title, control
Part location information, control size, control property etc..
When the cryptographic Hash of first node path and node path to be compared is not identical, determine first node path with it is to be compared
Node path is different.When first node path is identical with the cryptographic Hash of node path to be compared, determine first node path and to
It is identical to compare node path.
If judging in above-mentioned 103, first node path is different from node path to be compared, can determine that second page and
Second page is different, and can terminate the comparison process in relation to first page and second page;If judge first node path with
Node path to be compared is identical, then whether continues the comparison in other paths, in the control tree for needing first to judge first page
All nodes whether be all compared, if all nodes in the control tree of first page were all compared, can also terminate
Comparison process in relation to first page and second page, and determine that first page is identical with second page;If the control of first page
There is the node not being compared in part tree, then needs to continue the comparison in other paths.Specifically, the above method may be used also
Include:
107, when the first node path is identical as the node path to be compared, judge the control of the first page
Tree has currently compared the total node number whether number of nodes is equal to the control tree of the first page.
108, when currently having compared number of nodes equal to the total node number, terminate to compare, and determine the second page with
The first page is identical.
109, when currently having compared number of nodes less than the total node number, continue in the control tree of the first page,
Choose next node path to be compared, and trigger based on next node path to be compared carry out the first page and
The comparison process of the second page.
If the control tree of first page has currently compared total node number of the number of nodes equal to the control tree of first page, say
Bright first page control tree in all nodes be compared, therefore, comparison process need to be terminated, and determine second page with
First page is identical.If the control number of first page has currently compared total node of the number of nodes less than the control tree of first page
Number then illustrates that there is also the nodes not being compared in the control tree of first page, then need to continue the control in first page
In tree, next node path to be compared is chosen.And it triggers and carries out described first based on next node path to be compared
The comparison process of the page and the second page.The first page and institute are carried out based on next node path to be compared
The comparison process for stating second page can refer to corresponding contents in the various embodiments described above and execute, and details are not described herein.
In a kind of achievable scheme, " continues in the control tree of the first page, choose next in above-mentioned 109
Following steps can be used specifically to realize in a node path to be compared ":
1091, when on the node path to be compared including intermediate node, a brotgher of node of the intermediate node is chosen.
1092, judge the second node path set out from the brotgher of node with the presence or absence of not being compared.
1093, if it exists, then using the second node path as next node path to be compared.
For example: as shown in Fig. 2, node path L1 to be compared are as follows: A1 → A2 → A3 → A4, wherein intermediate node has
A2 and A3;The brotgher of node A5 of intermediate node A3 can be chosen;Setting out from brotgher of node A5 has two node paths, is respectively as follows: A5
→ A2 → A1 and A5 → A6 has the log for having compared node path to judge this path A5 → A2 → A1 by record
It was compared, this path A5 → A6 was not compared.Therefore, using this path A5 → A6 as next node road to be compared
Diameter.
Further, " continue in the control tree of the first page, choose next node to be compared in above-mentioned 109
Path " may also include the steps of:
1094, when not including intermediate node on the node path to be compared, from the root of the control tree of the first page
Node, which sets out, chooses next node path to be compared not being compared.
Technical solution provided by the embodiments of the present application compared with prior art, can effectively avoid because of dynamic page certain in the page
Caused by the variation of surface element (such as: video, dynamic image) the problems such as erroneous judgement.And technical solution provided by the embodiments of the present application
By node path sampling fraction pair, calculation amount can be not only reduced, can also quickly be distinguished the different pages, page ratio is accelerated
To speed, comparison efficiency is improved.
Fig. 4 shows the structural block diagram of the page comparison device of one embodiment of the application offer.As shown in figure 4, the page
Comparison device, comprising: first, which chooses module 401, second, chooses module 402 and the first determination module 403.Wherein,
First chooses module 401, in the control tree of first page, choosing node path to be compared;
Second chooses module 402, has for choosing in the control tree of second page with the node path to be compared
The first node path of same position information;
First determination module 403 determines institute when for the first node path and the node path difference to be compared
It is different from the first page to state second page.
In technical solution provided by the embodiments of the present application, since control tree is the control layout for displayed page, two
The control layout of a page is not identical, then can determine that two pages are different.By sampling fraction to first page and second page
Page can be improved to compare first page and second page in two node paths in the control tree in face with same position information
In face of than accuracy rate.Compared with prior art, can effectively avoid because dynamic page elements certain in the page (such as: video, dynamic
Image) variation caused by erroneous judgement the problems such as.
In addition, technical solution provided by the embodiments of the present application can not only reduce calculation amount by node path sampling fraction pair,
Also quickly the different pages can be distinguished, accelerate the page and compare speed, improve comparison efficiency.
Further, above-mentioned apparatus, further includes:
Computing module, for calculating separately the cryptographic Hash of the node path to be compared and the first node path;
Second determination module, the cryptographic Hash for the first node path and the node path to be compared be not identical
When, determine that the first node path is different from the node path to be compared;The first node path and described to be compared
When the cryptographic Hash of node path is identical, determine that the first node path is identical with the node path to be compared.
Further, the computing module, is specifically used for:
The pathfinding of attribute information and the node path to be compared based on each node in the node path to be compared
Sequentially, the cryptographic Hash of the node path to be compared is calculated;
The pathfinding sequence of attribute information and the first node path based on each node in the first node path,
The cryptographic Hash in the first node path is calculated.
Further, above-mentioned apparatus, further includes:
First judgment module, when identical as the node path to be compared for the first node path, described in judgement
The control tree of first page has currently compared the total node number whether number of nodes is equal to the control tree of the first page;
Second determination module when for currently having compared number of nodes equal to the total node number, terminates to compare, and determine institute
It is identical as the first page to state second page;
First chooses module 401, when being also used to currently compare number of nodes less than the total node number, continues described the
In the control tree of one page, next node path to be compared is chosen, and trigger and be based on next node path to be compared
Carry out the comparison process of the first page and the second page.
Further, described first module 401 is chosen, is specifically used for:
When including intermediate node on the node path to be compared, a brotgher of node of the intermediate node is chosen;
Judge the second node path set out from the brotgher of node with the presence or absence of not being compared;
If it exists, then using the second node path as next node path to be compared.
Further, described first module 401 is chosen, also particularly useful for:
When not including intermediate node on the node path to be compared, go out from the root node of the control tree of the first page
Hair chooses next node path to be compared not being compared.
Further, the location information of the node path to be compared includes: each node on the node path to be compared
The sequencing information of place level and each node level where it;
The location information in the first node path includes: level where each node and each on the first node path
The sequencing information of node level where it.
It should be noted that page comparison device provided in this embodiment can realize above-mentioned each page comparison method embodiment
The technical solution of offer, concrete implementation principle can be found in the corresponding contents in the various embodiments described above, and details are not described herein again.
Fig. 5 is the structural schematic diagram for the electronic equipment that one embodiment of the application provides.The electronic equipment includes: memory
1101 and processor 1102.Memory 1101 can be configured to store various other data to support behaviour on an electronic device
Make.The example of these data includes the instruction of any application or method for operating on an electronic device.Memory
1101 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static random-access
Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM),
Programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The processor 1102 is coupled with the memory 1101, for executing the institute stored in the memory 1101
Program is stated, to be used for:
In the control tree of first page, node path to be compared is chosen;
The first segment that there is same position information with the node path to be compared is chosen in the control tree of second page
Point path;
When the first node path and the node path difference to be compared, the second page and described first are determined
The page is different.
Wherein, processor 1102 other than function above, can also be achieved when executing the program in memory 1101
Other functions, for details, reference can be made to the descriptions of previous embodiments.
Further, as shown in figure 5, electronic equipment further include: communication component 1103, display 1104, power supply module 1105,
Other components such as audio component 1106.Members are only schematically provided in Fig. 5, are not meant to that electronic equipment only includes Fig. 5
Shown component.
Correspondingly, the embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, institute
The step of stating the page comparison method that the various embodiments described above offer is provided when computer program is computer-executed or function.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (10)
1. a kind of page comparison method characterized by comprising
In the control tree of first page, node path to be compared is chosen;
The first node road that there is same position information with the node path to be compared is chosen in the control tree of second page
Diameter;
When the first node path and the node path difference to be compared, the second page and the first page are determined
It is different.
2. the method according to claim 1, wherein further include:
Calculate separately the cryptographic Hash of the node path to be compared and the first node path;
When the cryptographic Hash of the first node path and the node path to be compared is not identical, the first node path is determined
It is different from the node path to be compared;
When the first node path is identical with the cryptographic Hash of the node path to be compared, determine the first node path and
The node path to be compared is identical.
3. according to the method described in claim 2, it is characterized in that, calculating separately the node path to be compared and described first
The cryptographic Hash of node path, comprising:
The pathfinding sequence of attribute information and the node path to be compared based on each node in the node path to be compared,
The cryptographic Hash of the node path to be compared is calculated;
The pathfinding sequence of attribute information and the first node path based on each node in the first node path, calculates
Obtain the cryptographic Hash in the first node path.
4. according to the method in any one of claims 1 to 3, which is characterized in that further include:
When the first node path is identical as the node path to be compared, the current of the control tree of the first page is judged
The total node number whether number of nodes is equal to the control tree of the first page is compared;
It is described to terminate to compare when currently having compared number of nodes equal to the total node number, and determine the second page with it is described
First page is identical;
It is described when currently having compared number of nodes less than the total node number, continue in the control tree of the first page, chooses
Next node path to be compared, and trigger and the first page and described is carried out based on next node path to be compared
The comparison process of second page.
5. according to the method described in claim 4, it is characterized in that, continuing in the control tree of the first page, under selection
One node path to be compared, comprising:
When including intermediate node on the node path to be compared, a brotgher of node of the intermediate node is chosen;
Judge the second node path set out from the brotgher of node with the presence or absence of not being compared;
If it exists, then using the second node path as next node path to be compared.
6. according to the method described in claim 4, it is characterized in that, continuing in the control tree of the first page, under selection
One node path to be compared, comprising:
When not including intermediate node on the node path to be compared, from the root node choosing of the control tree of the first page
Take next node path to be compared not being compared.
7. according to the method in any one of claims 1 to 3, which is characterized in that
The location information of the node path to be compared includes: level where each node and each on the node path to be compared
The sequencing information of node level where it;
The location information in the first node path includes: level and each node where each node on the first node path
Sequencing information of level where it.
8. a kind of page comparison device characterized by comprising
First chooses module, in the control tree of first page, choosing node path to be compared;
Second chooses module, has same position with the node path to be compared for choosing in the control tree of second page
The first node path of information;
First determination module determines described second when for the first node path and the node path difference to be compared
The page is different from the first page.
9. device according to claim 8, which is characterized in that further include:
Computing module, for calculating separately the cryptographic Hash of the node path to be compared and the first node path;
Second determination module is sentenced when the cryptographic Hash for the first node path and the node path to be compared is not identical
The fixed first node path is different from the node path to be compared;The first node path and the node road to be compared
When the cryptographic Hash of diameter is identical, determine that the first node path is identical with the node path to be compared.
10. a kind of electronic equipment characterized by comprising memory and processor;Wherein,
The memory, for storing program;
The processor is coupled with the memory, for executing the described program stored in the memory, to be used for:
In the control tree of first page, node path to be compared is chosen;
The first node road that there is same position information with the node path to be compared is chosen in the control tree of second page
Diameter;
When the first node path and the node path difference to be compared, the second page and the first page are determined
It is different.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811317317.2A CN109542776A (en) | 2018-11-07 | 2018-11-07 | Page comparison method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811317317.2A CN109542776A (en) | 2018-11-07 | 2018-11-07 | Page comparison method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109542776A true CN109542776A (en) | 2019-03-29 |
Family
ID=65846125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811317317.2A Pending CN109542776A (en) | 2018-11-07 | 2018-11-07 | Page comparison method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109542776A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704779A (en) * | 2019-09-27 | 2020-01-17 | 杭州迪普科技股份有限公司 | Website page access compliance detection method, device and equipment |
CN111079403A (en) * | 2019-12-10 | 2020-04-28 | 深圳市兴之佳科技有限公司 | Page comparison method and device |
CN114281454A (en) * | 2021-12-17 | 2022-04-05 | 杭州逗酷软件科技有限公司 | Information auxiliary processing method, device, equipment and computer readable storage medium |
CN115098362A (en) * | 2022-06-16 | 2022-09-23 | 北京百度网讯科技有限公司 | Page testing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102316081A (en) * | 2010-06-30 | 2012-01-11 | 北京启明星辰信息技术股份有限公司 | Method and device for identifying similar webpage |
CN102682098A (en) * | 2012-04-27 | 2012-09-19 | 北京神州绿盟信息安全科技股份有限公司 | Method and device for detecting web page content changes |
US8689189B1 (en) * | 2008-02-15 | 2014-04-01 | Amazon Technologies, Inc. | Systems and methods for testing widgets |
CN106960058A (en) * | 2017-04-05 | 2017-07-18 | 金电联行(北京)信息技术有限公司 | A kind of structure of web page alteration detection method and system |
CN107566354A (en) * | 2017-08-22 | 2018-01-09 | 北京小米移动软件有限公司 | Web page contents detection method, device and storage medium |
CN108052539A (en) * | 2017-11-20 | 2018-05-18 | 烽火通信科技股份有限公司 | A kind of browser page switching method and browser |
-
2018
- 2018-11-07 CN CN201811317317.2A patent/CN109542776A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8689189B1 (en) * | 2008-02-15 | 2014-04-01 | Amazon Technologies, Inc. | Systems and methods for testing widgets |
CN102316081A (en) * | 2010-06-30 | 2012-01-11 | 北京启明星辰信息技术股份有限公司 | Method and device for identifying similar webpage |
CN102682098A (en) * | 2012-04-27 | 2012-09-19 | 北京神州绿盟信息安全科技股份有限公司 | Method and device for detecting web page content changes |
CN106960058A (en) * | 2017-04-05 | 2017-07-18 | 金电联行(北京)信息技术有限公司 | A kind of structure of web page alteration detection method and system |
CN107566354A (en) * | 2017-08-22 | 2018-01-09 | 北京小米移动软件有限公司 | Web page contents detection method, device and storage medium |
CN108052539A (en) * | 2017-11-20 | 2018-05-18 | 烽火通信科技股份有限公司 | A kind of browser page switching method and browser |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704779A (en) * | 2019-09-27 | 2020-01-17 | 杭州迪普科技股份有限公司 | Website page access compliance detection method, device and equipment |
CN111079403A (en) * | 2019-12-10 | 2020-04-28 | 深圳市兴之佳科技有限公司 | Page comparison method and device |
CN111079403B (en) * | 2019-12-10 | 2023-08-08 | 深圳市兴之佳科技有限公司 | Page comparison method and device |
CN114281454A (en) * | 2021-12-17 | 2022-04-05 | 杭州逗酷软件科技有限公司 | Information auxiliary processing method, device, equipment and computer readable storage medium |
CN115098362A (en) * | 2022-06-16 | 2022-09-23 | 北京百度网讯科技有限公司 | Page testing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109542776A (en) | Page comparison method, device and equipment | |
Taylor | A deeply knotted protein structure and how it might fold | |
KR101873619B1 (en) | Boolean logic in a state machine lattice | |
US20140164900A1 (en) | Appending content with annotation | |
US20090287673A1 (en) | Ranking visualization types based upon fitness for visualizing a data set | |
JP7457125B2 (en) | Translation methods, devices, electronic equipment and computer programs | |
US20190121842A1 (en) | Content adjustment and display augmentation for communication | |
JP2020505670A (en) | Component Release Method, Graphic Machine Learning Algorithm Platform Based Component Construction Method, and Graphic Machine Learning Algorithm Platform | |
US8018471B2 (en) | Visual component/clause merging | |
US9652360B2 (en) | Crawling for extracting a model of a GUI-based application | |
US11768815B2 (en) | Determining when a change set was delivered to a workspace or stream and by whom | |
CN107704604A (en) | A kind of information persistence method, server and computer-readable recording medium | |
CN110457628A (en) | Webpage edition correcting method, device, equipment and storage medium | |
KR102546631B1 (en) | Apparatus for video data argumentation and method for the same | |
CN114860995B (en) | Video script generation method and device, electronic equipment and medium | |
WO2024103653A1 (en) | Mutual retrieval method and apparatus for videos and text, and device, non-volatile readable storage medium and terminal | |
US10685470B2 (en) | Generating and providing composition effect tutorials for creating and editing digital content | |
US11599711B2 (en) | Automatic delineation and extraction of tabular data in portable document format using graph neural networks | |
CN110109591A (en) | Picture editing method and device | |
CN113297371A (en) | Method, device and equipment for generating recommended question library and storage medium | |
JP2021089711A (en) | Video jitter detection method and apparatus | |
CN109710945B (en) | Method and device for generating text based on data, computer equipment and storage medium | |
CN107797736A (en) | Method for information display and device | |
CN115577683B (en) | HTML rich text content conversion method, device, equipment and medium | |
US20230090713A1 (en) | Automated digital text optimization and modification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210310 Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing Applicant after: Beijing longzhixin Technology Co.,Ltd. Address before: 100041 room 120, 4th floor, building 17, yard 30, Shixing street, Shijingshan District, Beijing Applicant before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd. |
|
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190329 |