CN103378996B - Contrast test device and method - Google Patents

Contrast test device and method Download PDF

Info

Publication number
CN103378996B
CN103378996B CN201210125712.7A CN201210125712A CN103378996B CN 103378996 B CN103378996 B CN 103378996B CN 201210125712 A CN201210125712 A CN 201210125712A CN 103378996 B CN103378996 B CN 103378996B
Authority
CN
China
Prior art keywords
web page
webpage
operation instruction
window
contrast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210125712.7A
Other languages
Chinese (zh)
Other versions
CN103378996A (en
Inventor
尹祥龙
吴金坛
周继恩
吕苏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201210125712.7A priority Critical patent/CN103378996B/en
Publication of CN103378996A publication Critical patent/CN103378996A/en
Application granted granted Critical
Publication of CN103378996B publication Critical patent/CN103378996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention proposes contrast test device and method, wherein, described contrast test device includes user interface, pattern setting module, synchronization distribution and webpage control module and contrast performs module, and two Web page can be compared by described contrast test device according to the selection of user and arranging. Contrast test device and method disclosed in this invention can improve the performance of test system and the ease for use of efficiency and test system, and can avoid affecting test process because of webpage difference, thus improve the suitability of test system.

Description

Contrast test device and method
Technical field
The present invention relates to contrast test device and method, more particularly, to the contrast test device and method for Web system.
Background technology
At present, the becoming increasingly abundant of class of business along with the increasingly extensive of network application and different field (such as financial field), the system of sing on web becomes to become increasingly complex, and thus, the contrast test device and method for Web system becomes more and more important.
Existing contrast test instrument is usually such as one of Types Below: (1) mechanism simulation instrument, for message content is contrasted; (2) content of text contrast instrument (such as ultraedit), for contrasting content of text; (3) binary file contrast instrument (such as BeyondCompare), for contrasting the size of binary file; (4) webpage flow optimization compares instrument (the front page optimization instrument of such as google company), for webpage flow optimization is compared.
But, the tool and method not compared for the function of two Web system in existing technical scheme, and also without the instrument that compared result intuitively represents.
Accordingly, there exist following demand: provide the contrast test device and method for Web system.
Summary of the invention
In order to solve the problem existing for above-mentioned prior art, the present invention proposes the contrast test device and method for Web system.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of contrast test device, described contrast test device includes:
User interface, described user interface sets instruction, webpage acquisition instruction and web page operation instruction for the pattern received from user, and the setting instruction of described pattern is sent to pattern setting module, described webpage is obtained instruction and web page operation instruction is sent to synchronization distribution and webpage controls module, wherein, described webpage acquisition instruction includes the address of to be compared two Web page;
Pattern setting module, described pattern setting module sets instruction based on the described pattern received and arranges the mode of operation type of described contrast test device;
Synchronization distribution and webpage control module, described synchronization distribution and webpage control module and for the address acquisition obtaining described to be compared two Web page in instruction based on the described webpage received two Web page to be compared and create two webpage controller and show respectively and control described two Web page to be compared, described synchronization distribution and webpage control module and are additionally operable at least one operation being associated with described web page operation instruction with execution that the described web page operation instruction received is distributed in said two webpage controller by the mode of operation type based on described contrast test device,
Contrast performs module, and described contrast performs to compare said two Web page after module performs, at least one in said two webpage controller, the operation being associated with described web page operation instruction.
In scheme disclosed herein above, it is preferable that described contrast performs module and is additionally operable to be stored in comparing result list by described result of the comparison and show described result of the comparison by described user interface and said two webpage controller.
In scheme disclosed herein above, preferably, the mode of operation type of described contrast test device includes synchronization replication pattern, the semi-open pattern of synchronization replication and synchronization replication " shut " mode", and wherein, the default operating mode type of described contrast test device is synchronization replication pattern.
In scheme disclosed herein above, it is preferable that described user interface includes display and/or keyboard and/or mouse.
In scheme disclosed herein above, it is preferable that each form with tab window in said two webpage controller shows respectively and controls described two Web page to be compared.
In scheme disclosed herein above, it is preferable that described contrast test device is based on IE kernel.
In scheme disclosed herein above, it is preferable that in said two tab window is main Test Network page window, and another in said two tab window is time Test Network page window.
In scheme disclosed herein above, preferably, user initially inputs described webpage by described user interface and obtains instruction, and obtain described user after instruction has been performed at described webpage and input described web page operation instruction, wherein, described web page operation instruction includes keyboard and mouse in display as the relative co-ordinate information in the window of the Web page of the operation object of described web page operation instruction.
In scheme disclosed herein above, preferably, each described web page operation instruction structure based on described synchronization distribution and webpage control module distribution in said two webpage controller meets the request message of http protocol and described request message is sent to the Web server that the Web page with the operation object as described web page operation instruction is associated, and controls based on the response message meeting http protocol from described Web server and show corresponding Web page.
In scheme disclosed herein above, preferably, under described synchronization replication pattern, described synchronization distribution and webpage control module and replicate the web page operation instruction being associated with described main Test Network page window from described user interface received, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, described synchronization distribution and webpage control module and the original web page operation instruction being associated with described main Test Network page window from described user interface received are distributed to described main Test Network page window, wherein, under described synchronization replication pattern, the module that controls described synchronization distribution and webpage can also replicate the web page operation instruction being associated with described Test Network page window from described user interface received, and the web page operation instruction of described duplication is distributed to described main Test Network page window, subsequently, described synchronization distribution and webpage control module and the original web page operation instruction being associated with described Test Network page window from described user interface received are distributed to described Test Network page window.
In scheme disclosed herein above, preferably, under the semi-open pattern of described synchronization replication, described synchronization distribution and webpage control module and the web page operation instruction being associated with described Test Network page window from described user interface received are distributed to described Test Network page window, and the web page operation instruction being associated with described Test Network page window are not distributed to described main Test Network page window.
In scheme disclosed herein above, preferably, under described synchronization replication " shut " mode", described synchronization distribution and webpage control module and the web page operation instruction being associated with described Test Network page window from described user interface received are distributed to described Test Network page window, and the web page operation instruction being associated with described main Test Network page window from described user interface received is distributed to described main Test Network page window.
In scheme disclosed herein above, it is preferable that described synchronization distribution and webpage control module and activated the Test Network page window that will receive described web page operation instruction before distributing described web page operation instruction.
In scheme disclosed herein above, preferably, when described Test Network page window can not process the web page operation instruction of the described duplication received, then described synchronization distribution and webpage control the corresponding Operation Log of module record, and send warning message to described user.
In scheme disclosed herein above, preferably, when under windows operating system environment, described Test Network page window and described main Test Network page window correspond respectively to a thread, described synchronization distribution and webpage are controlled module and are set up the supervision of Thread Messages by the thread of the windowsAPI interface function provided Yu described main Test Network page window, and under described synchronization replication pattern, upon receipt of the web page operation instruction being associated with described main Test Network page window, described synchronization distribution and webpage control module and replicate the web page operation instruction being associated with described main Test Network page window, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, described synchronization distribution and webpage control module and the original web page operation instruction being associated with described main Test Network page window are distributed to described main Test Network page window.
In scheme disclosed herein above, it is preferable that described contrast performs module and performs from the html source code of two Web servers being associated with described two Web page to be compared respectively described to compare operation by comparing.
In scheme disclosed herein above, preferably, described contrast perform that module performs described compare operation include following at least one: compare the visible words on webpage, the multimedia object comparing on webpage one by one, the control object that compares on webpage one by one sentence by sentence.
In scheme disclosed herein above, it is preferable that when described compare operation include the visible words comparing on webpage sentence by sentence time, described contrast performs module and is highlighted, by least one in said two webpage controller, the word that there is difference.
The purpose of the present invention can also be achieved through the following technical solutions:
A kind of contrast test method, described contrast test method comprises the steps:
(A1) webpage inputted by user interface according to user is obtained instruction and obtains two Web page to be compared and create two webpage controller and show respectively and control described two Web page to be compared;
(A2) based on mode of operation type the web page operation instruction received by described user interface is distributed at least one operation being associated with described web page operation instruction with execution in said two webpage controller;
(A3) at least one in said two webpage controller compares said two Web page after performing the operation being associated with described web page operation instruction.
Contrast test device and method for Web system disclosed in this invention has the advantage that (1) controls module owing to having synchronization distribution and webpage, therefore two page systems of tester's repetitive operation can be saved, thus improve performance and the efficiency of system; (1) difference (such as can be highlighted the word that there is difference) between two page systems can be shown intuitively, thus improve the ease for use of system; (3) owing to having the tolerance treatment mechanism (namely there is the semi-open pattern of synchronization replication and synchronization replication " shut " mode") of difference between two page systems, therefore can avoid affecting test process because of webpage difference, thus improve the suitability of system.
Accompanying drawing explanation
Will be more fully understood that by those skilled in the art in conjunction with accompanying drawing, the technical characteristic of the present invention and advantage, wherein:
Fig. 1 is the structure chart of contrast test device according to an embodiment of the invention;
Fig. 2 is the flow chart of contrast test method according to an embodiment of the invention.
Detailed description of the invention
Fig. 1 is the structure chart of contrast test device according to an embodiment of the invention. As it is shown in figure 1, contrast test device disclosed in this invention includes user interface 1, pattern setting module 2, synchronization distribution and webpage controls module 3 and contrast execution module 4. Wherein, described user interface 1 sets instruction, webpage acquisition instruction and web page operation instruction for the pattern received from user, and the setting instruction of described pattern is sent to pattern setting module 2, described webpage is obtained instruction and web page operation instruction is sent to synchronization distribution and webpage controls module 3, wherein, described webpage acquisition instruction includes the address of to be compared two Web page. Described pattern setting module 2 sets instruction based on the described pattern received and arranges the mode of operation type of described contrast test device. Described synchronization distribution and webpage control module 3 and for the address acquisition obtaining described to be compared two Web page in instruction based on the described webpage received two Web page to be compared and create two webpage controller and show and control described two Web page to be compared, described synchronization distribution and webpage respectively and control module 3 and be additionally operable at least one operation being associated with described web page operation instruction with execution that the described web page operation instruction received is distributed in said two webpage controller by the mode of operation type based on described contrast test device. Described contrast performs to compare said two Web page after module 4 performs, at least one in said two webpage controller, the operation being associated with described web page operation instruction.
Preferably, in contrast test device disclosed in this invention, described contrast performs module 4 and is additionally operable to be stored in comparing result list by described result of the comparison and show described result of the comparison by described user interface 1 and said two webpage controller.
Preferably, in contrast test device disclosed in this invention, the mode of operation type of described contrast test device includes synchronization replication pattern, the semi-open pattern of synchronization replication and synchronization replication " shut " mode", and wherein, the default operating mode type of described contrast test device is synchronization replication pattern.
Preferably, in contrast test device disclosed in this invention, described user interface 1 includes display and/or keyboard and/or mouse.
Preferably, in contrast test device disclosed in this invention, each form with tab window in said two webpage controller shows respectively and controls described two Web page to be compared.
Preferably, in contrast test device disclosed in this invention, described contrast test device is based on IE kernel.
Preferably, in contrast test device disclosed in this invention, in said two tab window is main Test Network page window, and another in said two tab window is time Test Network page window.
Preferably, in contrast test device disclosed in this invention, user initially inputs described webpage by described user interface 1 and obtains instruction, and described webpage obtain instruction be performed after described user input described web page operation instruction (user can one or many input described web page operation instruction, namely user can arbitrarily operate described main Test Network page window or described Test Network page window to compare, wherein, user determines the sequence of operation by testing requirement), wherein, described web page operation instruction includes keyboard and mouse in display as the relative co-ordinate information in the window of the Web page of the operation object of described web page operation instruction.
Preferably, in contrast test device disclosed in this invention, each described web page operation instruction structure based on described synchronization distribution and webpage control module 3 distribution in said two webpage controller meets the request message of http protocol and described request message is sent to the Web server that the Web page with the operation object as described web page operation instruction is associated, and controls based on the response message meeting http protocol from described Web server and show corresponding Web page.
Preferably, in contrast test device disclosed in this invention, under described synchronization replication pattern, described synchronization distribution and webpage control module 3 and replicate the web page operation instruction being associated with described main Test Network page window from described user interface 1 received, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, the original web page operation instruction being associated with described main Test Network page window from described user interface 1 received is distributed to described main Test Network page window by described synchronization distribution and webpage control module 3. Wherein, under described synchronization replication pattern, the module 3 that controls described synchronization distribution and webpage can also replicate the web page operation instruction being associated with described Test Network page window from described user interface 1 received, and the web page operation instruction of described duplication is distributed to described main Test Network page window, subsequently, described synchronization distribution and webpage control module 3 the original web page operation instruction being associated with described Test Network page window from described user interface 1 received are distributed to described Test Network page window.
Preferably, in contrast test device disclosed in this invention, under the semi-open pattern of described synchronization replication, described synchronization distribution and webpage control module 3 and the web page operation instruction being associated with described Test Network page window from described user interface 1 received are distributed to described Test Network page window, and the web page operation instruction being associated with described Test Network page window are not distributed to described main Test Network page window. In this mode, exist between described Test Network page window and described main Test Network page window part web page contents inconsistent (namely the operation of mouse or keyboard can not be applied on corresponding same web object), user (i.e. tester) can manually operate time Test Network page window, to ensure the concordance of the test content submitted to by two web page windows.
Preferably, in contrast test device disclosed in this invention, under described synchronization replication " shut " mode", described synchronization distribution and webpage control module 3 and the web page operation instruction being associated with described Test Network page window from described user interface 1 received are distributed to described Test Network page window, and are distributed to described main Test Network page window (namely not having the duplication that operates between two windows and synchronization) by what receive with the web page operation instruction that described main Test Network page window is associated from described user interface 1. In this mode, input to described Test Network page window and described main Test Network page window is nonsynchronous, manually operated respectively by user (i.e. tester) completely such that it is able to adapt to the content of to be tested two window and the situation that form is completely inconsistent.
Preferably, in contrast test device disclosed in this invention, described synchronization distribution and webpage control module 3 and activated the Test Network page window (i.e. described Test Network page window or described main Test Network page window) that will receive described web page operation instruction before distributing described web page operation instruction.
Preferably, in contrast test device disclosed in this invention, when described Test Network page window can not process the web page operation instruction of the described duplication received, then described synchronization distribution and webpage control module 3 and record corresponding Operation Log, and send warning message to described user.
Preferably, in contrast test device disclosed in this invention, when under windows operating system environment, described Test Network page window and described main Test Network page window correspond respectively to a thread, described synchronization distribution and webpage control the thread of interface function (such as Hook Function) that module 3 provides by windowsAPI and described main Test Network page window and set up the supervision of Thread Messages, and under described synchronization replication pattern, upon receipt of the web page operation instruction (namely corresponding keyboard or mouse action) being associated with described main Test Network page window, described synchronization distribution and webpage control module 3 and replicate the web page operation instruction being associated with described main Test Network page window, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, described synchronization distribution and webpage control module 3 and the original web page operation instruction being associated with described main Test Network page window are distributed to described main Test Network page window.
Preferably, in contrast test device disclosed in this invention, described contrast performs module 4 and performs from the html source code of two Web servers being associated with described two Web page to be compared respectively described to compare operation by comparing.
Preferably, in contrast test device disclosed in this invention, described contrast perform that module 4 performs described compare operation include following at least one: compare the visible words on webpage quantity and the content of difference (comparing result include) sentence by sentence, compare multimedia object (the such as picture on webpage one by one, sound and animation etc.) (include the amount of capacity of multimedia object described in comparison, size, and comparing result includes quantity and the content of difference), compare control object (the such as input frame on webpage one by one, button etc.) (comparing result includes the quantity of difference, Property Name and event title). in contrast test device disclosed in this invention, user can set the described content compared included by operation by selecting.
Preferably, in contrast test device disclosed in this invention, described contrast performs module 4 by being stored in comparing result list by the described result comparing operation and showing described result of the comparison by described user interface 1 and said two webpage controller. In contrast test device disclosed in this invention, described compare operation carry out on backstage, and comparing result report adopt remind mode, thus not affecting the user (i.e. tester) operation to web page windows.
Preferably, in contrast test device disclosed in this invention, when described compare operation include the visible words comparing on webpage sentence by sentence time, described contrast is performed module 4 and is highlighted the word (being set to highlighted by the attribute of the text object that there is difference in webpage) that there is difference by least one in said two webpage controller (i.e. described Test Network page window and described main Test Network page window).
Fig. 2 is the flow chart of contrast test method according to an embodiment of the invention. As in figure 2 it is shown, contrast test method disclosed in this invention comprises the steps: that the webpage that (A1) is inputted by user interface according to user obtains instruction and obtains two Web page to be compared and create two webpage controller and show respectively and control described two Web page to be compared; (A2) based on mode of operation type the web page operation instruction received by described user interface is distributed at least one operation being associated with described web page operation instruction with execution in said two webpage controller; (A3) at least one in said two webpage controller compares said two Web page after performing the operation being associated with described web page operation instruction.
Preferably, in contrast test method disclosed in this invention, described step (A1) farther includes: arrange mode of operation type according to user instruction.
Preferably, in contrast test method disclosed in this invention, described step (A3) farther includes: is stored in comparing result list by described result of the comparison and shows described result of the comparison by user interface and said two webpage controller.
Preferably, in contrast test method disclosed in this invention, described mode of operation type includes synchronization replication pattern, the semi-open pattern of synchronization replication and synchronization replication " shut " mode", and wherein, default operating mode type is synchronization replication pattern.
Preferably, in contrast test method disclosed in this invention, described user interface includes display and/or keyboard and/or mouse.
Preferably, in contrast test method disclosed in this invention, each form with tab window in said two webpage controller shows respectively and controls described two Web page to be compared.
Preferably, in contrast test method disclosed in this invention, IE kernel is used to show and control described two Web page to be compared.
Preferably, in contrast test method disclosed in this invention, in said two tab window is main Test Network page window, and another in said two tab window is time Test Network page window.
Preferably, in contrast test method disclosed in this invention, user initially inputs described webpage by described user interface and obtains instruction, and described webpage obtain instruction be performed after described user input described web page operation instruction (user can one or many input described web page operation instruction, namely user can arbitrarily operate described main Test Network page window or described Test Network page window to compare, wherein, user determines the sequence of operation by testing requirement), wherein, described web page operation instruction includes keyboard and mouse in display as the relative co-ordinate information in the window of the Web page of the operation object of described web page operation instruction.
Preferably, in contrast test method disclosed in this invention, each in said two webpage controller meets the request message of http protocol based on the described web page operation instruction structure received and described request message is sent to the Web server that the Web page with the operation object as described web page operation instruction is associated, and controls based on the response message meeting http protocol from described Web server and show corresponding Web page.
Preferably, in contrast test method disclosed in this invention, described step (A2) farther includes: under described synchronization replication pattern, replicate the web page operation instruction being associated with described main Test Network page window from described user interface received, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, the original web page operation instruction being associated with described main Test Network page window from described user interface received is distributed to described main Test Network page window. Preferably, described step (A2) farther includes: under described synchronization replication pattern, replicate the web page operation instruction being associated with described Test Network page window from described user interface received, and the web page operation instruction of described duplication is distributed to described main Test Network page window, subsequently, the original web page operation instruction being associated with described Test Network page window from described user interface received is distributed to described Test Network page window.
Preferably, in contrast test method disclosed in this invention, described step (A2) farther includes: under the semi-open pattern of described synchronization replication, the web page operation instruction being associated with described Test Network page window from described user interface received is distributed to described Test Network page window, and the web page operation instruction being associated with described Test Network page window is not distributed to described main Test Network page window. In this mode, exist between described Test Network page window and described main Test Network page window part web page contents inconsistent (namely the operation of mouse or keyboard can not be applied on corresponding same web object), user (i.e. tester) can manually operate time Test Network page window, to ensure the concordance of the test content submitted to by two web page windows.
Preferably, in contrast test method disclosed in this invention, described step (A2) farther includes: under described synchronization replication " shut " mode", the web page operation instruction being associated with described Test Network page window from described user interface received is distributed to described Test Network page window, and is distributed to described main Test Network page window (namely not having the duplication of operation between two windows and synchronization) by what receive with the web page operation instruction that described main Test Network page window is associated from described user interface. In this mode, input to described Test Network page window and described main Test Network page window is nonsynchronous, manually operated respectively by user (i.e. tester) completely such that it is able to adapt to the content of to be tested two window and the situation that form is completely inconsistent.
Preferably, in contrast test method disclosed in this invention, described step (A2) farther includes: activated the Test Network page window (i.e. described Test Network page window or described main Test Network page window) that will receive described web page operation instruction before distributing described web page operation instruction.
Preferably, in contrast test method disclosed in this invention, described step (A2) farther includes: when described Test Network page window can not process the web page operation instruction of the described duplication received, then records corresponding Operation Log, and sends warning message to described user.
Preferably, in contrast test method disclosed in this invention, when under windows operating system environment, described Test Network page window and described main Test Network page window correspond respectively to a thread, and described step (A2) farther includes: set up the supervision of Thread Messages by the thread of the windowsAPI interface function (such as Hook Function) provided Yu described main Test Network page window, and under described synchronization replication pattern, upon receipt of the web page operation instruction (namely corresponding keyboard or mouse action) being associated with described main Test Network page window, then replicate the web page operation instruction being associated with described main Test Network page window, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, the original web page operation instruction being associated with described main Test Network page window is distributed to described main Test Network page window.
Preferably, in contrast test method disclosed in this invention, described step (A3) farther includes: perform from the html source code of two Web servers being associated with described two Web page to be compared respectively described to compare operation by comparing.
Preferably, in contrast test method disclosed in this invention, described step (A3) perform described compare operation include following at least one: compare the visible words on webpage quantity and the content of difference (comparing result include) sentence by sentence, compare multimedia object (the such as picture on webpage one by one, sound and animation etc.) (include the amount of capacity of multimedia object described in comparison, size, and comparing result includes quantity and the content of difference), compare control object (the such as input frame on webpage one by one, button etc.) (comparing result includes the quantity of difference, Property Name and event title). in contrast test method disclosed in this invention, user can set the described content compared included by operation by selecting.
Preferably, in contrast test method disclosed in this invention, described step (A3) farther includes: is stored in comparing result list by the described result comparing operation and shows described comparing result list by described user interface and said two webpage controller. In contrast test method disclosed in this invention, described compare operation carry out on backstage, and comparing result report adopt remind mode, thus not affecting the user (i.e. tester) operation to web page windows.
Preferably, in contrast test method disclosed in this invention, when described compare operation include the visible words comparing on webpage sentence by sentence time, described step (A3) farther includes: be highlighted the word (being set to highlighted by the attribute of the text object that there is difference in webpage) that there is difference by least one in said two webpage controller (i.e. described Test Network page window and described main Test Network page window).
Although the present invention is described by above-mentioned preferred implementation, but its way of realization is not limited to above-mentioned embodiment. It will be appreciated that when without departing from present subject matter and scope, the present invention can be made different changing and modifications by those skilled in the art.

Claims (19)

1. a contrast test device, described contrast test device includes:
User interface, described user interface sets instruction, webpage acquisition instruction and web page operation instruction for the pattern received from user, and the setting instruction of described pattern is sent to pattern setting module, described webpage is obtained instruction and web page operation instruction is sent to synchronization distribution and webpage controls module, wherein, described webpage acquisition instruction includes the address of to be compared two Web page;
Pattern setting module, described pattern setting module sets instruction based on the described pattern received and arranges the mode of operation type of described contrast test device;
Synchronization distribution and webpage control module, described synchronization distribution and webpage control module and for the address acquisition obtaining described to be compared two Web page in instruction based on the described webpage received two Web page to be compared and create two webpage controller and show respectively and control described two Web page to be compared, described synchronization distribution and webpage control module and are additionally operable at least one operation being associated with described web page operation instruction with execution that the described web page operation instruction received is distributed in said two webpage controller by the mode of operation type based on described contrast test device,
Contrast performs module, and described contrast performs to compare said two Web page after module performs, at least one in said two webpage controller, the operation being associated with described web page operation instruction.
2. contrast test device according to claim 1, it is characterized in that, described contrast performs module and is additionally operable to be stored in comparing result list by described result of the comparison and show described result of the comparison by described user interface and said two webpage controller.
3. contrast test device according to claim 2, it is characterized in that, the mode of operation type of described contrast test device includes synchronization replication pattern, the semi-open pattern of synchronization replication and synchronization replication " shut " mode", wherein, the default operating mode type of described contrast test device is synchronization replication pattern.
4. contrast test device according to claim 3, it is characterised in that described user interface includes display and/or keyboard and/or mouse.
5. contrast test device according to claim 4, it is characterised in that each form with tab window in said two webpage controller shows respectively and controls described two Web page to be compared.
6. contrast test device according to claim 5, it is characterised in that described contrast test device is based on IE kernel.
7. contrast test device according to claim 6, it is characterised in that in described tab window is main Test Network page window, and another in described tab window is time Test Network page window.
8. contrast test device according to claim 7, it is characterized in that, user initially inputs described webpage by described user interface and obtains instruction, and after the acquisition instruction of described webpage has been performed, described user inputs described web page operation instruction, wherein, described web page operation instruction includes keyboard and mouse in display as the relative co-ordinate information in the window of the Web page of the operation object of described web page operation instruction.
9. contrast test device according to claim 8, it is characterized in that, each described web page operation instruction structure based on described synchronization distribution and webpage control module distribution in said two webpage controller meets the request message of http protocol and described request message is sent to the Web server that the Web page with the operation object as described web page operation instruction is associated, and controls based on the response message meeting http protocol from described Web server and show corresponding Web page.
10. contrast test device according to claim 9, it is characterized in that, under described synchronization replication pattern, described synchronization distribution and webpage control module and replicate the web page operation instruction being associated with described main Test Network page window from described user interface received, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, described synchronization distribution and webpage control module and the original web page operation instruction being associated with described main Test Network page window from described user interface received are distributed to described main Test Network page window, wherein, under described synchronization replication pattern, the module that controls described synchronization distribution and webpage can also replicate the web page operation instruction being associated with described Test Network page window from described user interface received, and the web page operation instruction of described duplication is distributed to described main Test Network page window, subsequently, described synchronization distribution and webpage control module and the original web page operation instruction being associated with described Test Network page window from described user interface received are distributed to described Test Network page window.
11. contrast test device according to claim 10, it is characterized in that, under the semi-open pattern of described synchronization replication, described synchronization distribution and webpage control module and the web page operation instruction being associated with described Test Network page window from described user interface received are distributed to described Test Network page window, and the web page operation instruction being associated with described Test Network page window are not distributed to described main Test Network page window.
12. contrast test device according to claim 11, it is characterized in that, under described synchronization replication " shut " mode", described synchronization distribution and webpage control module and the web page operation instruction being associated with described Test Network page window from described user interface received are distributed to described Test Network page window, and the web page operation instruction being associated with described main Test Network page window from described user interface received is distributed to described main Test Network page window.
13. contrast test device according to claim 12, it is characterised in that described synchronization distribution and webpage control module and activated the Test Network page window that will receive described web page operation instruction before distributing described web page operation instruction.
14. contrast test device according to claim 13, it is characterized in that, when described Test Network page window can not process the web page operation instruction of the described duplication received, then described synchronization distribution and webpage control the corresponding Operation Log of module record, and send warning message to described user.
15. contrast test device according to claim 14, it is characterized in that, when under windows operating system environment, described Test Network page window and described main Test Network page window correspond respectively to a thread, described synchronization distribution and webpage are controlled module and are set up the supervision of Thread Messages by the thread of the windowsAPI interface function provided Yu described main Test Network page window, and under described synchronization replication pattern, upon receipt of the web page operation instruction being associated with described main Test Network page window, described synchronization distribution and webpage control module and replicate the web page operation instruction being associated with described main Test Network page window, and the web page operation instruction of described duplication is distributed to described Test Network page window, subsequently, described synchronization distribution and webpage control module and the original web page operation instruction being associated with described main Test Network page window are distributed to described main Test Network page window.
16. contrast test device according to claim 15, it is characterised in that described contrast performs module and performs from the html source code of two Web servers being associated with described two Web page to be compared respectively described to compare operation by comparing.
17. contrast test device according to claim 16, it is characterized in that, described contrast perform that module performs described compare operation include following at least one: compare the visible words on webpage, the multimedia object comparing on webpage one by one, the control object that compares on webpage one by one sentence by sentence.
18. contrast test device according to claim 17, it is characterized in that, when described compare operation include the visible words comparing on webpage sentence by sentence time, described contrast performs module and is highlighted, by least one in said two webpage controller, the word that there is difference.
19. a contrast test method, described contrast test method comprises the steps:
(A1) webpage inputted by user interface according to user is obtained instruction and obtains two Web page to be compared and create two webpage controller and show respectively and control described two Web page to be compared;
(A2) based on mode of operation type the web page operation instruction received by described user interface is distributed at least one operation being associated with described web page operation instruction with execution in said two webpage controller;
(A3) at least one in said two webpage controller compares said two Web page after performing the operation being associated with described web page operation instruction.
CN201210125712.7A 2012-04-26 2012-04-26 Contrast test device and method Active CN103378996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210125712.7A CN103378996B (en) 2012-04-26 2012-04-26 Contrast test device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210125712.7A CN103378996B (en) 2012-04-26 2012-04-26 Contrast test device and method

Publications (2)

Publication Number Publication Date
CN103378996A CN103378996A (en) 2013-10-30
CN103378996B true CN103378996B (en) 2016-06-15

Family

ID=49463577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210125712.7A Active CN103378996B (en) 2012-04-26 2012-04-26 Contrast test device and method

Country Status (1)

Country Link
CN (1) CN103378996B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117473193A (en) * 2020-04-04 2024-01-30 青岛希望鸟科技有限公司 Real-time webpage synchronization method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage
CN101763282A (en) * 2009-12-25 2010-06-30 中兴通讯股份有限公司 Method and terminal for dynamically managing application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4989745B2 (en) * 2010-03-29 2012-08-01 株式会社バッファロー Apparatus, method, and program for relaying communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage
CN101763282A (en) * 2009-12-25 2010-06-30 中兴通讯股份有限公司 Method and terminal for dynamically managing application program

Also Published As

Publication number Publication date
CN103378996A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
US8578277B2 (en) Integrating charts in documents
CN110865843B (en) Page backtracking, information backup and problem solving method, system and equipment
US8898643B2 (en) Application trace replay and simulation systems and methods
US20110252305A1 (en) Capturing the visual content of browser windows
CN102870103A (en) Server-based data sharing in computer applications
CN112667585B (en) Synchronous management method, device and equipment for online documents
CN101122921A (en) Method forming tree-shaped display structure based on ajax and html
CN102436339A (en) Display control method and device for modal dialog boxes
CN109582317B (en) Method and apparatus for debugging hosted applications
US7636888B2 (en) Verifying compatibility between document features and server capabilities
US20130124971A1 (en) Real time web script refresh using asynchronous polling without full web page reload
CN106982140B (en) Information flow simulation method and system
CN104834715A (en) Website generating method and system based on components and container
US20150193405A1 (en) Enhanced testing for application services
CN114328250A (en) Automatic self-checking method, medium and device for software system
CN103378996B (en) Contrast test device and method
CN112597123A (en) Data multi-version dynamic switching method and device
CN106406842A (en) A method and a system for displaying histograms on webpages
CN111475388A (en) Data push test method and device, computer equipment and storage medium
US20140337284A1 (en) Synchronizing folders using a shadow folder hierarchy
WO2019085354A1 (en) Excel system interface-based database linkage method, electronic device, and storage medium
CN103838466A (en) Information processing method and system and electronic equipment
CN111026466A (en) File processing method and device, computer readable storage medium and electronic equipment
CN108170557B (en) Method and apparatus for outputting information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant